Scanner.scopeLookupSymbol

Looks up a symbol in a scope and return its value. If the symbol is not bound in the scope, null is returned.

class Scanner
void*
scopeLookupSymbol
(
uint scopeId
,
string symbol
)

Parameters

scopeId uint

the scope id

symbol string

the symbol to look up

Return Value

Type: void*

the value of symbol in the given scope, or null if symbol is not bound in the given scope.