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