26 references to OwningSymbol
Microsoft.Analyzers.Extra (1)
UsingToStringInLoggersAnalyzer.cs (1)
28if (operationBlockContext.OwningSymbol.Kind != SymbolKind.Method)
Microsoft.AspNetCore.Analyzers (6)
MiddlewareAnalyzer.cs (1)
22var configureMethod = (IMethodSymbol)context.OwningSymbol;
OptionsAnalyzer.cs (1)
23var configureServicesMethod = (IMethodSymbol)context.OwningSymbol;
ServicesAnalyzer.cs (1)
22var configureServicesMethod = (IMethodSymbol)context.OwningSymbol;
StartupAnalyzer.cs (3)
60if (context.OwningSymbol.Kind != SymbolKind.Method) 65var method = (IMethodSymbol)context.OwningSymbol; 73var isMain = SymbolEqualityComparer.Default.Equals(entryPoint, context.OwningSymbol);
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParameterUsageAnalyzer.cs (1)
82var assignmentContainingType = startBlockContext.OwningSymbol?.ContainingType;
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParameterUsageAnalyzer.cs (1)
82var assignmentContainingType = startBlockContext.OwningSymbol?.ContainingType;
Microsoft.AspNetCore.Mvc.Analyzers (1)
TagHelpersInCodeBlocksAnalyzer.cs (1)
75IMethodBodyOperation methodBodyOperation => startBlockContext.OwningSymbol,
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (1)
1245/// This includes all blocks associated with the <see cref="OwningSymbol"/>,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
88if (context.OwningSymbol is IMethodSymbol { MethodKind: MethodKind.Constructor })
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\PrimaryConstructorTests.cs (1)
4643switch (context.OwningSymbol.ToTestDisplayString())
Semantics\RecordTests.cs (1)
27106switch (context.OwningSymbol.ToTestDisplayString())
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
88if (context.OwningSymbol is IMethodSymbol { MethodKind: MethodKind.Constructor })
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
6858Assert.Equal("<top-level-statements-entry-point>", context.OwningSymbol.ToTestDisplayString());
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\DiagnosticServiceTests.vb (1)
2526AnalyzedOperationBlockStartSymbols.Add(operationBlockStartContext.OwningSymbol)
Microsoft.CodeAnalysis.Test.Utilities (9)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
1336CacheAndVerifyControlFlowGraph(blockStartContext.OperationBlocks, op => (blockStartContext.GetControlFlowGraph(op), blockStartContext.OwningSymbol)); 1362CacheAndVerifyControlFlowGraph(blockContext.OperationBlocks, op => (blockContext.GetControlFlowGraph(op), blockContext.OwningSymbol)); 1573if (context.OwningSymbol.Kind != SymbolKind.Method || 1579sortedCallbackOperationBlockStartNames.Add($"{context.OwningSymbol.ContainingType.Name}(IsGeneratedCode:{context.IsGeneratedCode})"); 2570endContext => endContext.ReportDiagnostic(Diagnostic.Create(s_descriptor, context.OwningSymbol.Locations[0]))); 3044AnalyzedOperationBlockStartSymbols.Add(operationBlockStartContext.OwningSymbol);
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
52if (operationBlockContext.OwningSymbol is IMethodSymbol containingMethod)
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (1)
46if (operationBlockContext.OwningSymbol is IMethodSymbol containingMethod)
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
40if (operationBlockContext.OwningSymbol is IMethodSymbol containingMethod)