27 references to CodeBlock
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (1)
1059/// Indicates if the <see cref="CodeBlock"/> is generated code.
Microsoft.CodeAnalysis.CodeStyle (3)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
160RecordIneligibleFieldLocations(fieldNames, ineligibleFieldUsageIfOutsideProperty, context.SemanticModel, context.CodeBlock, context.CancellationToken); 161RecordAllFieldReferences(fieldNames, fieldReads, fieldWrites, context.SemanticModel, context.CodeBlock, context.CancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (1)
211=> context.CodeBlock.FindNode(context.FilterSpan, findInTrivia, getInnermostNodeForTie);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Diagnostics\GetDiagnosticsTests.cs (1)
974throw new Exception($"Unexpected topmost node for code block '{context.CodeBlock.Kind()}'");
Semantics\PrimaryConstructorTests.cs (7)
4972switch (context.CodeBlock) 4983switch (context.CodeBlock) 4994switch (context.CodeBlock) 5005switch (context.CodeBlock) 5938switch (context.CodeBlock) 5949switch (context.CodeBlock) 5960switch (context.CodeBlock)
Semantics\RecordTests.cs (4)
27435switch (context.CodeBlock) 27446switch (context.CodeBlock) 27457switch (context.CodeBlock) 27468switch (context.CodeBlock)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\RecordStructTests.cs (3)
6664switch (context.CodeBlock) 6675switch (context.CodeBlock) 6686switch (context.CodeBlock)
Semantics\TopLevelStatementsTests.cs (3)
6985Assert.Equal(SyntaxKind.CompilationUnit, context.CodeBlock.Kind()); 6987switch (context.CodeBlock.ToString()) 7001var unit = (CompilationUnitSyntax)context.CodeBlock;
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
160RecordIneligibleFieldLocations(fieldNames, ineligibleFieldUsageIfOutsideProperty, context.SemanticModel, context.CodeBlock, context.CancellationToken); 161RecordAllFieldReferences(fieldNames, fieldReads, fieldWrites, context.SemanticModel, context.CodeBlock, context.CancellationToken);
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\TestDiagnosticAnalyzer.cs (1)
115_container.OnAbstractMember("CodeBlockStart", context.CodeBlock, context.OwningSymbol);
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\AnalysisContextInfoTests.cs (1)
73c.RegisterCodeBlockStartAction<SyntaxKind>(b => ThrowIfMatch(nameof(c.RegisterCodeBlockStartAction), new AnalysisContextInfo(b.SemanticModel.Compilation, b.OwningSymbol, b.CodeBlock)));
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (1)
211=> context.CodeBlock.FindNode(context.FilterSpan, findInTrivia, getInnermostNodeForTie);