Lines Matching defs:methodDef
207 void TSDeclGen::GenFunctionBody(const ir::MethodDefinition *methodDef, const checker::Signature *sig,
221 Out(methodDef != nullptr ? ": " : " => ");
223 if (methodDef != nullptr && !state_.inInterface) {
229 void TSDeclGen::GenFunctionType(const checker::ETSFunctionType *etsFunctionType, const ir::MethodDefinition *methodDef)
231 const bool isConstructor = methodDef != nullptr ? methodDef->IsConstructor() : false;
232 const bool isSetter = methodDef != nullptr ? methodDef->Kind() == ir::MethodDefinitionKind::SET : false;
234 const auto *sig = [this, methodDef, etsFunctionType]() -> const checker::Signature * {
235 if (methodDef != nullptr) {
236 return methodDef->Function()->Signature();
239 const auto loc = methodDef != nullptr ? methodDef->Start() : lexer::SourcePosition();
271 GenFunctionBody(methodDef, sig, isConstructor, isSetter);
504 for (const auto *methodDef : prop->AsMethodDefinition()->Overloads()) {
505 GenMethodDeclaration(methodDef);
561 for (const auto *methodDef : prop->AsMethodDefinition()->Overloads()) {
562 GenMethodDeclaration(methodDef);
579 void TSDeclGen::GenMethodDeclaration(const ir::MethodDefinition *methodDef)
581 const auto methodIdent = GetKeyIdent(methodDef->Key());
591 GenModifier(methodDef);
594 if (methodDef->Kind() == ir::MethodDefinitionKind::GET) {
597 if (methodDef->Kind() == ir::MethodDefinitionKind::SET) {
604 if (methodDef->TsType() == nullptr) {
608 GenFunctionType(methodDef->TsType()->AsETSFunctionType(), methodDef);