6 references to SemanticModel
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
160
RecordIneligibleFieldLocations(fieldNames, ineligibleFieldUsageIfOutsideProperty, context.
SemanticModel
, context.CodeBlock, context.CancellationToken);
161
RecordAllFieldReferences(fieldNames, fieldReads, fieldWrites, context.
SemanticModel
, context.CodeBlock, context.CancellationToken);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
7000
var model = context.
SemanticModel
;
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
160
RecordIneligibleFieldLocations(fieldNames, ineligibleFieldUsageIfOutsideProperty, context.
SemanticModel
, context.CodeBlock, context.CancellationToken);
161
RecordAllFieldReferences(fieldNames, fieldReads, fieldWrites, context.
SemanticModel
, context.CodeBlock, context.CancellationToken);
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\AnalysisContextInfoTests.cs (1)
73
c.RegisterCodeBlockStartAction<SyntaxKind>(b => ThrowIfMatch(nameof(c.RegisterCodeBlockStartAction), new AnalysisContextInfo(b.
SemanticModel
.Compilation, b.OwningSymbol, b.CodeBlock)));