org.aya.concrete.remark.UnsupportedMarkdown Maven / Gradle / Ivy
// Copyright (c) 2020-2021 Yinsen (Tesla) Zhang.
// Use of this source code is governed by the MIT license that can be found in the LICENSE.md file.
package org.aya.concrete.remark;
import org.aya.api.distill.DistillerOptions;
import org.aya.api.error.Problem;
import org.aya.util.error.SourcePos;
import org.aya.pretty.doc.Doc;
import org.jetbrains.annotations.NotNull;
/**
* @author ice1000
*/
public record UnsupportedMarkdown(
@Override @NotNull SourcePos sourcePos,
@NotNull String nodeName
) implements Problem {
@Override public @NotNull Severity level() {
return Severity.WARN;
}
@Override public @NotNull Doc describe(@NotNull DistillerOptions options) {
return Doc.english("Unsupported markdown syntax: " + nodeName + ".");
}
}