mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Bump versions of dependencies
This commit is contained in:
parent
672f7e32cd
commit
971fa9a1f3
|
@ -66,6 +66,7 @@ import org.mozilla.javascript.ast.SwitchStatement;
|
||||||
import org.mozilla.javascript.ast.ThrowStatement;
|
import org.mozilla.javascript.ast.ThrowStatement;
|
||||||
import org.mozilla.javascript.ast.TryStatement;
|
import org.mozilla.javascript.ast.TryStatement;
|
||||||
import org.mozilla.javascript.ast.UnaryExpression;
|
import org.mozilla.javascript.ast.UnaryExpression;
|
||||||
|
import org.mozilla.javascript.ast.UpdateExpression;
|
||||||
import org.mozilla.javascript.ast.VariableDeclaration;
|
import org.mozilla.javascript.ast.VariableDeclaration;
|
||||||
import org.mozilla.javascript.ast.VariableInitializer;
|
import org.mozilla.javascript.ast.VariableInitializer;
|
||||||
import org.mozilla.javascript.ast.WhileLoop;
|
import org.mozilla.javascript.ast.WhileLoop;
|
||||||
|
@ -294,6 +295,8 @@ public class AstWriter {
|
||||||
printInfix((InfixExpression) node, precedence);
|
printInfix((InfixExpression) node, precedence);
|
||||||
} else if (node instanceof UnaryExpression) {
|
} else if (node instanceof UnaryExpression) {
|
||||||
printUnary((UnaryExpression) node, precedence);
|
printUnary((UnaryExpression) node, precedence);
|
||||||
|
} else if (node instanceof UpdateExpression) {
|
||||||
|
printUnary((UpdateExpression) node, precedence);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -730,6 +733,29 @@ public class AstWriter {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void printUnary(UnaryExpression node, int precedence) throws IOException {
|
private void printUnary(UnaryExpression node, int precedence) throws IOException {
|
||||||
|
int innerPrecedence = PRECEDENCE_PREFIX;
|
||||||
|
|
||||||
|
if (innerPrecedence > precedence) {
|
||||||
|
writer.append('(');
|
||||||
|
}
|
||||||
|
|
||||||
|
String op = AstNode.operatorToString(node.getType());
|
||||||
|
if (op.startsWith("-")) {
|
||||||
|
writer.append(' ');
|
||||||
|
}
|
||||||
|
writer.append(op);
|
||||||
|
if (requiresWhitespaces(node.getType())) {
|
||||||
|
writer.append(' ');
|
||||||
|
}
|
||||||
|
|
||||||
|
print(node.getOperand(), innerPrecedence);
|
||||||
|
|
||||||
|
if (innerPrecedence > precedence) {
|
||||||
|
writer.append(')');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void printUnary(UpdateExpression node, int precedence) throws IOException {
|
||||||
int innerPrecedence = node.isPostfix() ? PRECEDENCE_POSTFIX : PRECEDENCE_PREFIX;
|
int innerPrecedence = node.isPostfix() ? PRECEDENCE_POSTFIX : PRECEDENCE_PREFIX;
|
||||||
|
|
||||||
if (innerPrecedence > precedence) {
|
if (innerPrecedence > precedence) {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
[versions]
|
[versions]
|
||||||
|
|
||||||
asm = "9.4"
|
asm = "9.4"
|
||||||
jackson = "2.12.2"
|
jackson = "2.14.2"
|
||||||
jetty = "9.4.38.v20210224"
|
jetty = "9.4.50.v20221201"
|
||||||
shadow = "7.1.2"
|
shadow = "7.1.2"
|
||||||
checkstyle = "8.41"
|
checkstyle = "8.41"
|
||||||
idea = "2020.1.4"
|
idea = "2020.1.4"
|
||||||
|
@ -13,11 +13,11 @@ maven-tools = "3.7.1"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
|
||||||
hppc = "com.carrotsearch:hppc:0.8.2"
|
hppc = "com.carrotsearch:hppc:0.9.1"
|
||||||
commons-io = "commons-io:commons-io:2.8.0"
|
commons-io = "commons-io:commons-io:2.11.0"
|
||||||
commons-cli = "commons-cli:commons-cli:1.4"
|
commons-cli = "commons-cli:commons-cli:1.5.0"
|
||||||
rhino = "org.mozilla:rhino:1.7.11"
|
rhino = "org.mozilla:rhino:1.7.14"
|
||||||
slf4j = "org.slf4j:slf4j-api:1.7.30"
|
slf4j = "org.slf4j:slf4j-api:2.0.6"
|
||||||
javax-servlet = "javax.servlet:javax.servlet-api:3.1.0"
|
javax-servlet = "javax.servlet:javax.servlet-api:3.1.0"
|
||||||
javax-websocket = "javax.websocket:javax.websocket-api:1.0"
|
javax-websocket = "javax.websocket:javax.websocket-api:1.0"
|
||||||
|
|
||||||
|
@ -30,11 +30,11 @@ asm-analysis = { module = "org.ow2.asm:asm-analysis", version.ref = "asm" }
|
||||||
jackson-annotations = { module = "com.fasterxml.jackson.core:jackson-annotations", version.ref = "jackson" }
|
jackson-annotations = { module = "com.fasterxml.jackson.core:jackson-annotations", version.ref = "jackson" }
|
||||||
jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jackson" }
|
jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jackson" }
|
||||||
|
|
||||||
gson = "com.google.code.gson:gson:2.8.6"
|
gson = "com.google.code.gson:gson:2.10.1"
|
||||||
jzlib = "com.jcraft:jzlib:1.1.3"
|
jzlib = "com.jcraft:jzlib:1.1.3"
|
||||||
jodaTime = "joda-time:joda-time:2.7"
|
jodaTime = "joda-time:joda-time:2.12.2"
|
||||||
htmlunit = "net.sourceforge.htmlunit:htmlunit:2.37.0"
|
htmlunit = "net.sourceforge.htmlunit:htmlunit:2.70.0"
|
||||||
httpclient = "org.apache.httpcomponents:httpclient:4.5.13"
|
httpclient = "org.apache.httpcomponents:httpclient:4.5.14"
|
||||||
|
|
||||||
jetty-server = { module = "org.eclipse.jetty:jetty-server", version.ref = "jetty" }
|
jetty-server = { module = "org.eclipse.jetty:jetty-server", version.ref = "jetty" }
|
||||||
jetty-websocket-server = { module = "org.eclipse.jetty.websocket:javax-websocket-server-impl", version.ref = "jetty" }
|
jetty-websocket-server = { module = "org.eclipse.jetty.websocket:javax-websocket-server-impl", version.ref = "jetty" }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user