1 implementation of IProcessorState
Microsoft.TemplateEngine.Core (1)
Util\ProcessorState.cs (1)
11
public class ProcessorState :
IProcessorState
47 references to IProcessorState
Microsoft.TemplateEngine.Core (45)
CommonOperations.cs (3)
10
public static void WhitespaceHandler(this
IProcessorState
processor, ref int bufferLength, ref int currentBufferPosition, bool wholeLine = false, bool trim = false, bool trimForward = false, bool trimBackward = false)
27
public static void ConsumeWholeLine(this
IProcessorState
processor, ref int bufferLength, ref int currentBufferPosition)
33
public static void TrimWhitespace(this
IProcessorState
processor, bool forward, bool backward, ref int bufferLength, ref int currentBufferPosition)
Expressions\Cpp\CppStyleEvaluatorDefinition.cs (2)
27
IProcessorState
state = new ProcessorState(ms, res, (int)ms.Length, (int)ms.Length, cfg, NoOperationProviders);
33
public static bool Evaluate(
IProcessorState
processor, ref int bufferLength, ref int currentBufferPosition, out bool faulted)
Expressions\Cpp2\Cpp2StyleEvaluatorDefinition.cs (1)
79
protected override ITokenTrie GetSymbols(
IProcessorState
processor)
Expressions\MSBuild\MSBuildStyleEvaluatorDefinition.cs (1)
61
protected override ITokenTrie GetSymbols(
IProcessorState
processor)
Expressions\ScopeBuilder.cs (2)
23
private readonly
IProcessorState
_processor;
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 (6)
27
public static bool Evaluate(
IProcessorState
processor, ref int bufferLength, ref int currentBufferPosition, out bool faulted)
62
IProcessorState
state = new ProcessorState(ms, res, (int)ms.Length, (int)ms.Length, cfg, NoOperationProviders);
88
IProcessorState
state = new ProcessorState(ms, res, (int)ms.Length, (int)ms.Length, cfg, NoOperationProviders);
118
protected abstract ITokenTrie GetSymbols(
IProcessorState
processor);
121
IProcessorState
processor,
140
IProcessorState
processor,
Expressions\VisualBasic\VisualBasicStyleEvaluatorDefintion.cs (1)
81
protected override ITokenTrie GetSymbols(
IProcessorState
processor)
Operations\BalancedNesting.cs (2)
40
public IOperation GetOperation(Encoding encoding,
IProcessorState
processorState)
78
public int HandleMatch(
IProcessorState
processor, int bufferLength, ref int currentBufferPosition, int token)
Operations\Conditional.cs (7)
72
public IOperation GetOperation(Encoding encoding,
IProcessorState
processorState)
148
public int HandleMatch(
IProcessorState
processor, int bufferLength, ref int currentBufferPosition, int token)
328
private bool SkipToMatchingEndif(
IProcessorState
processor, ref int bufferLength, ref int currentBufferPosition, ref int token)
347
private bool SeekToNextTokenAtSameLevel(
IProcessorState
processor, ref int bufferLength, ref int currentBufferPosition, out int token)
384
private bool SeekToToken(
IProcessorState
processor, ref int bufferLength, ref int currentBufferPosition, out int token)
442
public void ToggleActionableOperations(bool enabled,
IProcessorState
processor)
452
internal bool Evaluate(
IProcessorState
processor, ref int bufferLength, ref int currentBufferPosition)
Operations\ConditionEvaluator.cs (1)
8
public delegate bool ConditionEvaluator(
IProcessorState
processor, ref int bufferLength, ref int currentBufferPosition, out bool faulted);
Operations\ExpandVariables.cs (3)
23
public IOperation GetOperation(Encoding encoding,
IProcessorState
processor)
30
public Implementation(
IProcessorState
processor, string? id, bool initialState)
43
public int HandleMatch(
IProcessorState
processor, int bufferLength, ref int currentBufferPosition, int token)
Operations\Include.cs (2)
33
public IOperation GetOperation(Encoding encoding,
IProcessorState
processorState)
62
public int HandleMatch(
IProcessorState
processor, int bufferLength, ref int currentBufferPosition, int token)
Operations\InlineMarkupConditional.cs (5)
37
public IOperation GetOperation(Encoding encoding,
IProcessorState
processorState)
96
public int HandleMatch(
IProcessorState
processor, int bufferLength, ref int currentBufferPosition, int token)
108
IProcessorState
localState = new ProcessorState(new MemoryStream(condition), new MemoryStream(), conditionBytes.Count, int.MaxValue, adjustedConfig, []);
140
private void FindEnd(
IProcessorState
processorState, ref int bufferLength, ref int currentBufferPosition)
218
private void ScanToCloseCondition(
IProcessorState
processorState, List<byte> conditionBytes, ref int bufferLength, ref int currentBufferPosition)
Operations\PhasedOperation.cs (2)
23
public IOperation GetOperation(Encoding encoding,
IProcessorState
processorState)
109
public int HandleMatch(
IProcessorState
processor, int bufferLength, ref int currentBufferPosition, int token)
Operations\Region.cs (2)
35
public IOperation GetOperation(Encoding encoding,
IProcessorState
processorState)
68
public int HandleMatch(
IProcessorState
processor, int bufferLength, ref int currentBufferPosition, int token)
Operations\Replacement.cs (2)
27
public IOperation GetOperation(Encoding encoding,
IProcessorState
processorState)
58
public int HandleMatch(
IProcessorState
processor, int bufferLength, ref int currentBufferPosition, int token)
Operations\SetFlag.cs (2)
41
public IOperation GetOperation(Encoding encoding,
IProcessorState
processorState)
77
public int HandleMatch(
IProcessorState
processor, int bufferLength, ref int currentBufferPosition, int token)
Microsoft.TemplateEngine.Core.Contracts (2)
IOperation.cs (1)
14
int HandleMatch(
IProcessorState
processor, int bufferLength, ref int currentBufferPosition, int token);
IOperationProvider.cs (1)
12
IOperation GetOperation(Encoding encoding,
IProcessorState
processorState);