Class SymbolTable
Symbol table containing all symbol information.
Inheritance
System.Object
SymbolTable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SqlDotNet.Compiler
Assembly: SqlDotNet.dll
Syntax
public class SymbolTable
Constructors
| Improve this Doc View SourceSymbolTable(SymbolTable)
Create a new symbol table
Declaration
public SymbolTable(SymbolTable parent)
Parameters
Type | Name | Description |
---|---|---|
SymbolTable | parent |
Properties
| Improve this Doc View SourceParent
Parent symbol table
Declaration
public SymbolTable Parent { get; }
Property Value
Type | Description |
---|---|
SymbolTable |
Methods
| Improve this Doc View SourceAddSqlTableSymbol(TableNode)
Add variable symbol to the current SymboleTable
Declaration
public void AddSqlTableSymbol(TableNode node)
Parameters
Type | Name | Description |
---|---|---|
TableNode | node | Name of the symbol |
FindSymbol(String)
Find a symbol in the symbol table
Declaration
public Symbol FindSymbol(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the symbol |
Returns
Type | Description |
---|---|
Symbol | Return symbol instance |
FindSymbols<T>()
Return all symbols of a type
Declaration
public IList<T> FindSymbols<T>()
where T : Symbol
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<T> | Return list of a specific type |
Type Parameters
Name | Description |
---|---|
T | Type to select |