12 references to First
Microsoft.Analyzers.Extra (3)
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (3)
66
_ = sb.Append(stringOp.ChildOperations.
First
().ConstantValue.Value as string);
70
var operation = intOp.ChildOperations.
First
();
92
interpolationArgs.Add(intOp.ChildOperations.
First
());
Microsoft.AspNetCore.App.Analyzers (3)
Authorization\AddAuthorizationBuilderAnalyzer.cs (3)
106
&& argumentChildOperations.
First
() is IDelegateCreationOperation delegateCreationOperation)
120
&& delegateCreationChildOperations.
First
() is IAnonymousFunctionOperation anonymousFunctionOperation)
134
&& anonymousFunctionChildOperations.
First
() is IBlockOperation blockOperation)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (4)
IOperation\IOperationTests_IVariableDeclaration.cs (4)
614
Assert.Equal(OperationKind.Literal, declarator.ChildOperations.
First
().Kind);
636
Assert.Equal(OperationKind.Literal, declarator.ChildOperations.
First
().Kind);
852
Assert.Equal(OperationKind.Literal, declaration.ChildOperations.
First
().Kind);
874
Assert.Equal(OperationKind.Literal, declaration.ChildOperations.
First
().Kind);
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\TestOperationVisitor.cs (2)
77
Assert.Same(builder[0], operation.ChildOperations.
First
());
96
Assert.Throws<InvalidOperationException>(() => operation.ChildOperations.
First
());