Lines Matching refs:variable
258 …d AddEnumValueDeclaration(checker::Checker *checker, double number, binder::EnumVariable *variable) in AddEnumValueDeclaration() argument
260 variable->SetTsType(checker->GlobalNumberType()); in AddEnumValueDeclaration()
270 decl->BindNode(variable->Declaration()->Node()); in AddEnumValueDeclaration()
281 decl->BindNode(variable->Declaration()->Node()); in AddEnumValueDeclaration()
285 enumVar->SetValue(variable->Declaration()->Name()); in AddEnumValueDeclaration()
288 void InferEnumVariableType(checker::Checker *checker, binder::EnumVariable *variable, double *value… in InferEnumVariableType() argument
291 const ir::Expression *init = variable->Declaration()->Node()->AsTSEnumMember()->Init(); in InferEnumVariableType()
294 …checker->ThrowTypeError("Enum member must have initializer.", variable->Declaration()->Node()->Sta… in InferEnumVariableType()
298 variable->SetValue(++(*value)); in InferEnumVariableType()
299 AddEnumValueDeclaration(checker, *value, variable); in InferEnumVariableType()
314 binder::EnumMemberResult res = TSEnumDeclaration::EvaluateEnumMember(checker, variable, init); in InferEnumVariableType()
322 variable->SetTsType(checker->GlobalStringType()); in InferEnumVariableType()
340 variable->SetValue(res); in InferEnumVariableType()
356 AddEnumValueDeclaration(checker, *value, variable); in InferEnumVariableType()