Browse Source

A couple minor changes..

Stan Hebben 6 years ago
parent
commit
c2737ac7b1

+ 2
- 2
JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/JavaCapturedExpressionVisitor.java View File

4
 
4
 
5
 public class JavaCapturedExpressionVisitor implements CapturedExpressionVisitor<Void> {
5
 public class JavaCapturedExpressionVisitor implements CapturedExpressionVisitor<Void> {
6
 
6
 
7
-	public final JavaExpressionVisitor expressionVisitor;
7
+	public final ExpressionVisitor<Void> expressionVisitor;
8
 
8
 
9
-	public JavaCapturedExpressionVisitor(JavaExpressionVisitor expressionVisitor) {
9
+	public JavaCapturedExpressionVisitor(ExpressionVisitor<Void> expressionVisitor) {
10
 		this.expressionVisitor = expressionVisitor;
10
 		this.expressionVisitor = expressionVisitor;
11
 	}
11
 	}
12
 
12
 

+ 1
- 1
JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/JavaExpressionVisitor.java View File

3432
 				javaWriter.getStaticField(context.getJavaField(expression.getter));
3432
 				javaWriter.getStaticField(context.getJavaField(expression.getter));
3433
 				return null;
3433
 				return null;
3434
 			}
3434
 			}
3435
-
3435
+			
3436
 			if (!checkAndExecuteMethodInfo(expression.getter, expression.type, expression))
3436
 			if (!checkAndExecuteMethodInfo(expression.getter, expression.type, expression))
3437
 				throw new IllegalStateException("Call target has no method info!");
3437
 				throw new IllegalStateException("Call target has no method info!");
3438
 
3438
 

Loading…
Cancel
Save