| 1 | // Copyright (c) 2026 Alexander Medvednikov. All rights reserved. |
| 2 | // Use of this source code is governed by an MIT license |
| 3 | // that can be found in the LICENSE file. |
| 4 | |
| 5 | module ssa |
| 6 | |
| 7 | fn map_get_type_id(m map[string]TypeID, key string) ?TypeID { |
| 8 | if key in m { |
| 9 | return m[key] |
| 10 | } |
| 11 | return none |
| 12 | } |
| 13 | |
| 14 | fn map_get_value_id(m map[string]ValueID, key string) ?ValueID { |
| 15 | if key in m { |
| 16 | return m[key] |
| 17 | } |
| 18 | return none |
| 19 | } |
| 20 |