Lines Matching defs:declaration
220 ThrowSyntaxError("Annotations can not be used with annotation declaration",
537 ThrowSyntaxError("namespace export declaration is only supported in TypeScript '.d.ts'");
693 ThrowSyntaxError("Lexical 'class' declaration is not allowed in single statement context");
1350 ThrowSyntaxError("for-in loop variable declaration may not have an initializer");
1356 ThrowSyntaxError("for-of loop variable declaration may not have an initializer");
1596 // initNode was parsed as VariableDeclaration and declaration size = 1
2021 ThrowSyntaxError("for-await-of loop variable declaration may not have an initializer");
2057 ThrowSyntaxError("Missing initializer in const declaration");
2062 ThrowSyntaxError("Missing initializer in destructuring declaration");
2132 ThrowSyntaxError("Unexpected token in variable declaration");
2165 ThrowSyntaxError("Variable declaration expected.");
2192 auto *declaration = AllocNode<ir::VariableDeclaration>(varKind, std::move(declarators), isDeclare);
2193 declaration->SetRange({startLoc, endLoc});
2195 return declaration;
2442 ThrowSyntaxError("A class or function declaration without the default modifier must have a name.",
2470 ThrowSyntaxError("An interface or type alias declaration must have a name.");
2740 ThrowSyntaxError("Annotations can not be used with annotation declaration",