Lines Matching refs:declarator
72 static void CheckSimpleVariableDeclaration(checker::Checker *checker, const ir::VariableDeclarator *declarator)
74 CHECK_NOT_NULL(declarator);
75 binder::Variable *bindingVar = declarator->Id()->AsIdentifier()->Variable();
78 const ir::Expression *typeAnnotation = declarator->Id()->AsIdentifier()->TypeAnnotation();
79 const ir::Expression *initializer = declarator->Init();
80 bool isConst = declarator->Parent()->AsVariableDeclaration()->Kind() ==
93 checker->ElaborateElementwise(annotationType, initializer, declarator->Id()->Start());
106 checker->ThrowTypeError({"Variable ", declarator->Id()->AsIdentifier()->Name(), " implicitly has an any type."},
107 declarator->Id()->Start());
115 declarator->Id()->Start());