61 references to PatternIndexOffsetLoweringStrategy
Microsoft.CodeAnalysis.CSharp (61)
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (61)
231BoundExpression makeOffsetInput = DetermineMakePatternIndexOffsetExpressionStrategy(node.Argument, out PatternIndexOffsetLoweringStrategy strategy);
248PatternIndexOffsetLoweringStrategy startStrategy, endStrategy;
304BoundExpression makePatternIndexOffsetExpression(BoundExpression? makeOffsetInput, int length, PatternIndexOffsetLoweringStrategy strategy)
308if (strategy == PatternIndexOffsetLoweringStrategy.SubtractFromLength &&
488BoundExpression makeOffsetInput = DetermineMakePatternIndexOffsetExpressionStrategy(node.Argument, out PatternIndexOffsetLoweringStrategy strategy);
535case PatternIndexOffsetLoweringStrategy.SubtractFromLength:
549case PatternIndexOffsetLoweringStrategy.UseAsIs:
553case PatternIndexOffsetLoweringStrategy.UseGetOffsetAPI:
645PatternIndexOffsetLoweringStrategy strategy)
649case PatternIndexOffsetLoweringStrategy.Zero:
652case PatternIndexOffsetLoweringStrategy.Length:
656case PatternIndexOffsetLoweringStrategy.SubtractFromLength:
668case PatternIndexOffsetLoweringStrategy.UseAsIs:
673case PatternIndexOffsetLoweringStrategy.UseGetOffsetAPI:
707out PatternIndexOffsetLoweringStrategy strategy)
719strategy = PatternIndexOffsetLoweringStrategy.SubtractFromLength;
726strategy = PatternIndexOffsetLoweringStrategy.UseAsIs;
737strategy = PatternIndexOffsetLoweringStrategy.SubtractFromLength;
742strategy = PatternIndexOffsetLoweringStrategy.UseAsIs;
750strategy = PatternIndexOffsetLoweringStrategy.UseGetOffsetAPI;
794PatternIndexOffsetLoweringStrategy startStrategy, endStrategy;
876case (PatternIndexOffsetLoweringStrategy.Zero, PatternIndexOffsetLoweringStrategy.Length):
877case (PatternIndexOffsetLoweringStrategy.Zero, PatternIndexOffsetLoweringStrategy.UseGetOffsetAPI):
880case (PatternIndexOffsetLoweringStrategy.Zero, PatternIndexOffsetLoweringStrategy.SubtractFromLength):
883case (PatternIndexOffsetLoweringStrategy.Zero, PatternIndexOffsetLoweringStrategy.UseAsIs):
886case (PatternIndexOffsetLoweringStrategy.UseAsIs, PatternIndexOffsetLoweringStrategy.Length):
887case (PatternIndexOffsetLoweringStrategy.UseAsIs, PatternIndexOffsetLoweringStrategy.UseGetOffsetAPI):
890case (PatternIndexOffsetLoweringStrategy.UseAsIs, PatternIndexOffsetLoweringStrategy.SubtractFromLength):
893case (PatternIndexOffsetLoweringStrategy.UseAsIs, PatternIndexOffsetLoweringStrategy.UseAsIs):
896case (PatternIndexOffsetLoweringStrategy.SubtractFromLength, PatternIndexOffsetLoweringStrategy.Length):
897case (PatternIndexOffsetLoweringStrategy.UseGetOffsetAPI, PatternIndexOffsetLoweringStrategy.Length):
900case (PatternIndexOffsetLoweringStrategy.SubtractFromLength, PatternIndexOffsetLoweringStrategy.SubtractFromLength):
901case (PatternIndexOffsetLoweringStrategy.SubtractFromLength, PatternIndexOffsetLoweringStrategy.UseGetOffsetAPI):
902case (PatternIndexOffsetLoweringStrategy.UseGetOffsetAPI, PatternIndexOffsetLoweringStrategy.SubtractFromLength):
903case (PatternIndexOffsetLoweringStrategy.UseGetOffsetAPI, PatternIndexOffsetLoweringStrategy.UseGetOffsetAPI):
906case (PatternIndexOffsetLoweringStrategy.SubtractFromLength, PatternIndexOffsetLoweringStrategy.UseAsIs):
907case (PatternIndexOffsetLoweringStrategy.UseGetOffsetAPI, PatternIndexOffsetLoweringStrategy.UseAsIs):
915Debug.Assert(startStrategy != PatternIndexOffsetLoweringStrategy.Zero || (rewriteFlags & captureStartOffset) == 0);
916Debug.Assert((rewriteFlags & captureEndOffset) == 0 || (rewriteFlags & captureStartOffset) != 0 || startStrategy == PatternIndexOffsetLoweringStrategy.Zero);
917Debug.Assert((rewriteFlags & captureStartOffset) == 0 || (rewriteFlags & captureEndOffset) != 0 || endStrategy == PatternIndexOffsetLoweringStrategy.Length);
918Debug.Assert(endStrategy != PatternIndexOffsetLoweringStrategy.Length || (rewriteFlags & captureEndOffset) == 0);
1068private void RewriteRangeParts(BoundExpression rangeArg, out BoundRangeExpression? rangeExpr, out BoundExpression? startMakeOffsetInput, out PatternIndexOffsetLoweringStrategy startStrategy, out BoundExpression? endMakeOffsetInput, out PatternIndexOffsetLoweringStrategy endStrategy, out BoundExpression? rewrittenRangeArg)
1097startStrategy = PatternIndexOffsetLoweringStrategy.Zero;
1107endStrategy = PatternIndexOffsetLoweringStrategy.Length;