Home
last modified time | relevance | path

Searched refs:ExpStatement (Results 1 – 25 of 36) sorted by relevance

12

/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Dstatement.c214 void visit(ExpStatement *s) in hasCode()
291 ExpStatement::ExpStatement(Loc loc, Expression *exp) in ExpStatement() function
297 ExpStatement::ExpStatement(Loc loc, Dsymbol *declaration) in ExpStatement() function
303 ExpStatement *ExpStatement::create(Loc loc, Expression *exp) in create()
305 return new ExpStatement(loc, exp); in create()
308 Statement *ExpStatement::syntaxCopy() in syntaxCopy()
310 return new ExpStatement(loc, exp ? exp->syntaxCopy() : NULL); in syntaxCopy()
313 Statement *ExpStatement::scopeCode(Scope *, Statement **sentry, Statement **sexception, Statement *… in scopeCode()
395 return new ExpStatement(s->loc, de); in toStatement()
445 Statements *ExpStatement::flatten(Scope *sc) in flatten()
[all …]
H A Dstatement.h26 class ExpStatement; variable
96 virtual ExpStatement *isExpStatement() { return NULL; } in isExpStatement()
133 class ExpStatement : public Statement
138 ExpStatement(Loc loc, Expression *exp);
139 ExpStatement(Loc loc, Dsymbol *s);
140 static ExpStatement *create(Loc loc, Expression *exp);
145 ExpStatement *isExpStatement() { return this; } in isExpStatement()
149 class DtorExpStatement : public ExpStatement
H A Dstatementsem.c86 void visit(ExpStatement *s) in visit()
610 statements->push(new ExpStatement(loc, var)); in declareVariable()
675 stmts->push(new ExpStatement(loc, var)); in makeTupleForeachBody()
944 … result = new CompoundStatement(loc, new ExpStatement(te->e0->loc, te->e0), result); in visit()
947 result = new CompoundStatement(loc, new ExpStatement(loc, vinit), result); in visit()
1167 cs->push(new ExpStatement(loc, vinit)); in visit()
1168 cs->push(new ExpStatement(loc, tmp)); in visit()
1169 cs->push(new ExpStatement(loc, fs->key)); in visit()
1193 Statement *ds = new ExpStatement(loc, fs->value); in visit()
1202 … fs->_body = new CompoundStatement(loc, new ExpStatement(loc, v), fs->_body); in visit()
[all …]
H A Dcond.c310 if (tplty) sfebody->push(new ExpStatement(sfe->loc, tplty->sym)); in lowerNonArrayAggregate()
313 s1->push(new ExpStatement(aloc, new AssertExp(aloc, new IntegerExp(aloc, 0, Type::tint32)))); in lowerNonArrayAggregate()
328 s2->push(new ExpStatement(aloc, vard)); in lowerNonArrayAggregate()
330 s2->push(createForeach(sfe, aloc, pparams[1], new ExpStatement(aloc, catass))); in lowerNonArrayAggregate()
H A Dclone.c309 Statement *s1 = new ExpStatement(loc, e); in buildOpAssign()
865 a->push(new ExpStatement(loc, ex)); // combine in forward order in buildPostBlit()
917 a->push(new OnScopeStatement(loc, TOKon_scope_failure, new ExpStatement(loc, ex))); in buildPostBlit()
962 dd->fbody = new ExpStatement(loc, e); in buildPostBlit()
1074 dd->fbody = new ExpStatement(loc, e); in buildDtor()
1110 dd->fbody = new ExpStatement(loc, e); in buildDtor()
1176 inv->fbody = new ExpStatement(loc, e); in buildInv()
H A Dfunc.c72 void visit(ExpStatement *) { } in visit() argument
237 s1 = new CompoundStatement(s->loc, new ExpStatement(s->loc, s->exp), gs); in visit()
1299 Statement *s1 = new ExpStatement(loc, fd); in buildEnsureRequire()
1301 Statement *s2 = new ExpStatement(loc, e); in buildEnsureRequire()
1332 Statement *s1 = new ExpStatement(loc, fd); in buildEnsureRequire()
1337 Statement *s2 = new ExpStatement(loc, e); in buildEnsureRequire()
1653 fpreinv = new ExpStatement(Loc(), e); in semantic3()
1662 fpostinv = new ExpStatement(Loc(), e); in semantic3()
1843 Statement *s = new ExpStatement(Loc(), e); in semantic3()
1935 Statement *s = new ExpStatement(Loc(), e); in semantic3()
[all …]
H A Ddelegatize.c59 s = new ExpStatement(loc, e); in toDelegate()
H A Dvisitor.h17 class ExpStatement; variable
311 virtual void visit(ExpStatement *s) { visit((Statement *)s); } in visit()
312 virtual void visit(DtorExpStatement *s) { visit((ExpStatement *)s); } in visit()
H A Dblockexit.c46 void visit(ExpStatement *s) in blockExit()
H A Dparse.c4991 s = new ExpStatement(loc, exp); in parseStatement()
5083 s = new ExpStatement(loc, d); in parseStatement()
5091 s = new ExpStatement(loc, d); in parseStatement()
5094 s = new ExpStatement(loc, (Expression *)NULL); in parseStatement()
5119 s = new ExpStatement(loc, d); in parseStatement()
5138 s = new ExpStatement(loc, e); in parseStatement()
5143 s = new ExpStatement(loc, d); in parseStatement()
5198 s = new ExpStatement(loc, (Expression *)NULL); in parseStatement()
5859 s = new ExpStatement(loc, d); in parseStatement()
H A Darrayop.c57 new ExpStatement(Loc(), loopbody), in buildArrayOp()
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dstatement.h24 class ExpStatement; variable
131ExpStatement *isExpStatement() { return stmt == STMTexp ? (ExpStatement*)t… in isExpStatement()
184 class ExpStatement : public Statement
189 static ExpStatement *create(const Loc &loc, Expression *exp);
190 ExpStatement *syntaxCopy();
195 class DtorExpStatement : public ExpStatement
H A Dstatementsem.d190 override void visit(ExpStatement s) in package()
796 s = new CompoundStatement(loc, new ExpStatement(loc, vinit), s); in package()
1101 cs.push(new ExpStatement(loc, vinit)); in package()
1102 cs.push(new ExpStatement(loc, tmp)); in package()
1103 cs.push(new ExpStatement(loc, fs.key)); in package()
1129 Statement ds = new ExpStatement(loc, fs.value); in package()
1138 fs._body = new CompoundStatement(loc, new ExpStatement(loc, v), fs._body); in package()
1145 fs._body = new CompoundStatement(loc, new ExpStatement(loc, v), fs._body); in package()
1218 _init = new ExpStatement(loc, vinit); in package()
1224 _init = new ExpStatement(loc, r); in package()
[all …]
H A Dclone.d364 Statement s1 = new ExpStatement(loc, e); in buildOpAssign()
963 dd.fbody = new ExpStatement(loc, e); in buildDtors()
1019 dd.fbody = new ExpStatement(loc, e); in buildDtors()
1085 stmts.push(new ExpStatement(loc, call)); in buildWindowsCppDtor()
1135 func.fbody = new ExpStatement(dtor.loc, call); in buildExternDDtor()
1201 Id.classInvariant, new ExpStatement(Loc.initial, e)); in buildInv()
1317 dtors.push(new ExpStatement(loc, dc)); in buildPostBlit()
1384 postblitCalls.push(new ExpStatement(loc, ex)); // combine in forward order in buildPostBlit()
1452 dd.fbody = new ExpStatement(loc, e); in buildPostBlit()
1543 Statement s1 = new ExpStatement(loc, e); in generateCopyCtorBody()
H A Dcond.d366 if (tplty) sfe.push(new ExpStatement(loc, tplty.sym)); in lowerNonArrayAggregate()
369 s1.push(new ExpStatement(aloc, new AssertExp(aloc, IntegerExp.literal!0))); in lowerNonArrayAggregate()
384 s2.push(new ExpStatement(aloc, vard)); in lowerNonArrayAggregate()
386 s2.push(createForeach(aloc, pparams[1], new ExpStatement(aloc, catass))); in lowerNonArrayAggregate()
H A Dstatement.d299 override void visit(ExpStatement s) in hasCode()
372 …inout(ExpStatement) isExpStatement() { return stmt == STMT.Exp ? cast(type… in isExpStatement()
451 extern (C++) class ExpStatement : Statement
473 static ExpStatement create(const ref Loc loc, Expression exp) in create()
475 return new ExpStatement(loc, exp); in create()
478 override ExpStatement syntaxCopy() in syntaxCopy()
480 return new ExpStatement(loc, exp ? exp.syntaxCopy() : null); in syntaxCopy()
491 extern (C++) final class DtorExpStatement : ExpStatement
H A Dsemantic3.d541 fpreinv = new ExpStatement(Loc.initial, e); in visit()
550 fpostinv = new ExpStatement(Loc.initial, e); in visit()
732 Statement s = new ExpStatement(Loc.initial, e); in visit()
1068 a.push(new ExpStatement(Loc.initial, ie.exp)); in visit()
1085 a.push(new ExpStatement(Loc.initial, de)); in visit()
1409 auto sexp = new ExpStatement(ctor.loc, ce); in visit()
H A Dfunc.d134 s1 = new CompoundStatement(s.loc, new ExpStatement(s.loc, s.exp), gs); in visit()
2289 Statement s2 = new ExpStatement(loc, e); in mergeFrequire()
2348 Statement s2 = new ExpStatement(loc, e); in mergeFrequireInclusivePreview()
2354 … Statement fail = new ExpStatement(loc, new AssertExp(loc, IntegerExp.literal!0, msg)); in mergeFrequireInclusivePreview()
2436 auto sdecl = new ExpStatement(rloc, decl); in buildEnsureRequire()
2495 Statement s1 = new ExpStatement(loc, fd); in buildEnsureRequire()
2497 Statement s2 = new ExpStatement(loc, e); in buildEnsureRequire()
2538 Statement s1 = new ExpStatement(loc, fd); in buildEnsureRequire()
2540 Statement s2 = new ExpStatement(loc, e); in buildEnsureRequire()
2604 Statement s2 = new ExpStatement(loc, e); in mergeFensure()
H A Ddelegatize.d65 s = new ExpStatement(loc, e); in toDelegate()
H A Dforeachvar.d119 void visitExp(ExpStatement s) in foreachExpAndVar()
H A Dvisitor.h17 class ExpStatement; variable
422 virtual void visit(ExpStatement *s) { visit((Statement *)s); } in visit()
600 virtual void visit(DtorExpStatement *s) { visit((ExpStatement *)s); } in visit()
H A Dcparse.d268 s = new AST.ExpStatement(loc, exp);
321 s = new AST.ExpStatement(loc, d);
330 s = new AST.ExpStatement(loc, d);
334 s = new AST.ExpStatement(loc, cast(AST.Expression)null);
395 s = new AST.ExpStatement(loc, cast(AST.Expression)null);
4665 return new AST.ExpStatement(loc, e); in createFuncName()
H A Dvisitor.d37 void visit(ASTCodegen.DtorExpStatement s) { visit(cast(ASTCodegen.ExpStatement)s); }
H A Dparse.d2621 auto fbody = new AST.ExpStatement(loc, e);
5148 f.frequires.push(new AST.ExpStatement(loc, e));
5196 f.fensures.push(AST.Ensure(id, new AST.ExpStatement(loc, e)));
5697 s = new AST.ExpStatement(loc, exp);
5800 s = new AST.ExpStatement(loc, d);
5808 s = new AST.ExpStatement(loc, d);
5811 s = new AST.ExpStatement(loc, cast(AST.Expression)null);
5835 s = new AST.ExpStatement(loc, d);
5856 s = new AST.ExpStatement(loc, e);
5861 s = new AST.ExpStatement(loc, d);
[all …]
H A Dblockexit.d92 override void visit(ExpStatement s) in blockExit()

12