java.lang.Object
org.aya.concrete.remark.Literate.CodeBlock
- All Implemented Interfaces:
Literate,org.aya.pretty.doc.Docile
- Enclosing interface:
Literate
A code block
- Implementation Note:
- the content which this code block hold can be illegal, like
```aya
def foo : Nat => ```
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.concrete.remark.Literate
Literate.Code, Literate.CodeBlock, Literate.Err, Literate.Link, Literate.Many, Literate.Raw, Literate.Unsupported -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
language
-
raw
-
highlighted
@Nullable public @Nullable org.aya.pretty.doc.Doc highlighted -
sourcePos
@Nullable public final @Nullable org.aya.util.error.SourcePos sourcePosThe source pos of the code block ( without beginning '```', and ending '\n```' ) null if this code block is empty (length 0)
-
-
Constructor Details
-
CodeBlock
-
-
Method Details
-
isAya
public boolean isAya() -
toDoc
@NotNull public @NotNull org.aya.pretty.doc.Doc toDoc()- Specified by:
toDocin interfaceorg.aya.pretty.doc.Docile
-