Ejemplo n.º 1
0
 internal SymbolReference CreateSymbolReference(CodeElementsParser.SymbolReference11Context context, SymbolType symbolType)
 {
     AlphanumericValue nameLiteral = CreateAlphanumericValue(context.alphanumericValue11());
     var symbolReference = new SymbolReference(nameLiteral, symbolType);
     symbolInformationForTokens[nameLiteral.Token] = symbolReference;
     return symbolReference;
 }
Ejemplo n.º 2
0
 internal SymbolDefinition CreateSymbolDefinition(CodeElementsParser.SymbolDefinition11Context context, SymbolType symbolType)
 {
     AlphanumericValue nameLiteral = CreateAlphanumericValue(context.alphanumericValue11());
     var symbolDefinition = new SymbolDefinition(nameLiteral, symbolType);
     symbolInformationForTokens[nameLiteral.Token] = symbolDefinition;
     return symbolDefinition;
 }