MCPcopy Create free account
hub / github.com/MauriceGit/compiler / analyzeBlock

Function analyzeBlock

semanticAnalyzer.go:1209–1237  ·  view source on GitHub ↗

analyzeBlock gets a reference to the current (now parent) symbol varTable Additionally, it might get a pre-filled symbol varTable for the new scope to use! This might be the case for function arguments or in a for-loop, where variables belong to the coming block only but are parsed in the TreeNode b

(block Block, symbolTable, newBlockSymbolTable *SymbolTable)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

analyzeConditionFunction · 0.85
analyzeSwitchFunction · 0.85
analyzeLoopFunction · 0.85
analyzeRangedLoopFunction · 0.85
analyzeFunctionFunction · 0.85
semanticAnalysisFunction · 0.85

Calls 1

analyzeStatementFunction · 0.85

Tested by

no test coverage detected