8 references to IsInStaticContext
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (2)
201
if (!eventHookupExpression.
IsInStaticContext
() && typeDecl is not null)
282
modifiers: new DeclarationModifiers(isStatic: eventHookupExpression.
IsInStaticContext
()),
EventHookup\EventHookupSessionManager_EventHookupSession.cs (1)
187
new DeclarationModifiers(isStatic: plusEqualsToken.Value.Parent.
IsInStaticContext
()),
Microsoft.CodeAnalysis.CSharp.Features (1)
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_MethodGroup.cs (1)
72
invocationExpression.
IsInStaticContext
())
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CSharpSyntaxFacts.cs (1)
576
=> node.
IsInStaticContext
();
ExternalAccess\Pythia\Api\PythiaSyntaxExtensions.cs (1)
29
=> CSharp.Extensions.SyntaxNodeExtensions.
IsInStaticContext
(node);
Recommendations\CSharpRecommendationServiceRunner.cs (2)
285
var symbols = !_context.IsNameOfContext && _context.LeftToken.GetRequiredParent().
IsInStaticContext
()
480
if (parameter.IsThis && expression.
IsInStaticContext
())