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