Describe the bug
A concatenated string loses everything except for the first two parts.
To Reproduce
Define a string in Java:
String test = "Hello" + "beautiful" + "world";
Create an AST using lang::java::m3::Core and lang::java::m3::AST:
M3 model = createM3FromMavenProject(projectLocation);
list[Declaration] asts = [
createAstFromFile(f, true)
| f <- files(model.containment), isCompilationUnit(f)
];
Print the AST node containing the variable declaration statement.
Expected behavior
All parts of the string are present in the AST node.
Observed behavior
Only the first two parts of the string are present in the AST node.
declarationStatement(variables([],simpleType(id(\"String\")),[variable(id(\"test\"),[],plus(stringLiteral(\"\\\"Hello\\\"\"),stringLiteral(\"\\\"beautiful\\\"\")))]))
Describe the bug
A concatenated string loses everything except for the first two parts.
To Reproduce
Define a string in Java:
Create an AST using lang::java::m3::Core and lang::java::m3::AST:
Print the AST node containing the variable declaration statement.
Expected behavior
All parts of the string are present in the AST node.
Observed behavior
Only the first two parts of the string are present in the AST node.