Class SyntaxTrie
Syntax trie implementation used to look up identifiers.
Inheritance
System.Object
SyntaxTrie
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public sealed class SyntaxTrie : Object
Constructors
SyntaxTrie()
Creates a new empty syntax trie.
Declaration
public SyntaxTrie()
Methods
Add(String)
Adds an identifier to the syntax trie.
Declaration
public void Add(string identifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | Identifier to add. |
Contains(String)
Checks whether the specified identifier exist in the syntax tree as a terminal symbol.
Declaration
public bool Contains(string identifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | Identifier to check for. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified identifier exists; otherwise, false. |
Remove(String)
Removes the specified identifier from the syntax trie.
Declaration
public bool Remove(string identifier)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifier | Identifier to remove. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified identifier was found and removed; otherwise, false. |