Nullish operators WIP

This commit is contained in:
Jindra Petřík
2024-11-11 21:39:53 +01:00
parent 10adfdaf2e
commit 4aa84b3631
6 changed files with 884 additions and 863 deletions

View File

@@ -291,7 +291,6 @@ public class ActionScript3Parser {
} else {
lexer.pushback(s2);
}
} else {
lexer.pushback(s2);
}

View File

@@ -606,7 +606,16 @@ public enum SymbolType {
/**
* Other: namespace suffix
*/
NAMESPACESUFFIX;
NAMESPACESUFFIX,
/**
* Operator: ?.
*/
NULL_DOT(GraphTargetItem.PRECEDENCE_PRIMARY, false),
/**
* Operator: ??
*/
NULL_COALESCE(GraphTargetItem.PRECEDENCE_PRIMARY, true, true);
private int precedence = GraphTargetItem.NOPRECEDENCE;