Lines Matching refs:ctx

51     public Context(Context ctx, MemberDefinition field) {
53 if (ctx == null) {
58 this.prev = ctx;
59 this.locals = ctx.locals;
60 this.classes = ctx.classes;
66 this.frameNumber = ctx.frameNumber;
67 this.scopeNumber = ctx.scopeNumber + 1;
69 this.frameNumber = ctx.scopeNumber + 1;
72 this.varNumber = ctx.varNumber;
79 public Context(Context ctx, ClassDefinition c) {
80 this(ctx, (MemberDefinition)null);
86 Context(Context ctx, Node node) {
87 if (ctx == null) {
92 this.prev = ctx;
93 this.locals = ctx.locals;
96 this.classes = ctx.classes;
97 this.varNumber = ctx.varNumber;
98 this.field = ctx.field;
99 this.frameNumber = ctx.frameNumber;
100 this.scopeNumber = ctx.scopeNumber + 1;
105 public Context(Context ctx) {
106 this(ctx, (Node)null);
175 for (Context ctx = this; ctx != null; ctx = ctx.prev) {
176 if (ctx.field == null) continue;
177 if (ctx.field.getClassDefinition() == c) {
178 return ctx.frameNumber;
679 for (Context ctx = this ; ctx != null ; ctx = ctx.prev) {
680 if ((ctx.node != null) && (ctx.node instanceof Statement)) {
681 if (((Statement)(ctx.node)).hasLabel(lbl))
682 return ctx;
696 for (Context ctx = this ; ctx != null ; ctx = ctx.prev) {
697 if (ctx.node != null) {
698 switch (ctx.node.op) {
703 return ctx;
718 for (Context ctx = this ; ctx != null ; ctx = ctx.prev) {
719 if (ctx.node != null) {
720 switch (ctx.node.op) {
724 return ctx;
736 for (Context ctx = this ; ctx != null ; ctx = ctx.prev) {
738 if (ctx.node != null && ctx.node.op == METHOD) {
739 return (CheckContext)ctx;
756 for (Context ctx = this;
757 ctx != null && ctx.node != null && ctx.node.op != METHOD;
758 ctx = ctx.prev) {
759 if (ctx.node.op == TRY) {
760 return (CheckContext)ctx;
770 for (Context ctx = this ; ctx != null ; ctx = ctx.prev) {
771 if (ctx.node != null) {
772 switch (ctx.node.op) {
775 return ctx;
786 for (Context ctx = this ; ctx != null ; ctx = ctx.prev) {
787 if (ctx.node != null) {
788 switch (ctx.node.op) {
790 if (((InlineMethodExpression)ctx.node).field.equals(field)) {
791 return ctx;
795 if (((InlineNewInstanceExpression)ctx.node).field.equals(field)) {
796 return ctx;
842 public static Environment newEnvironment(Environment env, Context ctx) {
843 return new ContextEnvironment(env, ctx);
849 Context ctx;
852 ContextEnvironment(Environment env, Context ctx) {
854 this.ctx = ctx;
859 return ctx.resolveName(innerEnv, name);