@@ -59,7 +59,7 @@ public Conditional(ConditionalTokens tokenVariants, bool wholeLine, bool trimWhi
59
59
public ConditionalTokens Tokens => _tokens ;
60
60
61
61
/// <summary>
62
- /// Returns the numner of elements in the longest of the token variant lists.
62
+ /// Returns the number of elements in the longest of the token variant lists.
63
63
/// </summary>
64
64
private int LongestTokenVariantListSize
65
65
{
@@ -94,7 +94,7 @@ public IOperation GetOperation(Encoding encoding, IProcessorState processorState
94
94
AddTokensOfTypeToTokenListAndTrie ( trie , tokens , Tokens . ActionableElseTokens , ElseTokenActionableBaseIndex , encoding ) ;
95
95
AddTokensOfTypeToTokenListAndTrie ( trie , tokens , Tokens . ActionableElseIfTokens , ElseIfTokenActionableBaseIndex , encoding ) ;
96
96
97
- return new Impl ( this , tokens , trie , _id , _initialState ) ;
97
+ return new Implementation ( this , tokens , trie , _id , _initialState ) ;
98
98
}
99
99
100
100
/// <summary>
@@ -130,15 +130,15 @@ private void AddTokensOfTypeToTokenListAndTrie(ITokenTrie trie, List<IToken> tok
130
130
}
131
131
}
132
132
133
- private class Impl : IOperation
133
+ private class Implementation : IOperation
134
134
{
135
135
private readonly Conditional _definition ;
136
136
private readonly Stack < EvaluationState > _pendingCompletion = new Stack < EvaluationState > ( ) ;
137
137
private readonly ITokenTrie _trie ;
138
138
private readonly string ? _id ;
139
139
private EvaluationState ? _current ;
140
140
141
- public Impl ( Conditional definition , IReadOnlyList < IToken > tokens , ITokenTrie trie , string ? id , bool initialState )
141
+ public Implementation ( Conditional definition , IReadOnlyList < IToken > tokens , ITokenTrie trie , string ? id , bool initialState )
142
142
{
143
143
_trie = trie ;
144
144
_definition = definition ;
@@ -430,12 +430,12 @@ private bool SeekToToken(IProcessorState processor, ref int bufferLength, ref in
430
430
431
431
private class EvaluationState
432
432
{
433
- private readonly Impl _impl ;
433
+ private readonly Implementation _implementation ;
434
434
private bool _branchTaken ;
435
435
436
- public EvaluationState ( Impl impl )
436
+ public EvaluationState ( Implementation implementation )
437
437
{
438
- _impl = impl ;
438
+ _implementation = implementation ;
439
439
ActionableOperationsEnabled = false ;
440
440
}
441
441
@@ -451,15 +451,15 @@ public void ToggleActionableOperations(bool enabled, IProcessorState processor)
451
451
{
452
452
ActionableOperationsEnabled = enabled ;
453
453
454
- foreach ( string otherOptionDisableFlag in _impl . _definition . Tokens . ActionableOperations )
454
+ foreach ( string otherOptionDisableFlag in _implementation . _definition . Tokens . ActionableOperations )
455
455
{
456
456
processor . Config . Flags [ otherOptionDisableFlag ] = enabled ;
457
457
}
458
458
}
459
459
460
460
internal bool Evaluate ( IProcessorState processor , ref int bufferLength , ref int currentBufferPosition )
461
461
{
462
- BranchTaken = _impl . _definition . _evaluator ( processor , ref bufferLength , ref currentBufferPosition , out bool faulted ) ;
462
+ BranchTaken = _implementation . _definition . _evaluator ( processor , ref bufferLength , ref currentBufferPosition , out bool faulted ) ;
463
463
return BranchTaken ;
464
464
}
465
465
}
0 commit comments