Browse Source

Implemented SuperTypeCast for ExpressionVisitor

kindlich 5 years ago
parent
commit
3bf515d8e8
No known key found for this signature in database

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

3817
 
3817
 
3818
 	@Override
3818
 	@Override
3819
 	public Void visitSetter(SetterExpression expression) {
3819
 	public Void visitSetter(SetterExpression expression) {
3820
+		if(!checkAndExecuteMethodInfo(expression.setter, expression.type, expression)) {
3821
+			throw new IllegalStateException("Unknown Setter");
3822
+		}
3820
 		return null;
3823
 		return null;
3821
 	}
3824
 	}
3822
 
3825
 
4031
 
4034
 
4032
 	@Override
4035
 	@Override
4033
 	public Void visitSupertypeCast(SupertypeCastExpression expression) {
4036
 	public Void visitSupertypeCast(SupertypeCastExpression expression) {
4037
+		expression.value.accept(this);
4034
 		return null; // nothing to do
4038
 		return null; // nothing to do
4035
 	}
4039
 	}
4036
 
4040
 

Loading…
Cancel
Save