Lines Matching refs:loc
99 Statement::Statement(Loc loc)
100 : loc(loc)
132 ::verror(loc, format, ap);
140 ::vwarning(loc, format, ap);
148 ::vdeprecation(loc, format, ap);
284 : Statement(s->loc)
291 ExpStatement::ExpStatement(Loc loc, Expression *exp)
292 : Statement(loc)
297 ExpStatement::ExpStatement(Loc loc, Dsymbol *declaration)
298 : Statement(loc)
300 this->exp = new DeclarationExp(loc, declaration);
303 ExpStatement *ExpStatement::create(Loc loc, Expression *exp)
305 return new ExpStatement(loc, exp);
310 return new ExpStatement(loc, exp ? exp->syntaxCopy() : NULL);
333 *sfinally = new DtorExpStatement(loc, v->edtor, v);
357 Statement *visitMembers(Loc loc, Dsymbols *a)
367 return new CompoundStatement(loc, statements);
385 result = new CompoundStatement(tm->loc, a);
393 DeclarationExp *de = new DeclarationExp(s->loc, s);
395 return new ExpStatement(s->loc, de);
408 void visit(StorageClassDeclaration *d) { result = visitMembers(d->loc, d->decl); }
409 void visit(DeprecatedDeclaration *d) { result = visitMembers(d->loc, d->decl); }
410 void visit(LinkDeclaration *d) { result = visitMembers(d->loc, d->decl); }
411 void visit(ProtDeclaration *d) { result = visitMembers(d->loc, d->decl); }
412 void visit(AlignDeclaration *d) { result = visitMembers(d->loc, d->decl); }
413 void visit(UserAttributeDeclaration *d) { result = visitMembers(d->loc, d->decl); }
414 void visit(ForwardingAttribDeclaration *d) { result = visitMembers(d->loc, d->decl); }
422 result = visitMembers(d->loc, d->include(NULL, NULL));
428 result = visitMembers(d->loc, d->include(NULL, NULL));
433 result = visitMembers(d->loc, d->include(NULL, NULL));
475 DtorExpStatement::DtorExpStatement(Loc loc, Expression *exp, VarDeclaration *v)
476 : ExpStatement(loc, exp)
483 return new DtorExpStatement(loc, exp ? exp->syntaxCopy() : NULL, var);
488 CompileStatement::CompileStatement(Loc loc, Expression *exp)
489 : Statement(loc)
496 return new CompileStatement(loc, exp->syntaxCopy());
515 Parser p(loc, sc->_module, (utf8_t *)se->string, se->len, 0);
534 CompoundStatement::CompoundStatement(Loc loc, Statements *s)
535 : Statement(loc)
540 CompoundStatement::CompoundStatement(Loc loc, Statement *s1, Statement *s2)
541 : Statement(loc)
549 CompoundStatement::CompoundStatement(Loc loc, Statement *s1)
550 : Statement(loc)
556 CompoundStatement *CompoundStatement::create(Loc loc, Statement *s1, Statement *s2)
558 return new CompoundStatement(loc, s1, s2);
570 return new CompoundStatement(loc, a);
613 CompoundDeclarationStatement::CompoundDeclarationStatement(Loc loc, Statements *s)
614 : CompoundStatement(loc, s)
628 return new CompoundDeclarationStatement(loc, a);
633 UnrolledLoopStatement::UnrolledLoopStatement(Loc loc, Statements *s)
634 : Statement(loc)
648 return new UnrolledLoopStatement(loc, a);
663 ScopeStatement::ScopeStatement(Loc loc, Statement *s, Loc endloc)
664 : Statement(loc)
672 return new ScopeStatement(loc, statement ? statement->syntaxCopy() : NULL, endloc);
702 ForwardingStatement::ForwardingStatement(Loc loc, ForwardingScopeDsymbol *sym, Statement *s)
703 : Statement(loc)
710 ForwardingStatement::ForwardingStatement(Loc loc, Statement *s)
711 : Statement(loc)
721 return new ForwardingStatement(loc, statement->syntaxCopy());
754 (*b)[i] = s ? new ForwardingStatement(s->loc, sym, s) : NULL;
761 WhileStatement::WhileStatement(Loc loc, Expression *c, Statement *b, Loc endloc)
762 : Statement(loc)
771 return new WhileStatement(loc,
789 DoStatement::DoStatement(Loc loc, Statement *b, Expression *c, Loc endloc)
790 : Statement(loc)
799 return new DoStatement(loc,
817 ForStatement::ForStatement(Loc loc, Statement *init, Expression *condition, Expression *increment, Statement *body, Loc endloc)
818 : Statement(loc)
830 return new ForStatement(loc,
858 ForeachStatement::ForeachStatement(Loc loc, TOK op, Parameters *parameters,
860 : Statement(loc)
879 return new ForeachStatement(loc, op,
916 ForeachRangeStatement::ForeachRangeStatement(Loc loc, TOK op, Parameter *prm,
918 : Statement(loc)
932 return new ForeachRangeStatement(loc, op,
952 IfStatement::IfStatement(Loc loc, Parameter *prm, Expression *condition, Statement *ifbody, Statement *elsebody, Loc endloc)
953 : Statement(loc)
965 return new IfStatement(loc,
975 ConditionalStatement::ConditionalStatement(Loc loc, Condition *condition, Statement *ifbody, Statement *elsebody)
976 : Statement(loc)
985 return new ConditionalStatement(loc,
1000 s = new DebugStatement(loc, ifbody);
1024 StaticForeachStatement::StaticForeachStatement(Loc loc, StaticForeach *sfe)
1025 : Statement(loc)
1032 return new StaticForeachStatement(loc, sfe->syntaxCopy());
1060 PragmaStatement::PragmaStatement(Loc loc, Identifier *ident, Expressions *args, Statement *body)
1061 : Statement(loc)
1070 return new PragmaStatement(loc, ident,
1078 : Statement(sa->loc)
1090 SwitchStatement::SwitchStatement(Loc loc, Expression *c, Statement *b, bool isFinal)
1091 : Statement(loc)
1106 return new SwitchStatement(loc,
1135 s->deprecation("'switch' skips declaration of 'with' temporary at %s", vd->loc.toChars());
1140 s->deprecation("'switch' skips declaration of variable %s at %s", vd->toPrettyChars(), vd->loc.toChars());
1165 CaseStatement::CaseStatement(Loc loc, Expression *exp, Statement *s)
1166 : Statement(loc)
1176 return new CaseStatement(loc,
1192 CaseRangeStatement::CaseRangeStatement(Loc loc, Expression *first,
1194 : Statement(loc)
1203 return new CaseRangeStatement(loc,
1211 DefaultStatement::DefaultStatement(Loc loc, Statement *s)
1212 : Statement(loc)
1220 return new DefaultStatement(loc, statement->syntaxCopy());
1225 GotoDefaultStatement::GotoDefaultStatement(Loc loc)
1226 : Statement(loc)
1233 return new GotoDefaultStatement(loc);
1238 GotoCaseStatement::GotoCaseStatement(Loc loc, Expression *exp)
1239 : Statement(loc)
1247 return new GotoCaseStatement(loc, exp ? exp->syntaxCopy() : NULL);
1252 SwitchErrorStatement::SwitchErrorStatement(Loc loc)
1253 : Statement(loc)
1259 ReturnStatement::ReturnStatement(Loc loc, Expression *exp)
1260 : Statement(loc)
1268 return new ReturnStatement(loc, exp ? exp->syntaxCopy() : NULL);
1273 BreakStatement::BreakStatement(Loc loc, Identifier *ident)
1274 : Statement(loc)
1281 return new BreakStatement(loc, ident);
1286 ContinueStatement::ContinueStatement(Loc loc, Identifier *ident)
1287 : Statement(loc)
1294 return new ContinueStatement(loc, ident);
1299 SynchronizedStatement::SynchronizedStatement(Loc loc, Expression *exp, Statement *body)
1300 : Statement(loc)
1308 return new SynchronizedStatement(loc,
1325 WithStatement::WithStatement(Loc loc, Expression *exp, Statement *body, Loc endloc)
1326 : Statement(loc)
1336 return new WithStatement(loc,
1343 TryCatchStatement::TryCatchStatement(Loc loc, Statement *body, Catches *catches)
1344 : Statement(loc)
1359 return new TryCatchStatement(loc, _body->syntaxCopy(), a);
1369 Catch::Catch(Loc loc, Type *t, Identifier *id, Statement *handler)
1371 //printf("Catch(%s, loc = %s)\n", id->toChars(), loc.toChars());
1372 this->loc = loc;
1383 Catch *c = new Catch(loc,
1393 TryFinallyStatement::TryFinallyStatement(Loc loc, Statement *body, Statement *finalbody)
1394 : Statement(loc)
1400 TryFinallyStatement *TryFinallyStatement::create(Loc loc, Statement *body, Statement *finalbody)
1402 return new TryFinallyStatement(loc, body, finalbody);
1407 return new TryFinallyStatement(loc,
1423 OnScopeStatement::OnScopeStatement(Loc loc, TOK tok, Statement *statement)
1424 : Statement(loc)
1432 return new OnScopeStatement(loc, tok, statement->syntaxCopy());
1464 *sentry = new ExpStatement(loc, v);
1485 ThrowStatement::ThrowStatement(Loc loc, Expression *exp)
1486 : Statement(loc)
1494 ThrowStatement *s = new ThrowStatement(loc, exp->syntaxCopy());
1501 DebugStatement::DebugStatement(Loc loc, Statement *statement)
1502 : Statement(loc)
1509 return new DebugStatement(loc,
1521 s = new DebugStatement(loc, s);
1531 GotoStatement::GotoStatement(Loc loc, Identifier *ident)
1532 : Statement(loc)
1543 return new GotoStatement(loc, ident);
1589 error("goto skips declaration of with temporary at %s", vd->loc.toChars());
1594 error("goto skips declaration of variable %s at %s", vd->toPrettyChars(), vd->loc.toChars());
1603 LabelStatement::LabelStatement(Loc loc, Identifier *ident, Statement *statement)
1604 : Statement(loc)
1617 return new LabelStatement(loc, ident, statement ? statement->syntaxCopy() : NULL);
1645 a->push(new ExpStatement(loc, (Expression *)NULL));
1678 AsmStatement::AsmStatement(Loc loc, Token *tokens)
1679 : Statement(loc)
1686 return new AsmStatement(loc, tokens);
1692 InlineAsmStatement::InlineAsmStatement(Loc loc, Token *tokens)
1693 : AsmStatement(loc, tokens)
1704 return new InlineAsmStatement(loc, tokens);
1710 GccAsmStatement::GccAsmStatement(Loc loc, Token *tokens)
1711 : AsmStatement(loc, tokens)
1726 return new GccAsmStatement(loc, tokens);
1731 CompoundAsmStatement::CompoundAsmStatement(Loc loc, Statements *s, StorageClass stc)
1732 : CompoundStatement(loc, s)
1746 return new CompoundAsmStatement(loc, a, stc);
1756 ImportStatement::ImportStatement(Loc loc, Dsymbols *imports)
1757 : Statement(loc)
1771 return new ImportStatement(loc, m);