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