Home
last modified time | relevance | path

Searched refs:hasOverloads (Results 1 – 25 of 29) sorted by relevance

12

/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Daliasthis.c44 bool hasOverloads = false; in resolveAliasThis() local
45 if (FuncDeclaration *f = fd->overloadModMatch(loc, tthis, hasOverloads)) in resolveAliasThis()
47 if (!hasOverloads) in resolveAliasThis()
49 e = new VarExp(loc, fd, hasOverloads); in resolveAliasThis()
H A Dexpression.c53 Expression *resolve(Loc loc, Scope *sc, Dsymbol *s, bool hasOverloads);
1774 if (se->hasOverloads && in functionParameters()
3168 DsymbolExp::DsymbolExp(Loc loc, Dsymbol *s, bool hasOverloads) in DsymbolExp() argument
3172 this->hasOverloads = hasOverloads; in DsymbolExp()
3182 Expression *resolve(Loc loc, Scope *sc, Dsymbol *s, bool hasOverloads) in resolve() argument
3265 if (!hasOverloads && f->checkForwardRef(loc)) in resolve()
3270 return new VarExp(loc, fd, hasOverloads); in resolve()
4333 SymbolExp::SymbolExp(Loc loc, TOK op, int size, Declaration *var, bool hasOverloads) in SymbolExp() argument
4338 this->hasOverloads = hasOverloads; in SymbolExp()
4343 SymOffExp::SymOffExp(Loc loc, Declaration *var, dinteger_t offset, bool hasOverloads) in SymOffExp() argument
[all …]
H A Dexpression.h312 bool hasOverloads; variable
314 DsymbolExp(Loc loc, Dsymbol *s, bool hasOverloads = true);
578 bool hasOverloads; variable
579 SymbolExp(Loc loc, TOK op, int size, Declaration *var, bool hasOverloads);
591 SymOffExp(Loc loc, Declaration *var, dinteger_t offset, bool hasOverloads = true);
602 VarExp(Loc loc, Declaration *var, bool hasOverloads = true);
603 static VarExp *create(Loc loc, Declaration *var, bool hasOverloads = true);
819 bool hasOverloads; variable
821 DotVarExp(Loc loc, Expression *e, Declaration *var, bool hasOverloads = true);
846 bool hasOverloads; variable
[all …]
H A Dfunc.c39 Expression *resolve(Loc loc, Scope *sc, Dsymbol *s, bool hasOverloads);
2565 fa1->hasOverloads == fa2->hasOverloads; in equals()
2568 if (fa1 && (fd1 = fa1->toAliasFunc())->isUnique() && !fa1->hasOverloads) in equals()
2570 if (fa2 && (fd2 = fa2->toAliasFunc())->isUnique() && !fa2->hasOverloads) in equals()
2976 if (od->hasOverloads) in overloadApply()
2990 if (fa->hasOverloads) in overloadApply()
3160 FuncDeclaration *FuncDeclaration::overloadModMatch(Loc loc, Type *tthis, bool &hasOverloads) in overloadModMatch() argument
3245 hasOverloads = false; in overloadModMatch()
3249 hasOverloads = true; in overloadModMatch()
3253 hasOverloads = true; in overloadModMatch()
[all …]
H A Ddeclaration.c703 OverDeclaration::OverDeclaration(Identifier *ident, Dsymbol *s, bool hasOverloads) in OverDeclaration() argument
709 this->hasOverloads = hasOverloads; in OverDeclaration()
710 if (hasOverloads) in OverDeclaration()
713 this->hasOverloads = od->hasOverloads; in OverDeclaration()
744 od1->hasOverloads == od2->hasOverloads; in equals()
748 if (hasOverloads) in equals()
785 if (!hasOverloads) in isUnique()
H A Ddeclaration.h222 bool hasOverloads; variable
224 OverDeclaration(Identifier *ident, Dsymbol *s, bool hasOverloads = true);
619 FuncDeclaration *overloadModMatch(Loc loc, Type *tthis, bool &hasOverloads);
689 bool hasOverloads; variable
691 FuncAliasDeclaration(Identifier *ident, FuncDeclaration *funcalias, bool hasOverloads = true);
H A Ddmangle.c480 if (!fd->hasOverloads && !fa) in visit()
503 if (!od->hasOverloads || fd->isUnique()) in visit()
511 if (!od->hasOverloads || td->overnext == NULL) in visit()
H A Dinitsem.c22 FuncDeclaration *isFuncAddress(Expression *e, bool *hasOverloads = NULL);
653 bool hasOverloads = false; in visit() local
654 if (FuncDeclaration *f = isFuncAddress(init->exp, &hasOverloads)) in visit()
662 if (hasOverloads && !f->isUnique()) in visit()
H A Dexpressionsem.c63 FuncDeclaration *isFuncAddress(Expression *e, bool *hasOverloads = NULL);
66 Expression *resolve(Loc loc, Scope *sc, Dsymbol *s, bool hasOverloads);
448 result = resolve(e->loc, sc, e->s, e->hasOverloads); in visit()
2761 exp->e1 = new DotVarExp(de->loc, de->e1, de->func, de->hasOverloads); in visit()
2945 if (exp->e1->op == TOKsymoff && ((SymOffExp *)exp->e1)->hasOverloads) in visit()
3384 dve->hasOverloads = false; in visit()
3500 if (ve->hasOverloads) in visit()
3561 if (ve->hasOverloads) in visit()
3672 bool hasOverloads = false; in visit() local
3673 if (FuncDeclaration *f = isFuncAddress(exp, &hasOverloads)) in visit()
[all …]
H A Ddcast.c26 FuncDeclaration *isFuncAddress(Expression *e, bool *hasOverloads = NULL);
2132 if (e->type == t && !e->hasOverloads) in castTo()
2144 ((SymOffExp *)result)->hasOverloads = false; in castTo()
2149 if (e->hasOverloads && in castTo()
2210 if (!tb->equals(typeb) || e->hasOverloads) in castTo()
H A Ddstruct.c30 Expression *resolve(Loc loc, Scope *sc, Dsymbol *s, bool hasOverloads);
H A Doptimize.c372 ret = new SymOffExp(e->loc, ve->var, 0, ve->hasOverloads); in Expression_optimize()
H A Dtraits.c39 Expression *resolve(Loc loc, Scope *sc, Dsymbol *s, bool hasOverloads);
H A Dctfeexpr.c383 ((DotVarExp *)e)->var, ((DotVarExp *)e)->hasOverloads); in copyLiteral()
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/
H A Daliasthis.d109 bool hasOverloads; variable
110 if (auto f = fd.overloadModMatch(loc, tthis, hasOverloads))
112 if (!hasOverloads)
114 e = new VarExp(loc, fd, hasOverloads);
H A Dfunc.d598 return faf1.equals(faf2) && fa1.hasOverloads == fa2.hasOverloads; in equals()
602 if (b1 && faf1.isUnique() && !fa1.hasOverloads) in equals()
606 if (b2 && faf2.isUnique() && !fa2.hasOverloads) in equals()
871 …rn (D) final FuncDeclaration overloadModMatch(const ref Loc loc, Type tthis, ref bool hasOverloads) in overloadModMatch() argument
935 hasOverloads = false; in overloadModMatch()
939 hasOverloads = true; in overloadModMatch()
943 hasOverloads = true; in overloadModMatch()
2949 if (fa.hasOverloads)
3249 bool hasOverloads = fd.overnext !is null; in resolveFuncCall() local
3260 if (hasOverloads) in resolveFuncCall()
[all …]
H A Dexpression.d2277 bool hasOverloads; variable
2279 extern (D) this(const ref Loc loc, Dsymbol s, bool hasOverloads = true)
2283 this.hasOverloads = hasOverloads;
3602 bool hasOverloads; variable
3604 extern (D) this(const ref Loc loc, EXP op, int size, Declaration var, bool hasOverloads) in this() argument
3609 this.hasOverloads = hasOverloads; in this()
3625 extern (D) this(const ref Loc loc, Declaration var, dinteger_t offset, bool hasOverloads = true)
3633 hasOverloads = false;
3635 super(loc, EXP.symbolOffset, __traits(classInstanceSize, SymOffExp), var, hasOverloads);
3656 extern (D) this(const ref Loc loc, Declaration var, bool hasOverloads = true)
[all …]
H A Dexpression.h329 bool hasOverloads; variable
560 bool hasOverloads; variable
583 static VarExp *create(const Loc &loc, Declaration *var, bool hasOverloads = true);
780 bool hasOverloads; variable
804 bool hasOverloads; variable
H A Dinitsem.d1054 bool hasOverloads; in inferType() local
1055 if (auto f = isFuncAddress(init.exp, &hasOverloads)) in inferType()
1061 if (hasOverloads && !f.isUnique()) in inferType()
H A Dexpressionsem.d814 Expression symbolToExp(Dsymbol s, const ref Loc loc, Scope *sc, bool hasOverloads) in symbolToExp() argument
919 if (!hasOverloads && f.checkForwardRef(loc)) in symbolToExp()
924 return new VarExp(loc, fd, hasOverloads); in symbolToExp()
2184 if (se.hasOverloads && !se.var.isFuncDeclaration().isUnique()) in functionParameters()
2798 result = symbolToExp(e.s, e.loc, sc, e.hasOverloads); in visit()
4219 exp.e1 = new DotVarExp(de.loc, de.e1, de.func, de.hasOverloads); in visit()
4398 if (exp.e1.op == EXP.symbolOffset && (cast(SymOffExp)exp.e1).hasOverloads) in visit()
4907 dve.hasOverloads = false; in visit()
5088 if (ve.hasOverloads) in visit()
6950 bool hasOverloads; in visit() local
[all …]
H A Ddeclaration.h702 bool hasOverloads; variable
H A Ddcast.d2379 if (e.type == t && !e.hasOverloads) in visitSymOff()
2391 result.isSymOffExp().hasOverloads = false; in visitSymOff()
2396 if (e.hasOverloads && in visitSymOff()
2460 if (tb.equals(typeb) && !e.hasOverloads) in visitDelegate()
H A Ddmangle.d594 if (!fd.hasOverloads && !fa) in visit()
H A Doptimize.d460 ret = new SymOffExp(e.loc, ve.var, 0, ve.hasOverloads); in Expression_optimize()
H A Dctfeexpr.d403 emplaceExp!(DotVarExp)(&ue, e.loc, dve.e1, dve.var, dve.hasOverloads); in copyLiteral()

12