Class LocalScopeNames

java.lang.Object
org.ek9lang.compiler.common.LocalScopeNames

public final class LocalScopeNames extends Object
THE names of the LocalScopes phase 1 creates, and the only place their text is spelt.

The prefixes are a de-facto wire format: compiler-services (location resolution and the scope chain) recognises a scope by the start of its name. Use the constants and the is* tests; never write "If-line-" or startsWith("Returning-param-") again, in either module.

Two shapes exist. A structural scope is <Prefix><line> (atLine(String, IToken)) or <Prefix><line>-<position> (atPosition(String, IToken)); an anonymous block scope is Line-<line>-Position-<position> (block(IToken)).