Lines Matching refs:env

78     private Vset assign(Environment env, Context ctx, Vset vset) {
82 env.error(where, "assign.to.uplevel", id);
87 env.error(where, "assign.to.final", id);
89 env.error(where, "assign.to.blank.final", id);
95 vset = FieldExpression.checkFinalAssign(env, ctx, vset,
104 private Vset get(Environment env, Context ctx, Vset vset) {
108 env.error(where, "invalid.uplevel", id);
111 env.error(where, "var.not.initialized", id);
118 env.error(where, "access.inst.before.super", id);
125 env.error(where, "var.not.initialized", id);
135 boolean bind(Environment env, Context ctx) {
137 field = ctx.getField(env, id);
141 if (cdef.findAnyMethod(env, id) != null) {
142 env.error(where, "invalid.var", id,
147 env.error(where, "undef.var", id);
154 if (!ctx.field.getClassDefinition().canAccess(env, field)) {
155 env.error(where, "no.field.access",
166 implementation = ctx.makeReference(env, local);
171 if (f.reportDeprecated(env)) {
172 env.error(where, "warn.field.is.deprecated",
179 MemberDefinition f2 = ctx.getApparentField(env, id);
181 ClassDefinition c = ctx.findScope(env, fclass);
184 env.error(where, "inherited.hides.local",
187 env.error(where, "inherited.hides.field",
207 Expression base = ctx.findOuterLink(env, where, f);
215 if (!ctx.canReach(env, field)) {
216 env.error(where, "forward.ref",
222 env.error(where, "class.not.found", e.name, ctx.field);
224 env.error(where, "ambig.field", id,
234 public Vset checkValue(Environment env, Context ctx, Vset vset, Hashtable exp) {
240 if (bind(env, ctx)) {
241 vset = get(env, ctx, vset);
244 vset = implementation.checkValue(env, ctx, vset, exp);
252 public Vset checkLHS(Environment env, Context ctx,
254 if (!bind(env, ctx))
256 vset = assign(env, ctx, vset);
258 vset = implementation.checkValue(env, ctx, vset, exp);
265 public Vset checkAssignOp(Environment env, Context ctx,
267 if (!bind(env, ctx))
269 vset = assign(env, ctx, get(env, ctx, vset));
271 vset = implementation.checkValue(env, ctx, vset, exp);
278 public FieldUpdater getAssigner(Environment env, Context ctx) {
280 return implementation.getAssigner(env, ctx);
287 public FieldUpdater getUpdater(Environment env, Context ctx) {
289 return implementation.getUpdater(env, ctx);
296 public Vset checkAmbigName(Environment env, Context ctx, Vset vset, Hashtable exp,
299 if (ctx.getField(env, id) != null) {
301 return checkValue(env, ctx, vset, exp);
307 ClassDefinition c = toResolvedType(env, ctx, true);
321 private ClassDefinition toResolvedType(Environment env, Context ctx,
323 Identifier rid = ctx.resolveName(env, id);
325 if (pkgOK && !env.classExists(t)) {
328 if (env.resolve(where, ctx.field.getClassDefinition(), t)) {
330 ClassDefinition c = env.getClassDefinition(t);
334 ClassDefinition sc = ctx.findScope(env, c.getOuterClass());
336 Identifier rid2 = ctx.getApparentClassName(env, id);
338 env.error(where, "inherited.hides.type",
345 env.error(where, "illegal.mangled.name", id, c);
359 Type toType(Environment env, Context ctx) {
360 ClassDefinition c = toResolvedType(env, ctx, false);
375 Type toQualifiedType(Environment env, Context ctx) {
377 ClassDefinition c = toResolvedType(env, ctx, true);
402 public Expression inline(Environment env, Context ctx) {
405 public Expression inlineValue(Environment env, Context ctx) {
407 return implementation.inlineValue(env, ctx);
413 if (field.isInlineable(env, false)) {
414 Expression e = (Expression)field.getValue(env);
415 return (e == null) ? this : e.inlineValue(env, ctx);
424 public Expression inlineLHS(Environment env, Context ctx) {
426 return implementation.inlineLHS(env, ctx);
441 public int costInline(int thresh, Environment env, Context ctx) {
443 return implementation.costInline(thresh, env, ctx);
444 return super.costInline(thresh, env, ctx);
450 int codeLValue(Environment env, Context ctx, Assembler asm) {
453 void codeLoad(Environment env, Context ctx, Assembler asm) {
457 void codeStore(Environment env, Context ctx, Assembler asm) {
462 public void codeValue(Environment env, Context ctx, Assembler asm) {
463 codeLValue(env, ctx, asm);
464 codeLoad(env, ctx, asm);