}
}
LiteralContext literalContext = getChild(context, LiteralContext.class);
if (literalContext != null) {
Literal literal = createNode(context, Literal.class);
TerminalNode terminal = getChild(literalContext, TerminalNode.class);
if (terminal != null && LITERAL_TYPE_MAP.containsKey(terminal.getSymbol().getType())) {
literal.setType(LITERAL_TYPE_MAP.get(terminal.getSymbol().getType()));
literal.setText(terminal.getText());
}
return literal;
}