Searched refs:inferRetType (Results 1 – 16 of 16) sorted by relevance
214 inferRetType = 0x40000, /// Return type is to be inferred enumerator378 this.flags |= FUNCFLAG.inferRetType;430 if (inferRetType && type && !type.nextOf()) in functionSemantic()501 bool inSemantic3 = (inferRetType && semanticRun >= PASS.semantic3); in checkForwardRef()1306 !(inferRetType && !isCtorDeclaration())) in canInferAttributes()1316 (inferRetType && !isCtorDeclaration())) in canInferAttributes()1509 final bool inferRetType() const scope @safe pure nothrow @nogc in inferRetType() function1511 return !!(this.flags & FUNCFLAG.inferRetType); in inferRetType()2701 assert(this.inferRetType); in checkMain()3770 if (inferRetType && type.nextOf() != tret) in modifyReturns()
243 if (funcdecl.inferRetType) in visit()293 if (!funcdecl.inferRetType && f.next.ty == Terror) in visit()296 if (!funcdecl.fbody && funcdecl.inferRetType && !f.next) in visit()615 if (funcdecl.inferRetType) in visit()
665 bool inferRetType() const;
833 if (!f.inferRetType && tf.next) in ParseVisitMethods()
2879 const returnSharedRef = (tf.isref && (fd.inferRetType || tret.isShared())); in package()2891 if (fd.inferRetType && f.checkForwardRef(rs.exp.loc)) in package()2934 if (fd.inferRetType) // infer return type in package()3025 if (fd.inferRetType) in package()
1176 fd.flags |= FUNCFLAG.inferRetType; in matchWithInstance()3132 if (tf.next && !m.lastf.inferRetType)
1672 if (!f.inferRetType && tf.next) in visit()
3256 if ((funcdecl.storage_class & STC.auto_) && !f.isref && !funcdecl.inferRetType) in funcDeclarationSemantic()
3964 if (fd.inferRetType && tfx.next.implicitConvTo(tof.next) == MATCH.convert)
1699 if (!tf.next && fd.inferRetType) in functionParameters()
349 inferRetType = (type && type->nextOf() == NULL); in FuncDeclaration()405 (fd->inferRetType && !fd->isCtorDeclaration())) in canInferAttributes()720 if ((storage_class & STCauto) && !f->isref && !inferRetType) in semantic()1408 if (!inferRetType && f->next->ty == Terror) in semantic3()1411 if (!fbody && inferRetType && !f->next) in semantic3()1707 if (!inferRetType && retStyle(f) != RETstack) in semantic3()1728 if (inferRetType) in semantic3()2399 if (inferRetType && type && !type->nextOf()) in functionSemantic()2470 bool inSemantic3 = (inferRetType && semanticRun >= PASSsemantic3); in checkForwardRef()4793 if (inferRetType && type->nextOf() != tret) in modifyReturns()
564 bool inferRetType; // true if return type is to be inferred variable
2768 if (fd->inferRetType && f->checkForwardRef(rs->exp->loc)) in visit()2810 if (fd->inferRetType) // infer return type in visit()2900 if (fd->inferRetType) in visit()
1397 if (!tf->next && fd->inferRetType) in functionParameters()4734 if (fd->inferRetType && tfx->next->implicitConvTo(tof->next) == MATCHconvert) in matchType()
2013 if (!f->inferRetType && tf->next) in visit()
944 fd->inferRetType = true; in matchWithInstance()2624 if (tf->next && !m->lastf->inferRetType) in functionResolve()