12 references to First
Microsoft.Analyzers.Extra (3)
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (3)
66_ = sb.Append(stringOp.ChildOperations.First().ConstantValue.Value as string); 70var operation = intOp.ChildOperations.First(); 92interpolationArgs.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)
614Assert.Equal(OperationKind.Literal, declarator.ChildOperations.First().Kind); 636Assert.Equal(OperationKind.Literal, declarator.ChildOperations.First().Kind); 852Assert.Equal(OperationKind.Literal, declaration.ChildOperations.First().Kind); 874Assert.Equal(OperationKind.Literal, declaration.ChildOperations.First().Kind);
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\TestOperationVisitor.cs (2)
77Assert.Same(builder[0], operation.ChildOperations.First()); 96Assert.Throws<InvalidOperationException>(() => operation.ChildOperations.First());