nodes

package
v0.4.3-final-apache Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ContentNodeKind  = ast.NewNodeKind("FabricContentNode")
	CustomBlockKind  = ast.NewNodeKind("FabricCustomBlock")
	CustomInlineKind = ast.NewNodeKind("FabricCustomInline")
)

Functions

func NewCustomNode

func NewCustomNode(isInline bool, data *anypb.Any) ast.Node

Types

type ContentMeta

type ContentMeta struct {
	Provider string
	Plugin   string
	Version  string
}

func (*ContentMeta) AsData

func (meta *ContentMeta) AsData() plugindata.Data

type CustomBlock

type CustomBlock struct {
	ast.BaseBlock
	Data *anypb.Any
}

func (*CustomBlock) Dump

func (o *CustomBlock) Dump(source []byte, level int)

Dump implements ast.Node.

func (*CustomBlock) Kind

func (o *CustomBlock) Kind() ast.NodeKind

Kind implements ast.Node.

type CustomInline

type CustomInline struct {
	ast.BaseInline
	Data *anypb.Any
}

func (*CustomInline) Dump

func (o *CustomInline) Dump(source []byte, level int)

Dump implements ast.Node.

func (*CustomInline) Kind

func (o *CustomInline) Kind() ast.NodeKind

Kind implements ast.Node.

type FabricContentNode

type FabricContentNode struct {
	ast.BaseBlock
	Meta *ContentMeta
}

func ToFabricContentNode

func ToFabricContentNode(node ast.Node) (meta *FabricContentNode)

func (*FabricContentNode) Dump

func (m *FabricContentNode) Dump(source []byte, level int)

Dump implements ast.Node.

func (*FabricContentNode) Kind

func (m *FabricContentNode) Kind() ast.NodeKind

Kind implements ast.Node.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL