@Override
protected Decimal64Specification createDeclared(final StmtContext<String, Decimal64Specification, ?> ctx,
final ImmutableList<? extends DeclaredStatement<?>> substatements) {
- return new Decimal64SpecificationImpl(ctx.coerceRawStatementArgument(), substatements);
+ return new Decimal64SpecificationImpl(ctx.getRawArgument(), substatements);
}
@Override
throw noFracDigits(stmt);
}
- final DecimalTypeBuilder builder = BaseTypes.decimalTypeBuilder(stmt.getSchemaPath());
+ final DecimalTypeBuilder builder = BaseTypes.decimalTypeBuilder(stmt.wrapSchemaPath());
for (final EffectiveStatement<?, ?> subStmt : substatements) {
if (subStmt instanceof FractionDigitsEffectiveStatement) {
builder.setFractionDigits(((FractionDigitsEffectiveStatement) subStmt).argument());
* The "fraction-digits" statement, which is a substatement to the
* "type" statement, MUST be present if the type is "decimal64".
*/
- return new SourceException("At least one fraction-digits statement has to be present", stmt.sourceReference());
+ return new SourceException("At least one fraction-digits statement has to be present", stmt);
}
}
\ No newline at end of file