Lines Matching refs:Start
48 exceptionType = checker->CheckExceptionOrErrorType(catchParamAnnotationType, st->Param()->Start());
101 checker->LogTypeError("Static initializer is not allowed in inner class.", st->Start());
127 checker->LogTypeError("'Native' method should have explicit return type", scriptFunc->Start());
139 checker->LogTypeError("Return type of async function must be 'Promise'.", scriptFunc->Start());
158 checker->LogTypeError("Invalid function expression", node->Start());
170 checker->LogTypeError("Only abstract or native methods can't have body.", scriptFunc->Start());
177 checker->LogTypeError("Native and Declare methods should have explicit return type.", scriptFunc->Start());
220 node->Start());
226 checker->LogTypeError("Invalid function expression", node->Start());
234 checker->LogTypeError("Non abstract class has abstract method.", node->Start());
243 node->Start());
252 node->Start());
283 checker->LogTypeError("Class literal is not yet supported.", literal->Start());
290 checker->LogTypeError("Invalid .class reference", literal->Start());
374 checker->LogTypeError({"Union types in array declaration must include a nullish type."}, expr->Start());
384 checker->CollectParameterlessConstructor(calleeObj->ConstructSignatures(), expr->Start()));
385 checker->ValidateSignatureAccessibility(calleeObj, nullptr, expr->Signature(), expr->Start());
388 expr->Start());
405 calleeObj->GetDeclNode()->Start());
422 checker->LogTypeError({calleeObj->Name(), " is abstract therefore cannot be instantiated."}, expr->Start());
429 expr->GetTypeRef()->Start());
455 auto *signature = checker->ResolveConstructExpression(calleeObj, expr->GetArguments(), expr->Start());
464 checker->ValidateSignatureAccessibility(calleeObj, nullptr, signature, expr->Start());
585 currentElement->Start(),
594 currentElement->Start());
600 currentElement->Start(),
607 currentElement->Start());
645 currentElement->Start());
651 currentElement->Start(), {}, TypeRelationFlag::NO_THROW).IsAssignable()) {
653 currentElement->Start());
685 expr->Start());
714 checker->LogTypeError("Can't resolve array type", expr->Start());
784 checker->LogTypeError("Return type of async lambda must be 'Promise'", expr->Function()->Start());
800 checker->LogTypeError("Setting the length of an array is not permitted", expr->Left()->Start());
854 checker->LogTypeError("Invalid left-hand side of assignment expression", expr->Left()->Start());
872 checker::AssignmentContext(checker->Relation(), relationNode, rightType, leftType, expr->Right()->Start(),
901 expr->Left(), expr->Right(), expr, expr->OperatorType(), expr->Start(), true);
941 checker->LogTypeError("'await' expressions require Promise object as argument.", expr->Argument()->Start());
989 checker->CheckBinaryOperator(expr->Left(), expr->Right(), expr, expr->OperatorType(), expr->Start());
1043 checker::Signature *signature = checker->ResolveCallExpressionAndTrailingLambda(signatures, expr, expr->Start());
1049 checker->LogTypeError({"No matching call signature"}, expr->Start());
1078 checker->LogTypeError({"Type '", calleeType, "' has no call signatures."}, expr->Start());
1092 checker->ValidateSignatureAccessibility(calleeObj, expr, signature, expr->Start());
1124 checker->LogTypeError("Cannot call abstract method!", expr->Start());
1138 checker->LogTypeError("Cannot call readonly type methods.", expr->Start());
1330 checker->LogTypeError({"Ambiguous reference to '", aliasName, "'"}, expr->Start());
1350 expr->Object()->Start());
1425 checker->LogTypeError({"need to specify target type for class composite"}, expr->Start());
1431 {"Target type for class composite needs to be an object type, found '", preferredType, "'"}, expr->Start());
1477 expr->Start());
1496 checker->ValidateSignatureAccessibility(objType, nullptr, sig, expr->Start());
1501 checker->LogTypeError({"type ", objType->Name(), " has no parameterless constructor"}, expr->Start());
1532 expr->Start());
1537 checker->LogTypeError({"type ", objType->Name(), " has no property named ", pname}, propExpr->Start());
1540 checker->ValidatePropertyAccess(lv, objType, propExpr->Start());
1559 checker->Relation(), value, valueType, propType, value->Start(),
1607 checker->LogTypeError("Invalid string template expression", expr->Start());
1830 expr->Argument()->Start());
1963 checker->LogTypeError("Bad operand type, the type of the operand must be boolean type.", st->Test()->Start());
1970 checker->LogTypeError("Assert message must be string", st->Second()->Start());
2095 checker->LogTypeError(ss.str(), st->Start());
2127 checker->LogTypeError(MISSING_SOURCE_EXPR_TYPE, st->Right()->Start());
2146 checker->LogTypeError(INVALID_SOURCE_EXPR_TYPE, st->Right()->Start());
2255 st->Start());
2264 checker->LogTypeError("Missing return value.", st->Start());
2336 checker->LogTypeError("Return statement with expression isn't allowed in constructor.", st->Start());
2403 checker->CheckExceptionOrErrorType(argType, st->Start());
2425 checker->LogTypeError("Default catch clause should be the last in the try statement", catchClause->Start());
2565 checker->LogTypeError("Cannot cast 'null' or 'undefined' to non-nullish type.", expr->Expr()->Start());
2573 checker::CastingContext::ConstructorData {expr->Expr(), sourceType, targetType, expr->Expr()->Start()});
2591 checker->LogTypeError("Cast to 'never' is prohibited", expr->Start());
2615 checker->LogTypeError("Invalid enumeration value type.", st->Start());
2665 expr->Expr()->Start());
2698 checker->LogTypeError({"'", expr->Right()->Name(), "' type does not exist."}, expr->Right()->Start());
2704 expr->Right()->Start());
2712 checker->LogTypeError({"'", expr->Right()->Name(), "' type does not exist."}, expr->Right()->Start());
2750 param->Start());