Lines Matching refs:declarator
1301 static void CheckSimpleVariableDeclaration(checker::TSChecker *checker, ir::VariableDeclarator *declarator)
1303 varbinder::Variable *const bindingVar = declarator->Id()->AsIdentifier()->Variable();
1305 auto *const typeAnnotation = declarator->Id()->AsIdentifier()->TypeAnnotation();
1306 auto *const initializer = declarator->Init();
1307 const bool isConst = declarator->Parent()->AsVariableDeclaration()->Kind() ==
1320 checker->ElaborateElementwise(annotationType, initializer, declarator->Id()->Start());
1333 {"Cannot infer type for variable '", declarator->Id()->AsIdentifier()->Name(), "'."},
1334 declarator->Id()->Start());
1339 checker->ThrowTypeError({"Variable ", declarator->Id()->AsIdentifier()->Name(), " implicitly has an any type."},
1340 declarator->Id()->Start());
1348 declarator->Id()->Start());