Lines Matching refs:loc
94 UnionExp er; new(&er) NullExp(ad->loc, ad->type); // dummy rvalue
95 UnionExp el; new(&el) IdentifierExp(ad->loc, Id::p); // dummy lvalue
106 FuncDeclaration *f = resolveFuncCall(ad->loc, sc, assign, NULL, ad->type, &a, 1);
110 f = resolveFuncCall(ad->loc, sc, assign, NULL, ad->type, &a, 1);
216 Loc declLoc = sd->loc;
217 Loc loc = Loc(); // internal code should have no loc to prevent coverage
269 tmp = new VarDeclaration(loc, sd->type, idtmp, new VoidInitializer(loc));
271 e = new DeclarationExp(loc, tmp);
272 ec = new BlitExp(loc, new VarExp(loc, tmp), new ThisExp(loc));
275 ec = new BlitExp(loc, new ThisExp(loc), new IdentifierExp(loc, Id::p));
282 Expression *ec2 = new DotVarExp(loc, new VarExp(loc, tmp), sd->dtor, false);
283 ec2 = new CallExp(loc, ec2);
301 AssignExp *ec = new AssignExp(loc,
302 new DotVarExp(loc, new ThisExp(loc), v),
303 new DotVarExp(loc, new IdentifierExp(loc, Id::p), v));
309 Statement *s1 = new ExpStatement(loc, e);
314 e = new ThisExp(loc);
315 Statement *s2 = new ReturnStatement(loc, e);
317 fop->fbody = new CompoundStatement(loc, s1, s2);
416 UnionExp er; new(&er) NullExp(ad->loc, NULL); // dummy rvalue
417 UnionExp el; new(&el) IdentifierExp(ad->loc, Id::p); // dummy lvalue
443 f = resolveFuncCall(ad->loc, sc, eq, NULL, tthis, &a, 1);
522 Expression *e = new IdentifierExp(sd->loc, Id::empty);
523 e = new DotIdExp(sd->loc, e, Id::object);
524 e = new DotIdExp(sd->loc, e, id);
531 Loc declLoc = Loc(); // loc is unnecessary so __xopEquals is never called directly
532 Loc loc = Loc(); // loc is unnecessary so errors are gagged
542 Expression *e1 = new IdentifierExp(loc, Id::p);
543 Expression *e2 = new IdentifierExp(loc, Id::q);
544 Expression *e = new EqualExp(TOKequal, loc, e1, e2);
546 fop->fbody = new ReturnStatement(loc, e);
607 Expression *e = new IdentifierExp(sd->loc, Id::empty);
608 e = new DotIdExp(sd->loc, e, Id::object);
609 e = new DotIdExp(sd->loc, e, id);
616 Loc declLoc = Loc(); // loc is unnecessary so __xopCmp is never called directly
617 Loc loc = Loc(); // loc is unnecessary so errors are gagged
627 Expression *e1 = new IdentifierExp(loc, Id::p);
628 Expression *e2 = new IdentifierExp(loc, Id::q);
630 Expression *e = new CallExp(loc, new DotIdExp(loc, e1, Id::cmp), e2);
632 Expression *e = new CallExp(loc, new DotIdExp(loc, e2, Id::cmp), e1);
635 fop->fbody = new ReturnStatement(loc, e);
738 Loc declLoc = Loc(); // loc is unnecessary so __xtoHash is never called directly
739 Loc loc = Loc(); // internal code should have no loc to prevent coverage
759 fop->fbody = new CompileStatement(loc, new StringExp(loc, const_cast<char *>(code)));
788 Loc declLoc = sd->postblits.dim ? sd->postblits[0]->loc : sd->loc;
789 Loc loc = Loc(); // internal code should have no loc to prevent coverage
827 ex = new ThisExp(loc);
828 ex = new DotVarExp(loc, ex, v);
831 ex = new AddrExp(loc, ex);
832 ex = new CastExp(loc, ex, v->type->mutableOf()->pointerTo());
833 ex = new PtrExp(loc, ex);
837 ex = new DotVarExp(loc, ex, sdv->postblit, false);
838 ex = new CallExp(loc, ex);
844 uinteger_t n = tv->numberOfElems(loc);
848 ex = new ThisExp(loc);
849 ex = new DotVarExp(loc, ex, v);
852 ex = new DotIdExp(loc, ex, Id::ptr);
853 ex = new CastExp(loc, ex, sdv->type->pointerTo());
857 ex = new SliceExp(loc, ex, new IntegerExp(loc, 0, Type::tsize_t),
858 new IntegerExp(loc, n, Type::tsize_t));
863 ex = new CallExp(loc, new IdentifierExp(loc, Id::__ArrayPostblit), ex);
865 a->push(new ExpStatement(loc, ex)); // combine in forward order
879 ex = new ThisExp(loc);
880 ex = new DotVarExp(loc, ex, v);
883 ex = new AddrExp(loc, ex);
884 ex = new CastExp(loc, ex, v->type->mutableOf()->pointerTo());
885 ex = new PtrExp(loc, ex);
889 ex = new DotVarExp(loc, ex, sdv->dtor, false);
890 ex = new CallExp(loc, ex);
896 uinteger_t n = tv->numberOfElems(loc);
900 ex = new ThisExp(loc);
901 ex = new DotVarExp(loc, ex, v);
904 ex = new DotIdExp(loc, ex, Id::ptr);
905 ex = new CastExp(loc, ex, sdv->type->pointerTo());
909 ex = new SliceExp(loc, ex, new IntegerExp(loc, 0, Type::tsize_t),
910 new IntegerExp(loc, n, Type::tsize_t));
915 ex = new CallExp(loc, new IdentifierExp(loc, Id::__ArrayDtor), ex);
917 a->push(new OnScopeStatement(loc, TOKon_scope_failure, new ExpStatement(loc, ex)));
927 dd->fbody = (stc & STCdisable) ? NULL : new CompoundStatement(loc, a);
955 Expression *ex = new ThisExp(loc);
956 ex = new DotVarExp(loc, ex, fd, false);
957 ex = new CallExp(loc, ex);
962 dd->fbody = new ExpStatement(loc, e);
993 Loc declLoc = ad->dtors.dim ? ad->dtors[0]->loc : ad->loc;
994 Loc loc = Loc(); // internal code should have no loc to prevent coverage
1025 ex = new ThisExp(loc);
1026 ex = new DotVarExp(loc, ex, v);
1029 ex = new AddrExp(loc, ex);
1030 ex = new CastExp(loc, ex, v->type->mutableOf()->pointerTo());
1031 ex = new PtrExp(loc, ex);
1035 ex = new DotVarExp(loc, ex, sdv->dtor, false);
1036 ex = new CallExp(loc, ex);
1042 uinteger_t n = tv->numberOfElems(loc);
1046 ex = new ThisExp(loc);
1047 ex = new DotVarExp(loc, ex, v);
1050 ex = new DotIdExp(loc, ex, Id::ptr);
1051 ex = new CastExp(loc, ex, sdv->type->pointerTo());
1055 ex = new SliceExp(loc, ex, new IntegerExp(loc, 0, Type::tsize_t),
1056 new IntegerExp(loc, n, Type::tsize_t));
1061 ex = new CallExp(loc, new IdentifierExp(loc, Id::__ArrayDtor), ex);
1074 dd->fbody = new ExpStatement(loc, e);
1102 Expression *ex = new ThisExp(loc);
1103 ex = new DotVarExp(loc, ex, fd, false);
1104 ex = new CallExp(loc, ex);
1110 dd->fbody = new ExpStatement(loc, e);
1138 Loc declLoc = ad->loc;
1139 Loc loc = Loc(); // internal code should have no loc to prevent coverage
1167 ad->error(ad->invs[i]->loc, "mixing invariants with shared/synchronized differene is not supported");
1172 e = Expression::combine(e, new CallExp(loc, new VarExp(loc, ad->invs[i], false)));
1176 inv->fbody = new ExpStatement(loc, e);