/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
H A D | denum.c | 106 if (_scope) in semantic() 108 sc = _scope; in semantic() 109 scx = _scope; // save so we don't make redundant copies in semantic() 110 _scope = NULL; in semantic() 153 if (!sym->memtype || !sym->members || !sym->symtab || sym->_scope) in semantic() 156 _scope = scx ? scx : sc->copy(); in semantic() 157 _scope->setNoFree(); in semantic() 158 _scope->_module->addDeferredSemantic(this); in semantic() 217 em->_scope = sce; in semantic() 264 em->semantic(em->_scope); in semantic() [all …]
|
H A D | dclass.c | 307 cd->_scope = scx; in resolveBase() 309 cd->_scope = NULL; in resolveBase() 320 cd->_scope = scx; in resolveBase() 322 cd->_scope = NULL; in resolveBase() 346 if (_scope) in semantic() 348 sc = _scope; in semantic() 349 scx = _scope; // save so we don't make redundant copies in semantic() 350 _scope = NULL; in semantic() 486 if (tc->sym->_scope) in semantic() 487 tc->sym->_scope->_module->addDeferredSemantic(tc->sym); in semantic() [all …]
|
H A D | dstruct.c | 254 if (_scope) in semantic2() 309 Scope *sc3 = ti->tempdecl->_scope->startCTFE(); in semantic3() 437 if (_scope) in determineSize() 477 xeq->_scope && in semanticTypeInfoMembers() 481 xeq->semantic3(xeq->_scope); in semanticTypeInfoMembers() 487 xcmp->_scope && in semanticTypeInfoMembers() 491 xcmp->semantic3(xcmp->_scope); in semanticTypeInfoMembers() 498 ftostr->_scope && in semanticTypeInfoMembers() 501 ftostr->semantic3(ftostr->_scope); in semanticTypeInfoMembers() 505 xhash->_scope && in semanticTypeInfoMembers() [all …]
|
H A D | nspace.c | 93 if (_scope) in semantic() 95 sc = _scope; in semantic() 96 _scope = NULL; in semantic() 176 if (_scope && !symtab) in search() 177 semantic(_scope); in search() 227 if (_scope) // if fwd reference in setFieldOffset()
|
H A D | attrib.c | 54 Dsymbols *d = include(_scope, NULL); in apply() 495 if (Scope *sc = _scope) in getMessage() 497 _scope = NULL; in getMessage() 834 assert(_scope); in setFieldOffset() 835 structalign_t alignment = _scope->alignment(); in setFieldOffset() 1232 return condition->include(_scope ? _scope : sc, sds) ? decl : elsedecl; in include() 1314 assert(_scope); // setScope is already done in include() 1316 d = ConditionalDeclaration::include(_scope, scopesym); in include() 1324 s->addMember(_scope, scopesym); in include() 1331 s->setScope(_scope); in include() [all …]
|
H A D | aliasthis.c | 97 if (_scope) in semantic() 99 sc = _scope; in semantic() 100 _scope = NULL; in semantic()
|
H A D | declaration.c | 163 s = type->toDsymbol(_scope); in search() 610 if (inuse == 1 && type && _scope) in toAlias() 614 Dsymbol *s = type->toDsymbol(_scope); in toAlias() 628 Type *t = type->semantic(loc, _scope); in toAlias() 662 if (_import && _import->_scope) in toAlias() 669 if (_scope) in toAlias() 671 aliasSemantic(_scope); in toAlias() 877 if (_scope) in semantic() 879 sc = _scope; in semantic() 881 _scope = NULL; in semantic() [all …]
|
H A D | func.c | 468 if (_scope) in semantic() 470 sc = _scope; in semantic() 471 _scope = NULL; in semantic() 1203 _scope = sc->copy(); in semantic() 1204 _scope->setNoFree(); in semantic() 2377 if (!_scope) in functionSemantic() 2387 semantic(_scope); in functionSemantic() 2431 if (semanticRun < PASSsemantic3 && _scope) in functionSemantic3() 2442 semantic3(_scope); in functionSemantic3() 2672 assert(fdv->_scope); in mergeFrequire() [all …]
|
H A D | dtemplate.c | 586 if (!this->_scope) in semantic() 588 this->_scope = sc->copy(); in semantic() 589 this->_scope->setNoFree(); in semantic() 596 isstatic = toParent()->isModule() || (_scope->stc & STCstatic); in semantic() 875 assert(_scope); in matchWithInstance() 879 paramsym->parent = _scope->parent; in matchWithInstance() 880 Scope *paramscope = _scope->push(paramsym); in matchWithInstance() 1124 assert(_scope); in deduceFunctionTemplateMatch() 1137 paramsym->parent = _scope->parent; // should use hasnestedArgs and enclosing? in deduceFunctionTemplateMatch() 1138 Scope *paramscope = _scope->push(paramsym); in deduceFunctionTemplateMatch() [all …]
|
H A D | dimport.c | 203 if (_scope) in semantic() 205 sc = _scope; in semantic() 206 _scope = NULL; in semantic()
|
H A D | dsymbol.c | 52 this->_scope = NULL; in Dsymbol() 70 this->_scope = NULL; in Dsymbol() 453 _scope = sc; in setScope() 1545 for (Expression *e = withstate->exp; e != eold; e = resolveAliasThis(_scope, e)) in search()
|
H A D | dmodule.c | 659 if (_scope) in importAll() 734 Scope *sc = _scope; // see if already got one from importAll() in semantic() 757 if (!_scope) in semantic()
|
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/ |
H A D | denum.d | 124 if (_scope) 127 dsymbolSemantic(this, _scope); 169 if (_scope) in getDefaultValue() 170 dsymbolSemantic(this, _scope); in getDefaultValue() 206 if (_scope) in getMemtype() 214 memtype = memtype.typeSemantic(locx, _scope); in getMemtype() 219 dsymbolSemantic(this, _scope); in getMemtype()
|
H A D | dsymbolsem.d | 166 if (auto sc = dd._scope) in getMessage() 168 dd._scope = null; in getMessage() 220 s._scope = scx ? scx : sc.copy(); in deferDsymbolSemantic() 221 s._scope.setNoFree(); in deferDsymbolSemantic() 238 if (dsym._scope) in visit() 240 sc = dsym._scope; in visit() 241 dsym._scope = null; in visit() 363 if (dsym._scope) in visit() 365 sc = dsym._scope; in visit() 367 dsym._scope = null; in visit() [all …]
|
H A D | attrib.d | 827 assert(_scope); in setFieldOffset() 828 auto alignment = _scope.alignment(); in setFieldOffset() 1002 return condition.include(_scope ? _scope : sc) ? decl : elsedecl; in include() 1069 assert(_scope); // setScope is already done in include() 1070 Dsymbols* d = ConditionalDeclaration.include(_scope); in include() 1074 d.foreachDsymbol( s => s.addMember(_scope, scopesym) ); in include() 1077 d.foreachDsymbol( s => s.setScope(_scope) ); in include() 1191 if (_scope) in include() 1193 sfe.prepare(_scope); // lower static foreach aggregate in include() 1202 … Dsymbols* d = makeTupleForeach(_scope, true, true, sfe.aggrfe, decl, sfe.needExpansion).decl; in include() [all …]
|
H A D | nspace.d | 130 if (_scope && !symtab) 131 dsymbolSemantic(this, _scope); 152 if (_scope) // if fwd reference in setFieldOffset()
|
H A D | semantic3.d | 113 sc = tempdecl._scope; in visit() 1547 Scope* sc3 = ti.tempdecl._scope.startCTFE(); in visit() 1605 sd.xeq._scope && in semanticTypeInfoMembers() 1609 sd.xeq.semantic3(sd.xeq._scope); in semanticTypeInfoMembers() 1615 sd.xcmp._scope && in semanticTypeInfoMembers() 1619 sd.xcmp.semantic3(sd.xcmp._scope); in semanticTypeInfoMembers() 1626 ftostr._scope && in semanticTypeInfoMembers() 1629 ftostr.semantic3(ftostr._scope); in semanticTypeInfoMembers() 1633 sd.xhash._scope && in semanticTypeInfoMembers() 1636 sd.xhash.semantic3(sd.xhash._scope); in semanticTypeInfoMembers() [all …]
|
H A D | declaration.d | 411 s = type.toDsymbol(_scope); 883 if (inuse == 1 && type && _scope) in toAlias() 887 Dsymbol s = type.toDsymbol(_scope); in toAlias() 901 Type t = type.typeSemantic(loc, _scope); in toAlias() 934 if (_import && _import._scope) in toAlias() 941 if (_scope) in toAlias() 943 aliasSemantic(this, _scope); in toAlias() 1535 if (_scope) 1538 _init = _init.initializerSemantic(_scope, type, INITinterpret); 1539 _scope = null; [all …]
|
H A D | apply.d | 48 return ad.include(ad._scope).foreachDsymbol( (s) { return s && s.apply(fp, params); } ); in apply() 52 if (tm._scope) // if fwd reference in apply()
|
H A D | func.d | 406 if (!_scope) in functionSemantic() 409 this.cppnamespace = _scope.namespace; in functionSemantic() 418 dsymbolSemantic(this, _scope); in functionSemantic() 462 if (semanticRun < PASS.semantic3 && _scope) in functionSemantic3() 473 semantic3(this, _scope); in functionSemantic3() 1276 if (_scope) in isAbstract() 1278 if (_scope.stc & STC.abstract_) in isAbstract() 1280 parent = _scope.parent; in isAbstract() 1555 if (flags & FUNCFLAG.nogcInprocess && semanticRun < PASS.semantic3 && _scope) in setGC() 1557 this.semantic2(_scope); in setGC() [all …]
|
H A D | semantic2.d | 153 sc = tempdecl._scope; in visit() 562 if (!uad.decl || !uad.atts || !uad.atts.dim || !uad._scope) in visit() 588 uad._scope = null; in visit() 599 if (ad._scope) in visit()
|
H A D | aggregate.d | 220 if (_scope) in determineSize() 598 if (_scope) in getType() 599 stc |= _scope.stc; in getType()
|
H A D | dtemplate.d | 694 if (s._scope) in overloadInsert() 695 aliasSemantic(ad, s._scope); in overloadInsert() 1033 paramsym.parent = _scope.parent; in scopeForTemplateParameters() 1034 Scope* paramscope = _scope.push(paramsym); in scopeForTemplateParameters() 1098 assert(_scope); in matchWithInstance() 1347 assert(_scope); in deduceFunctionTemplateMatch() 1514 if (toParent().isModule() || (_scope.stc & STC.static_)) in deduceFunctionTemplateMatch() 1539 StorageClass stc = _scope.stc | fd.storage_class2; in deduceFunctionTemplateMatch() 2232 Scope* sc2 = _scope; in deduceFunctionTemplateMatch() 2828 sc = td._scope; // workaround for Type.aliasthisOf in applyTemplate() [all …]
|
H A D | dstruct.d | 253 if (_scope && !symtab) 254 dsymbolSemantic(this, _scope);
|
H A D | dclass.d | 471 if (_scope && baseok < Baseok.done) 859 if (storage_class & STC.abstract_ || _scope && _scope.stc & STC.abstract_) in isAbstract()
|