Browse Source

Make ExpressionFormatter compile for CrT

kindlich 4 years ago
parent
commit
185f20b663
No known key found for this signature in database

+ 7
- 7
CodeFormatter/src/main/java/org/openzen/zenscript/formatter/ExpressionFormatter.java View File

@@ -602,8 +602,13 @@ public class ExpressionFormatter implements ExpressionVisitor<ExpressionString>
602 602
 	public ExpressionString visitPanic(PanicExpression expression) {
603 603
 		return expression.value.accept(this).unaryPrefix(ZenScriptOperator.PANIC);
604 604
 	}
605
-	
606
-	@Override
605
+    
606
+    @Override
607
+    public ExpressionString visitPlatformSpecific(Expression expression) {
608
+	    throw new UnsupportedOperationException("Not yet implemented!");
609
+    }
610
+    
611
+    @Override
607 612
 	public ExpressionString visitPostCall(PostCallExpression expression) {
608 613
 		return unaryPostfix(expression.target, ZenScriptOperator.INCREMENT, expression.member.getOperator() == OperatorType.INCREMENT ? "++" : "--");
609 614
 	}
@@ -667,11 +672,6 @@ public class ExpressionFormatter implements ExpressionVisitor<ExpressionString>
667 672
 				ZenScriptOperator.ASSIGN);
668 673
 	}
669 674
 	
670
-	@Override
671
-	public ExpressionString visitStorageCast(StorageCastExpression expression) {
672
-		return expression.value.accept(this);
673
-	}
674
-	
675 675
 	@Override
676 676
 	public ExpressionString visitSupertypeCast(SupertypeCastExpression expression) {
677 677
 		return expression.value.accept(this);

Loading…
Cancel
Save