Skip to content

Commit

Permalink
Reorganize ast packages to expand base node classes
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Aug 8, 2024
1 parent 3a1a411 commit f80019c
Show file tree
Hide file tree
Showing 80 changed files with 873 additions and 763 deletions.
3 changes: 3 additions & 0 deletions core/src/main/kotlin/eu/iamgio/quarkdown/ast/AstAttributes.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package eu.iamgio.quarkdown.ast

import eu.iamgio.quarkdown.ast.base.block.LinkDefinition
import eu.iamgio.quarkdown.ast.quarkdown.FunctionCallNode

/**
* Additional information about the node tree, produced by the parsing stage and stored in a [eu.iamgio.quarkdown.context.Context].
* @see eu.iamgio.quarkdown.context.Context
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/kotlin/eu/iamgio/quarkdown/ast/AstRoot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package eu.iamgio.quarkdown.ast
import eu.iamgio.quarkdown.visitor.node.NodeVisitor

/**
* The AST root.
* The root of a node tree.
*/
data class AstRoot(
override val children: List<Node>,
Expand Down
239 changes: 0 additions & 239 deletions core/src/main/kotlin/eu/iamgio/quarkdown/ast/BlockNodes.kt

This file was deleted.

7 changes: 7 additions & 0 deletions core/src/main/kotlin/eu/iamgio/quarkdown/ast/InlineContent.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package eu.iamgio.quarkdown.ast

/**
* Represents an ordered sequence of inline nodes, such as text, links, images, etc.,
* that can be part of a block's text, such as a paragraph or heading.
*/
typealias InlineContent = List<Node>
Loading

0 comments on commit f80019c

Please sign in to comment.