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