Lines Matching refs:decl
357 void TSChecker::GetTypeVar(varbinder::Decl *decl)
360 util::Helpers::FindAncestorGivenByType(decl->Node(), ir::AstNodeType::VARIABLE_DECLARATOR);
371 void TSChecker::GetTypeParam(varbinder::Variable *var, varbinder::Decl *decl)
373 ir::AstNode *declaration = FindAncestorUntilGivenType(decl->Node(), ir::AstNodeType::SCRIPT_FUNCTION);
401 void TSChecker::GetTypeEnum(varbinder::Variable *var, varbinder::Decl *decl)
411 decl->Node()->Start());
417 Type *TSChecker::GetDeclTsType(varbinder::Variable *var, varbinder::Decl *decl)
419 switch (decl->Type()) {
422 if (!decl->Node()->Parent()->IsTSTypeQuery()) {
424 decl->Node()->Start());
431 GetTypeVar(decl);
435 var->SetTsType(decl->Node()->AsTSPropertySignature()->TypeAnnotation()->GetType(this));
445 checker::ScopeContext scopeCtx(this, decl->Node()->AsScriptFunction()->Scope());
446 InferFunctionDeclarationType(decl->AsFunctionDecl(), var);
450 GetTypeParam(var, decl);
454 GetTypeEnum(var, decl);
474 varbinder::Decl *decl = var->Declaration();
477 this, decl->Node(),
480 decl->Node()->Start());
485 return GetDeclTsType(var, decl);
527 varbinder::Decl *decl = var->Declaration();
529 if (decl->IsInterfaceDecl()) {
533 if (decl->IsTypeAliasDecl()) {