26 references to IsScript
Microsoft.CodeAnalysis.CSharp (26)
Parser\LanguageParser.cs (26)
255
if (
IsScript
)
431
if (
IsScript
&& parentKind == SyntaxKind.CompilationUnit)
618
IsScript
? ErrorCode.ERR_GlobalDefinitionOrStatementExpected : ErrorCode.ERR_EOFExpected);
662
if (isGlobal && (this.PeekToken(1).Kind == SyntaxKind.OpenParenToken || (!
IsScript
&& IsPossibleTopLevelUsingLocalDeclarationStatement())))
735
IsScript
? ErrorCode.ERR_GlobalDefinitionOrStatementExpected : ErrorCode.ERR_EOFExpected);
782
if (!
IsScript
)
2424
if (!isGlobal ||
IsScript
)
2511
if (!haveAttributes || !
IsScript
)
2514
if (!
IsScript
)
2582
if (!
IsScript
)
2603
if (!
IsScript
&&
2650
if ((!haveAttributes || !
IsScript
) && !haveModifiers && (type.Kind == SyntaxKind.RefType || !IsOperatorStart(out _, advanceParser: false)))
2660
if (!
IsScript
)
2672
if (isAcceptableNonDeclarationStatement(statement,
IsScript
))
2704
if ((!typeIsRef || !
IsScript
) && IsFieldDeclaration(isEvent: false, isGlobalScriptLevel: true))
2708
if ((!haveAttributes && !haveModifiers) || !
IsScript
)
2713
if (!
IsScript
)
2742
if (!haveModifiers && !haveAttributes && !
IsScript
&&
2778
if (!
IsScript
)
2958
parentKind == SyntaxKind.CompilationUnit && !
IsScript
)
4986
(parentKind != SyntaxKind.CompilationUnit ||
IsScript
);
8061
isGlobal = isGlobal &&
IsScript
;
8137
else if (this.IsQueryExpression(mayBeVariableDeclaration: true, mayBeMemberDeclaration: isGlobal &&
IsScript
))
8900
IsScript
)
10572
if (
IsScript
&& this.CurrentToken.Kind == SyntaxKind.EndOfFileToken)
10898
return (this.
IsScript
|| this.IsInAsync) && this.CurrentToken.ContextualKind == SyntaxKind.AwaitKeyword;