@Override
protected final TypeStatement createDeclared(final StmtContext<String, TypeStatement, ?> ctx,
final ImmutableList<? extends DeclaredStatement<?>> substatements) {
- return new RegularTypeStatement(ctx, substatements);
+ return new RegularTypeStatement(ctx.coerceRawStatementArgument(), substatements);
}
@Override
protected final TypeStatement createEmptyDeclared(final StmtContext<String, TypeStatement, ?> ctx) {
final TypeStatement builtin;
- return (builtin = BuiltinTypeStatement.lookup(ctx)) != null ? builtin : new EmptyTypeStatement(ctx);
+ return (builtin = BuiltinTypeStatement.lookup(ctx)) != null ? builtin
+ : new EmptyTypeStatement(ctx.coerceRawStatementArgument());
}
@Override