Scanner.scopeLookupSymbol

void * scopeLookupSymbol(uint scopeId, string symbol)

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

Parameters

scopeIdthe scope id
symbolthe symbol to look up

Returns

the value of symbol in the given scope, or null

if symbol is not bound in the given scope.