1 implementation of IToken
Microsoft.TemplateEngine.Core (1)
TokenConfig.cs (1)
86private class Token : IToken
63 references to IToken
Microsoft.TemplateEngine.Core (57)
Operations\BalancedNesting.cs (9)
42IToken startToken = _startToken.ToToken(encoding); 43IToken realEndToken = _realEndToken.ToToken(encoding); 44IToken pseudoEndToken = _pseudoEndToken.ToToken(encoding); 56private readonly IToken _realEndToken; 57private readonly IToken _pseudoEndToken; 61public Implementation(IToken start, IToken realEnd, IToken pseudoEnd, string? id, string? resetFlag, bool initialState) 74public IReadOnlyList<IToken> Tokens { get; }
Operations\Conditional.cs (5)
76List<IToken> tokens = new List<IToken>(TokenTypeModulus * LongestTokenVariantListSize); 114private void AddTokensOfTypeToTokenListAndTrie(ITokenTrie trie, List<IToken> tokenMasterList, IReadOnlyList<ITokenConfig> tokensOfType, int typeRemainder, Encoding encoding) 133public Implementation(Conditional definition, IReadOnlyList<IToken> tokens, ITokenTrie trie, string? id, bool initialState) 144public IReadOnlyList<IToken> Tokens { get; }
Operations\ExpandVariables.cs (1)
37public IReadOnlyList<IToken> Tokens { get; }
Operations\Include.cs (4)
35IToken tokenBytes = StartToken.ToToken(encoding); 36IToken endTokenBytes = EndToken.ToToken(encoding); 47public Implementation(IToken token, ITokenTrie endTokenMatcher, Include source, string? id, bool initialState) 56public IReadOnlyList<IToken> Tokens { get; }
Operations\InlineMarkupConditional.cs (4)
43IToken openOpenElementTokenBytes = Tokens.OpenOpenElementToken.ToToken(processorState.Encoding); 66IReadOnlyList<IToken> start = new[] { Tokens.OpenConditionExpression.ToToken(processorState.Encoding) }; 78internal Implementation(InlineMarkupConditional definition, IReadOnlyList<IToken> tokens, ITokenTrie structureTrie, ITokenTrie closeConditionTrie, ITokenTrie scanBackTrie, MarkupTokenMapping mapping, string? id, bool initialState) 92public IReadOnlyList<IToken> Tokens { get; }
Operations\PhasedOperation.cs (6)
26List<IToken> tokens = new List<IToken>(); 40IToken bytes = c.Match.ToToken(encoding); 55IToken token = reset.ToToken(encoding); 95public Implementation(PhasedOperation definition, IReadOnlyList<IToken> config, IReadOnlyList<SpecializedPhase> entryPoints, bool initialState) 105public IReadOnlyList<IToken> Tokens { get; }
Operations\Region.cs (6)
37IToken startToken = _start.ToToken(encoding); 38IToken endToken = _end.ToToken(encoding); 44private readonly IToken _endToken; 50public Implementation(Region owner, IToken startToken, IToken endToken, bool include, bool toggle, string? id, bool initialState) 62public IReadOnlyList<IToken> Tokens { get; }
Operations\Replacement.cs (3)
29IToken token = _match.ToToken(encoding); 44public Implementation(IToken token, byte[] replaceWith, string? id, bool initialState) 52public IReadOnlyList<IToken> Tokens { get; }
Operations\SetFlag.cs (3)
43IToken[] tokens = new[] 63public Implementation(SetFlag owner, IReadOnlyList<IToken> tokens, string? id, bool initialState) 71public IReadOnlyList<IToken> Tokens { get; }
TokenConfig.cs (2)
29public static IToken LiteralToken(byte[] data, int start = 0, int end = -1) 45public IToken ToToken(Encoding encoding)
TokenConfigExtensions.cs (2)
21public static IToken LiteralToken(this byte[] b, int start = 0, int end = -1) 26public static IToken Token(this string s, Encoding e)
Util\EncodingConfig.cs (6)
12private readonly List<IToken> _variableKeys; 16_variableKeys = new List<IToken>(); 25IToken tokenBytes = token.Token(encoding); 32IToken tokenBytes = token.Token(encoding); 45public IReadOnlyList<IToken> VariableKeys => _variableKeys; 62IToken keyBytes = formattedKey.Token(encoding);
Util\TokenTrie.cs (6)
11private readonly List<IToken> _tokens = new List<IToken>(); 22public IReadOnlyList<IToken> Tokens => _tokens; 34public int AddToken(IToken token) 41public void AddToken(IToken? token, int index) 61foreach (IToken token in trie.Tokens)
Microsoft.TemplateEngine.Core.Contracts (6)
IEncodingConfig.cs (1)
14IReadOnlyList<IToken> VariableKeys { get; }
IOperation.cs (1)
8IReadOnlyList<IToken?> Tokens { get; }
ITokenConfig.cs (1)
16IToken ToToken(Encoding encoding);
ITokenTrie.cs (3)
16IReadOnlyList<IToken> Tokens { get; } 18int AddToken(IToken token); 20void AddToken(IToken? token, int index);