1 implementation of ElementValues
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7715public ImmutableArray<IOperation> ElementValues { get; }
25 references to ElementValues
ILLink.RoslynAnalyzer (2)
TrimAnalysis\TrimAnalysisVisitor.cs (2)
106 if (operation.Initializer?.ElementValues.Length >= MaxTrackedArrayValues) 110 var elements = operation.Initializer?.ElementValues.Select (val => Visit (val, state)).ToArray () ?? System.Array.Empty<MultiValue> ();
Microsoft.Analyzers.Extra (3)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (3)
402foreach (var e in arrayCreation.Initializer!.ElementValues) 451foreach (var e in arrayCreation.Initializer!.ElementValues) 507foreach (var e in arrayCreation.Initializer!.ElementValues)
Microsoft.CodeAnalysis (5)
Operations\ControlFlowGraphBuilder.cs (5)
6309foreach (var element in array.Initializer.ElementValues) 6503foreach (IOperation elementValue in initializer.ElementValues) 6519var builder = ArrayBuilder<IOperation>.GetInstance(initializer.ElementValues.Length); 6520for (int i = initializer.ElementValues.Length - 1; i >= 0; i--) 6522IOperation elementValue = initializer.ElementValues[i];
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
91var elements = arrayCreationOperation.Initializer.ElementValues;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (3)
120.Where(a => a.Initializer?.ElementValues.FirstOrDefault()?.Syntax.SpanStart == diagnostic.Location.SourceSpan.Start) 144builder.Capacity = initializer.ElementValues.Length; 147Contract.ThrowIfFalse(UseUtf8StringLiteralDiagnosticAnalyzer.TryConvertToUtf8String(builder, initializer.ElementValues));
Microsoft.CodeAnalysis.CSharp.Features (4)
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
91var elements = arrayCreationOperation.Initializer.ElementValues;
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (3)
120.Where(a => a.Initializer?.ElementValues.FirstOrDefault()?.Syntax.SpanStart == diagnostic.Location.SourceSpan.Start) 144builder.Capacity = initializer.ElementValues.Length; 147Contract.ThrowIfFalse(UseUtf8StringLiteralDiagnosticAnalyzer.TryConvertToUtf8String(builder, initializer.ElementValues));
Microsoft.CodeAnalysis.Features (1)
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
516initializer.ElementValues.SelectAsArray(op => op.Syntax)));
Microsoft.CodeAnalysis.Test.Utilities (6)
Compilation\OperationTreeVerifier.cs (2)
1621LogString($" ({operation.ElementValues.Length} elements)"); 1625VisitArray(operation.ElementValues, "Element Values", logElementCount: true);
Compilation\TestOperationVisitor.cs (1)
1153AssertEx.Equal(operation.ElementValues, operation.ChildOperations);
Diagnostics\OperationTestAnalyzer.cs (3)
567if (initializer.ElementValues.Length > 10) 572foreach (IOperation element in initializer.ElementValues) 795if (initializer.ElementValues.Length > 5)