7 references to Instance
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (2)
178
var enclosingBlockOfLocalStatement = CSharpBlockFacts.
Instance
.GetImmediateParentExecutableBlockForStatement(localStatement);
270
CSharpBlockFacts.
Instance
.GetExecutableBlockStatements(enclosingBlock).Last());
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (2)
229
var parentBlock = CSharpBlockFacts.
Instance
.GetImmediateParentExecutableBlockForStatement(ifStatement);
261
var blockStatements = CSharpBlockFacts.
Instance
.GetExecutableBlockStatements(parentBlock);
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (3)
87
var parentBlockLike = CSharpBlockFacts.
Instance
.GetImmediateParentExecutableBlockForStatement(outermostUsing);
142
foreach (var statement in CSharpBlockFacts.
Instance
.GetExecutableBlockStatements(parentBlockLike))
181
var statements = CSharpBlockFacts.
Instance
.GetExecutableBlockStatements(parentBlockLike);