Ejemplo n.º 1
0
                    public void Define(SyntaxSymbolKind kind, ModulePath?module, SyntaxNode?definition, string name)
                    {
                        // This method is used to shadow variables, too.
                        var sym = Symbols[name] = new SyntaxVariableSymbol(kind, module, definition, name);

                        definition?.SetAnnotation("Symbol", sym);
                    }
Ejemplo n.º 2
0
 public SyntaxVariableSymbol(SyntaxSymbolKind kind, ModulePath?module, SyntaxNode?definition, string name)
 {
     Kind       = kind;
     Module     = module;
     Definition = definition;
     Name       = name;
 }