private static final DescriptionStatementSupport INSTANCE = new DescriptionStatementSupport();
private DescriptionStatementSupport() {
- super(YangStmtMapping.DESCRIPTION);
+ super(YangStmtMapping.DESCRIPTION, StatementPolicy.contextIndependent());
}
public static DescriptionStatementSupport getInstance() {
@Override
protected DescriptionStatement createDeclared(final StmtContext<String, DescriptionStatement, ?> ctx,
final ImmutableList<? extends DeclaredStatement<?>> substatements) {
- return new RegularDescriptionStatement(ctx.coerceRawStatementArgument(), substatements);
+ return new RegularDescriptionStatement(ctx.getRawArgument(), substatements);
}
@Override
protected DescriptionStatement createEmptyDeclared(final StmtContext<String, DescriptionStatement, ?> ctx) {
- return new EmptyDescriptionStatement(ctx.coerceRawStatementArgument());
+ return new EmptyDescriptionStatement(ctx.getRawArgument());
}
@Override