1 implementation of ITokenTrie
Microsoft.TemplateEngine.Core (1)
Util\TokenTrie.cs (1)
9
public class TokenTrie : Trie<Token>,
ITokenTrie
45 references to ITokenTrie
Microsoft.TemplateEngine.Core (36)
Expressions\Cpp2\Cpp2StyleEvaluatorDefinition.cs (3)
14
private static readonly ConcurrentDictionary<Encoding,
ITokenTrie
> TokenCache = new();
79
protected override
ITokenTrie
GetSymbols(IProcessorState processor)
81
if (!TokenCache.TryGetValue(processor.Encoding, out
ITokenTrie
tokens))
Expressions\MSBuild\MSBuildStyleEvaluatorDefinition.cs (4)
13
private static readonly Dictionary<Encoding,
ITokenTrie
> TokenCache = new Dictionary<Encoding,
ITokenTrie
>();
61
protected override
ITokenTrie
GetSymbols(IProcessorState processor)
63
if (!TokenCache.TryGetValue(processor.Encoding, out
ITokenTrie
tokens))
Expressions\ScopeBuilder.cs (2)
27
private readonly
ITokenTrie
_tokens;
32
public ScopeBuilder(IProcessorState processor,
ITokenTrie
tokens, IOperatorMap<TOperator, TToken> operatorMap, bool dereferenceInLiterals)
Expressions\ScopeBuilderHelper.cs (1)
10
public static ScopeBuilder<TOperator, TToken> ScopeBuilder<TOperator, TToken>(this IProcessorState processor,
ITokenTrie
tokens, IOperatorMap<TOperator, TToken> operatorMap, bool dereferenceInLiterals = false)
Expressions\Shared\SharedEvaluatorDefinition.cs (2)
118
protected abstract
ITokenTrie
GetSymbols(IProcessorState processor);
128
ITokenTrie
tokens = Instance.GetSymbols(processor);
Expressions\VisualBasic\VisualBasicStyleEvaluatorDefintion.cs (4)
13
private static readonly Dictionary<Encoding,
ITokenTrie
> TokenCache = new Dictionary<Encoding,
ITokenTrie
>();
81
protected override
ITokenTrie
GetSymbols(IProcessorState processor)
83
if (!TokenCache.TryGetValue(processor.Encoding, out
ITokenTrie
tokens))
Operations\Conditional.cs (3)
114
private void AddTokensOfTypeToTokenListAndTrie(
ITokenTrie
trie, List<IToken> tokenMasterList, IReadOnlyList<ITokenConfig> tokensOfType, int typeRemainder, Encoding encoding)
130
private readonly
ITokenTrie
_trie;
133
public Implementation(Conditional definition, IReadOnlyList<IToken> tokens,
ITokenTrie
trie, string? id, bool initialState)
Operations\Include.cs (2)
45
private readonly
ITokenTrie
_endTokenMatcher;
47
public Implementation(IToken token,
ITokenTrie
endTokenMatcher, Include source, string? id, bool initialState)
Operations\InlineMarkupConditional.cs (6)
72
private readonly
ITokenTrie
_closeConditionTrie;
75
private readonly
ITokenTrie
_scanBackTrie;
76
private readonly
ITokenTrie
_structureTrie;
78
internal Implementation(InlineMarkupConditional definition, IReadOnlyList<IToken> tokens,
ITokenTrie
structureTrie,
ITokenTrie
closeConditionTrie,
ITokenTrie
scanBackTrie, MarkupTokenMapping mapping, string? id, bool initialState)
Util\EncodingConfig.cs (4)
43
public
ITokenTrie
LineEndings { get; }
49
public
ITokenTrie
Variables { get; }
51
public
ITokenTrie
Whitespace { get; }
53
public
ITokenTrie
WhitespaceOrLineEnding { get; }
Util\ProcessorState.cs (4)
354
public void SeekTargetBackUntil(
ITokenTrie
match, bool consume = false)
406
public void SeekTargetBackWhile(
ITokenTrie
match)
460
public void SeekSourceForwardUntil(
ITokenTrie
match, ref int bufferLength, ref int currentBufferPosition, bool consumeToken = false)
498
public void SeekSourceForwardWhile(
ITokenTrie
trie, ref int bufferLength, ref int currentBufferPosition)
Util\TokenTrie.cs (1)
59
public void Append(
ITokenTrie
trie)
Microsoft.TemplateEngine.Core.Contracts (9)
IEncodingConfig.cs (4)
12
ITokenTrie
LineEndings { get; }
18
ITokenTrie
Variables { get; }
20
ITokenTrie
Whitespace { get; }
22
ITokenTrie
WhitespaceOrLineEnding { get; }
IProcessorState.cs (4)
48
void SeekSourceForwardUntil(
ITokenTrie
match, ref int bufferLength, ref int currentBufferPosition, bool consumeToken = false);
53
void SeekSourceForwardWhile(
ITokenTrie
match, ref int bufferLength, ref int currentBufferPosition);
60
void SeekTargetBackUntil(
ITokenTrie
match, bool consumeToken = false);
65
void SeekTargetBackWhile(
ITokenTrie
match);
ITokenTrie.cs (1)
26
void Append(
ITokenTrie
trie);