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