15 references to IsScript
Microsoft.CodeAnalysis.CSharp.Features (11)
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
40
(context.IsGlobalStatementContext && syntaxTree.
IsScript
()) ||
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (1)
50
(context.IsGlobalStatementContext && syntaxTree.
IsScript
()) ||
Completion\KeywordRecommenders\LoadKeywordRecommender.cs (1)
18
syntaxTree.
IsScript
() &&
Completion\KeywordRecommenders\NamespaceKeywordRecommender.cs (1)
20
if (syntaxTree.
IsScript
())
Completion\KeywordRecommenders\PrivateKeywordRecommender.cs (1)
18
(context.IsGlobalStatementContext && context.SyntaxTree.
IsScript
()) ||
Completion\KeywordRecommenders\ReferenceKeywordRecommender.cs (1)
18
syntaxTree.
IsScript
() &&
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
142
syntaxTree.IsGlobalMemberDeclarationContext(position, syntaxTree.
IsScript
() ? RefGlobalMemberScriptModifiers : RefGlobalMemberModifiers, cancellationToken) ||
Completion\KeywordRecommenders\ReturnKeywordRecommender.cs (1)
28
(context.SyntaxTree.
IsScript
() && context.IsTypeAttributeContext(cancellationToken)) ||
Completion\KeywordRecommenders\VolatileKeywordRecommender.cs (1)
28
(context.IsGlobalStatementContext && context.SyntaxTree.
IsScript
()) ||
ExtractMethod\CSharpMethodExtractor.cs (2)
104
if (!globalStatement.Statement.IsStatementContainerNode() && !root.SyntaxTree.
IsScript
())
142
if (!globalStatement.Statement.IsStatementContainerNode() && !root.SyntaxTree.
IsScript
())
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
448
else if (SyntaxTree.
IsScript
()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
83
if (!syntaxTree.
IsScript
())
365
return !syntaxTree.
IsScript
() && syntaxTree.IsGlobalStatementContext(position, cancellationToken);
671
if (syntaxTree.
IsScript
() || syntaxTree.IsInNonUserCode(position, cancellationToken))