GoVarDeclaration[] declarations =
childAt(0,
file.getGlobalVariables()
).getDeclarations();
GoLiteralString string =
getAs(GoLiteralString.class,
getAs(GoLiteralExpression.class,
childAt(0,
declarations[0].getExpressions()
)
).getLiteral()
);
assertEquals(GoLiteral.Type.InterpretedString, string.getType());
assertEquals("a", string.getValue());
string =
getAs(GoLiteralString.class,
getAs(GoLiteralExpression.class,
childAt(0,
declarations[1].getExpressions()
)
).getLiteral()
);
assertEquals(GoLiteral.Type.RawString, string.getType());
assertEquals("b", string.getValue());
GoLiteralChar aChar =
getAs(GoLiteralChar.class,
getAs(GoLiteralExpression.class,