JS: make use of getUnderlyingValue

This commit is contained in:
Esben Sparre Andreasen
2018-10-12 14:36:09 +02:00
parent 376245da06
commit 7c7cd7c213

View File

@@ -127,10 +127,7 @@ module SyntacticConstants {
class WrappedConstant extends SyntacticConstant {
WrappedConstant() {
stripParens() instanceof SyntacticConstant or
this.(SeqExpr).getLastOperand() instanceof SyntacticConstant or
this.(TypeAssertion).getExpression() instanceof SyntacticConstant or
this.(Assignment).getRhs() instanceof SyntacticConstant
getUnderlyingValue() instanceof SyntacticConstant
}
}