[Java] Add CharacterLiteral to CompileTimeConstantExpr.getStringValue

This commit is contained in:
Jonathan Leitschuh
2022-03-03 17:49:43 -05:00
parent 1181779c10
commit 04cd0dbfe9
8 changed files with 37 additions and 1 deletions

View File

@@ -168,6 +168,8 @@ class CompileTimeConstantExpr extends Expr {
string getStringValue() {
result = this.(StringLiteral).getValue()
or
result = this.(CharacterLiteral).getValue()
or
result =
this.(AddExpr).getLeftOperand().(CompileTimeConstantExpr).getStringValue() +
this.(AddExpr).getRightOperand().(CompileTimeConstantExpr).getStringValue()