Implemented interface member:
27 writes to
Microsoft.CodeAnalysis (27)
CodeGen\ILBuilder.cs (3)
180
_allocatedILMarkers
[
marker] = new ILMarker() { BlockOffset = (int)current.RegularInstructionsLength, AbsoluteOffset = -1 };
905
_allocatedILMarkers
[
i] = new ILMarker() { BlockOffset = blockOffset, AbsoluteOffset = absoluteOffset };
1000
seqPoints
[
seqPoints.Count - 1] = seqPoint;
CodeGen\LocalScopeManager.cs (1)
513
result
[
slotIndex] = newScope;
CodeGen\LocalSlotManager.cs (1)
222
_lazyAllLocals
[
slot] = local;
Collections\ArrayBuilderExtensions.cs (1)
284
builder
[
writeIndex] = item;
Collections\TemporaryArray`1.cs (1)
131
_builder
[
index] = value;
CommandLine\CommandLineParser.cs (2)
654
args
[
argsIndex] = newArg;
1042
builder
[
i] = RemoveQuotesAndSlashesEx(builder[i]);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
663
builder
[
swapIndex] = builder[i];
MetadataReader\MetadataDecoder.cs (2)
313
builder
[
i] = lowerBound;
893
locals
[
i] = locals[i].WithSignature(signature);
Operations\ControlFlowGraphBuilder.cs (2)
1918
_evalStack
[
i] = (frameOpt: null, operationOpt: GetCaptureReference(captureId, operationOpt));
7467
children
[
i] = PopOperand();
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (3)
225
Regions
[
insertAt] = single;
234
Regions
[
j] = Regions[i];
240
Regions
[
insertAt++] = region;
ReferenceManager\CommonReferenceManager.Binding.cs (1)
453
result
[
resolvedReference.Index] = i;
ReferenceManager\CommonReferenceManager.State.cs (3)
526
aliasesOfReferencedAssembliesBuilder
[
assemblyIndex] = s_supersededAlias;
642
aliasesOfReferencedAssembliesBuilder
[
assemblyIndex] = MergedAliases.Merge(aliasesOfReferencedAssembliesBuilder[assemblyIndex], recursiveAliases);
668
aliasesOfReferencedAssembliesBuilder
[
i] = ImmutableArray<string>.Empty;
SourceGeneration\GeneratorDriver.cs (2)
328
stateBuilder
[
i] = generatorState.WithResults(ParseAdditionalSources(state.Generators[i], sources, cancellationToken), generatorDiagnostics, generatorRunStateTable.ExecutedSteps, generatorRunStateTable.OutputSteps, hostOutputs, generatorTimer.Elapsed);
332
stateBuilder
[
i] = SetGeneratorException(compilation, MessageProvider, generatorState, state.Generators[i], ufe.InnerException, diagnosticsBag, cancellationToken, runTime: generatorTimer.Elapsed);
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
675
this
[
j] = this[i];
699
this
[
j] = this[i];
Text\CompositeText.cs (2)
222
segments
[
i - 1] = prevSegment.GetSubText(new TextSpan(0, prevSegment.Length - 1));
224
segments
[
i + 1] = curSegment.GetSubText(new TextSpan(1, curSegment.Length - 1));
109 references to
Microsoft.CodeAnalysis (109)
CodeGen\ILBuilder.cs (4)
159
_allocatedILMarkers
[
_lastCompleteBlock.LastILMarker].BlockOffset == _lastCompleteBlock.RegularInstructionsLength)
165
_allocatedILMarkers
[
_lastCompleteBlock.LastILMarker].BlockOffset == _lastCompleteBlock.RegularInstructionsLength)
903
int blockOffset = _allocatedILMarkers
[
i].BlockOffset;
1262
return _allocatedILMarkers
[
ilMarker].AbsoluteOffset;
CodeGen\LocalScopeManager.cs (1)
129
if (result.Count > 0 && result
[
result.Count - 1].Length != expectedRootScopeLength)
CodeGen\SequencePointList.cs (4)
60
if (i == totalPoints || seqPointBuilder
[
i].SyntaxTree != seqPointBuilder
[
i - 1].SyntaxTree)
63
SequencePointList next = new SequencePointList(seqPointBuilder
[
i - 1].SyntaxTree, GetSubArray(seqPointBuilder, last, i - last, builder));
95
RawSequencePoint point = seqPointBuilder
[
i + start];
Collections\ArrayBuilderExtensions.cs (2)
219
return builder
[
builder.Count - 1];
280
var item = builder
[
i];
Collections\OrderedSet.cs (1)
59
return _list
[
index];
Collections\OrderPreservingMultiDictionary.cs (1)
227
return arrayBuilder
[
index];
Collections\TemporaryArray`1.cs (1)
112
return _builder
[
index];
CommandLine\AnalyzerConfigSet.cs (2)
459
if (analyzerConfigs
[
i].IsGlobal)
461
globalAnalyzerConfigBuilder.MergeIntoGlobalConfig(analyzerConfigs
[
i], diagnosticBag);
CommandLine\CommandLineParser.cs (6)
510
string arg = args
[
argsIndex].TrimEnd();
840
for (; offset < length && parts
[
offset].Length == 0; offset++)
849
filePath = RemoveQuotesAndSlashes(parts
[
offset + 0]);
854
resourceName = RemoveQuotesAndSlashes(parts
[
offset + 1]);
859
accessibility = RemoveQuotesAndSlashes(parts
[
offset + 2]);
1042
builder[i] = RemoveQuotesAndSlashesEx(builder
[
i]);
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
1472
actionsByKindBuilder
[
kind].Add(symbolAction);
DiagnosticAnalyzer\AnalyzerFileReference.cs (2)
662
yield return builder
[
swapIndex];
663
builder[swapIndex] = builder
[
i];
InternalUtilities\EnumField.cs (3)
48
long diff = unchecked((long)value - (long)sortedFields
[
mid].Value); // NOTE: Has to match the comparer below.
52
while (mid >= start && sortedFields
[
mid].Value == value)
56
return sortedFields
[
mid + 1];
MetadataReader\MetadataDecoder.cs (3)
883
int start = offsets
[
i];
890
int n = (i < localCount - 1) ? (offsets
[
i + 1] - start) : signatureReader.RemainingBytes;
893
locals[i] = locals
[
i].WithSignature(signature);
NativePdbWriter\PdbWriter.cs (2)
408
result.Builder.Append(nestedNamesReversed
[
i]);
495
LocalScope scope = scopeStack
[
i];
Operations\ControlFlowGraphBuilder.BasicBlockBuilder.cs (2)
236
BasicBlock block = blocks
[
Ordinal];
291
BasicBlock predecessor = blocks
[
predecessorBlockBuilder.Ordinal];
Operations\ControlFlowGraphBuilder.cs (32)
188
builder
[
blockBuilder.Ordinal].SetSuccessors(successor, conditionalSuccessor);
194
builder
[
blockBuilder.Ordinal].SetPredecessors(blockBuilder.ConvertPredecessorsToBranches(builder));
216
source: builder
[
source.Ordinal],
217
destination: branch.Destination != null ? builder
[
branch.Destination.Ordinal] : null,
252
toVisit.Push(blocks
[
firstBlockOrdinal]);
390
blocks
[
@finally.LastBlockOrdinal].FallThrough.Kind == ControlFlowBranchSemantics.StructuredExceptionHandling;
472
toVisit.Add(blocks
[
@catch.FirstBlockOrdinal]);
476
BasicBlockBuilder entryBlock = blocks
[
@catch.FirstBlockOrdinal];
524
RegionBuilder r = region.Regions
[
i];
571
RegionBuilder subRegion = region.Regions
[
i];
643
Debug.Assert(regionMap[blocks
[
i]] == subRegion);
644
regionMap[blocks
[
i]] = enclosing;
659
Debug.Assert(regionMap[blocks
[
i]] == subRegion);
660
regionMap[blocks
[
i]] = enclosing;
690
BasicBlockBuilder block = blocks
[
i];
845
next.Destination != blocks
[
i + 1])
1003
blocks
[
count].Ordinal = count;
1048
BasicBlockBuilder newFirst = blocks
[
block.Ordinal + 1];
1061
BasicBlockBuilder newLast = blocks
[
block.Ordinal - 1];
1077
Debug.Assert(blocks
[
block.Ordinal] == block);
1174
while (mismatch < from.Count && mismatch < to.Count && from
[
mismatch] == to
[
mismatch])
1823
(EvalStackFrame? frameOpt, _) = _evalStack
[
i];
1834
(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack
[
i];
1861
EvalStackFrame? currentFrame = _evalStack
[
currentFrameIndex].frameOpt;
1872
IOperation? operation = _evalStack
[
j].operationOpt;
1936
(EvalStackFrame? frameOpt, IOperation? operationOpt) = _evalStack
[
i];
6779
Debug.Assert(_evalStack
[
maxStackDepth + 1].frameOpt != null);
6786
Debug.Assert(_evalStack
[
i].frameOpt == null);
6787
Debug.Assert(_evalStack
[
i].operationOpt != null);
6856
var appendCall = appendCalls
[
i];
7021
return _evalStack
[
targetStackDepth].operationOpt;
Operations\ControlFlowGraphBuilder.RegionBuilder.cs (3)
234
Regions[j] = Regions
[
i];
358
setRegion(blocks
[
i]);
366
setRegion(blocks
[
i]);
PEWriter\MetadataWriter.PortablePdb.cs (1)
546
while (builder
[
lastNonZero] == 0)
PEWriter\TypeNameSerializer.cs (1)
292
result.Builder.Append(namesReversed
[
i]);
ReferenceManager\CommonReferenceManager.Binding.cs (6)
174
boundInputs[i].ReferenceBinding = referenceBindings
[
i];
338
implicitAssembliesMap.Add(implicitAssemblies
[
i].Identity.Name, (implicitAssemblies
[
i], explicitAssemblyCount + i));
345
var referenceBinding = referenceBindings
[
bindingsIndex];
431
new ArraySegment<AssemblyReferenceBinding>(referenceBindings
[
explicitReferenceMapping.Index + 1])));
488
bindingsOfAssemblyBeingBuilt.Add(new AssemblyReferenceBinding(implicitAssemblies
[
i].Identity, explicitAssemblyCount + i));
ReferenceManager\CommonReferenceManager.State.cs (2)
642
aliasesOfReferencedAssembliesBuilder[assemblyIndex] = MergedAliases.Merge(aliasesOfReferencedAssembliesBuilder
[
assemblyIndex], recursiveAliases);
666
if (aliasesOfReferencedAssembliesBuilder
[
i].IsDefault)
SourceGeneration\AdditionalSourcesCollection.cs (2)
94
if (s_hintNameComparer.Equals(_sourcesAdded
[
i].HintName, hintName))
107
if (s_hintNameComparer.Equals(_sourcesAdded
[
i].HintName, hintName))
SourceGeneration\GeneratorDriver.cs (2)
314
var generatorState = stateBuilder
[
i];
320
using var generatorTimer = CodeAnalysisEventSource.Log.CreateSingleGeneratorRunTimer(state.Generators[i], (t) => t.Add(syntaxStoreBuilder.GetRuntimeAdjustment(stateBuilder
[
i].InputNodes)));
SourceGeneration\SyntaxStore.cs (2)
93
var currentNode = syntaxInputBuilders
[
i].node;
100
syntaxInputBuilders
[
i].builder.VisitTree(root, state, model, _cancellationToken);
src\Dependencies\PooledObjects\ArrayBuilder.cs (8)
44
result[i] = _builder
[
i];
537
var item = this
[
i];
583
Add(items
[
i]);
673
if (set.Add(this
[
i]))
675
this[j] = this
[
i];
696
if (comparer.Compare(this
[
j], this
[
i]) < 0)
699
this[j] = this
[
i];
src\Dependencies\PooledObjects\ArrayBuilder.Enumerator.cs (1)
27
return _builder
[
_index];
SymbolDisplay\AbstractSymbolDisplayVisitor.cs (1)
281
((IFieldSymbol)usedFieldsAndValues
[
i].IdentityOpt!).Accept(this.NotFirstVisitor);
Syntax\LineDirectiveMap.cs (2)
160
Debug.Assert(entries
[
i].CompareTo(entries
[
i + 1]) < 0);
Text\CompositeText.cs (11)
216
var prevSegment = segments
[
i - 1];
217
var curSegment = segments
[
i];
293
if (segments
[
i].Length <= segmentSize)
299
if (segments
[
j].Length > segmentSize)
326
if (segments
[
i].Length <= segmentSize)
328
int combinedLength = segments
[
i].Length;
334
if (segments
[
j].Length > segmentSize)
340
combinedLength += segments
[
j].Length;
346
var encoding = segments
[
i].Encoding;
347
var algorithm = segments
[
i].ChecksumAlgorithm;
352
segments
[
j].Write(writer);