Lines Matching refs:env

143     Type toType(Environment env, Context ctx) {
144 env.error(where, "invalid.type.expr");
154 Type toQualifiedType(Environment env, Context ctx) {
155 env.error(where, "invalid.type.expr");
168 public boolean fitsType(Environment env, Context ctx, Type t) {
170 if (env.isMoreSpecific(this.type, t)) {
175 Expression n = this.inlineValue(env, ctx);
177 return n.fitsType(env, ctx, t);
188 public boolean fitsType(Environment env, Type t) {
189 return fitsType(env, (Context) null, t);
195 public Vset checkValue(Environment env, Context ctx, Vset vset, Hashtable exp) {
198 public Vset checkInitializer(Environment env, Context ctx, Vset vset, Type t, Hashtable exp) {
199 return checkValue(env, ctx, vset, exp);
201 public Vset check(Environment env, Context ctx, Vset vset, Hashtable exp) {
205 public Vset checkLHS(Environment env, Context ctx,
207 env.error(where, "invalid.lhs.assignment");
226 public FieldUpdater getAssigner(Environment env, Context ctx) {
241 public FieldUpdater getUpdater(Environment env, Context ctx) {
245 public Vset checkAssignOp(Environment env, Context ctx,
248 env.error(where, "invalid.arg", opNames[outside.op]);
250 env.error(where, "invalid.lhs.assignment");
269 public Vset checkAmbigName(Environment env, Context ctx, Vset vset, Hashtable exp,
271 return checkValue(env, ctx, vset, exp);
279 public ConditionVars checkCondition(Environment env, Context ctx,
282 checkCondition(env, ctx, vset, exp, cvars);
297 public void checkCondition(Environment env, Context ctx,
299 cvars.vsTrue = cvars.vsFalse = checkValue(env, ctx, vset, exp);
348 public Expression inline(Environment env, Context ctx) {
351 public Expression inlineValue(Environment env, Context ctx) {
369 protected StringBuffer inlineValueSB(Environment env,
372 Expression inlined = inlineValue(env, ctx);
405 public Expression inlineLHS(Environment env, Context ctx) {
414 public int costInline(int thresh, Environment env, Context ctx) {
421 void codeBranch(Environment env, Context ctx, Assembler asm, Label lbl, boolean whenTrue) {
423 codeValue(env, ctx, asm);
429 public void codeValue(Environment env, Context ctx, Assembler asm) {
434 codeBranch(env, ctx, asm, l1, true);
444 public void code(Environment env, Context ctx, Assembler asm) {
445 codeValue(env, ctx, asm);
461 int codeLValue(Environment env, Context ctx, Assembler asm) {
465 void codeLoad(Environment env, Context ctx, Assembler asm) {
469 void codeStore(Environment env, Context ctx, Assembler asm) {
477 void ensureString(Environment env, Context ctx, Assembler asm)
485 ClassDeclaration stClass = env.getClassDeclaration(Type.tString);
486 ClassDefinition stClsDef = stClass.getClassDefinition(env);
502 stClsDef.matchMethod(env, sourceClass, idValueOf, argType1);
516 stClsDef.matchMethod(env, sourceClass, idValueOf, argType2);
523 stClsDef.matchMethod(env, sourceClass, idValueOf, argType);
534 void codeAppend(Environment env, Context ctx, Assembler asm,
539 ClassDefinition sbClsDef = sbClass.getClassDefinition(env);
547 f = sbClsDef.matchMethod(env, sourceClass, idInit);
550 codeValue(env, ctx, asm);
551 ensureString(env, ctx, asm);
553 f = sbClsDef.matchMethod(env, sourceClass, idInit, argType);
558 codeValue(env, ctx, asm);
571 f = sbClsDef.matchMethod(env, sourceClass, idAppend, argType);
579 void codeDup(Environment env, Context ctx, Assembler asm, int items, int depth) {
616 void codeConversion(Environment env, Context ctx, Assembler asm, Type f, Type t) {
628 codeConversion(env, ctx, asm, f, Type.tInt);
634 codeConversion(env, ctx, asm, f, Type.tInt);
640 codeConversion(env, ctx, asm, f, Type.tInt);
724 if (!env.implicitCast(f, t)) {
725 asm.add(where, opc_checkcast, env.getClassDeclaration(t));
742 if (!env.implicitCast(f, t)) {