20 lines
404 B
V
20 lines
404 B
V
// Copyright (c) 2026 Alexander Medvednikov. All rights reserved.
|
|
// Use of this source code is governed by an MIT license
|
|
// that can be found in the LICENSE file.
|
|
|
|
module ssa
|
|
|
|
fn map_get_type_id(m map[string]TypeID, key string) ?TypeID {
|
|
if key in m {
|
|
return m[key]
|
|
}
|
|
return none
|
|
}
|
|
|
|
fn map_get_value_id(m map[string]ValueID, key string) ?ValueID {
|
|
if key in m {
|
|
return m[key]
|
|
}
|
|
return none
|
|
}
|