MCPcopy Create free account
hub / github.com/NICUP14/MiniLang / get_type

Method get_type

src/Parser.py:550–551  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

548
549 def _infer_gen_types(self, sig: FunctionSignature, node: Node):
550 def get_type(node: Node) -> VariableType:
551 return node.ntype
552
553 arg_types = list(map(get_type, args_to_list(node)))
554 if len(arg_types) != len(sig.arg_types):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected