ast

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ast defines AST nodes that represents extension's elements

Package ast defines AST nodes that represents extension's elements

Package ast defines AST nodes that represents extension's elements

Package ast defines AST nodes that represents extension's elements

Index

Constants

This section is empty.

Variables

View Source
var KindAt = gast.NewNodeKind("At")

KindAt is a NodeKind of the At node.

View Source
var KindDate = gast.NewNodeKind("Date")

KindDate is a NodeKind of the Date node.

View Source
var KindLatex = gast.NewNodeKind("Latex")

KindLatex is a NodeKind of the Latex node.

View Source
var KindPost = gast.NewNodeKind("Post")

KindPost is a NodeKind of the Post node.

View Source
var KindRefer = gast.NewNodeKind("Refer")

KindRefer is a NodeKind of the Refer node.

View Source
var KindTaskCheckBox = gast.NewNodeKind("TaskCheckBox")

KindTaskCheckBox is a NodeKind of the TaskCheckBox node.

Functions

This section is empty.

Types

type At

type At struct {
	gast.BaseInline
}

A At struct represents a At

func NewAt

func NewAt() *At

NewAt returns a new At node.

func (*At) Dump

func (n *At) Dump(source []byte, level int)

Dump implements Node.Dump.

func (*At) Kind

func (n *At) Kind() gast.NodeKind

Kind implements Node.Kind.

type Date added in v0.0.4

type Date struct {
	gast.BaseInline
	Value []byte
}

A Date struct represents date url

func NewDate added in v0.0.4

func NewDate(value []byte) *Date

NewDate returns a new Date node.

func (*Date) Dump added in v0.0.4

func (n *Date) Dump(source []byte, level int)

Dump implements Node.Dump.

func (*Date) Kind added in v0.0.4

func (n *Date) Kind() gast.NodeKind

Kind implements Node.Kind.

type Latex

type Latex struct {
	gast.BaseInline
	IsInline bool
	Value    []byte
}

A Latex struct represents a strikethrough of GFM text.

func NewLatex

func NewLatex(isInline bool, value []byte) *Latex

NewLatex returns a new Latex node.

func (*Latex) Dump

func (n *Latex) Dump(source []byte, level int)

Dump implements Node.Dump.

func (*Latex) Kind

func (n *Latex) Kind() gast.NodeKind

Kind implements Node.Kind.

type Post added in v0.0.2

type Post struct {
	gast.BaseInline
	Title []byte
	URL   []byte
}

A Post struct represents a post url in blog

func NewPost added in v0.0.2

func NewPost(title []byte, url []byte) *Post

NewPost returns a new Post node.

func (*Post) Dump added in v0.0.2

func (n *Post) Dump(source []byte, level int)

Dump implements Node.Dump.

func (*Post) Kind added in v0.0.2

func (n *Post) Kind() gast.NodeKind

Kind implements Node.Kind.

type Refer added in v0.0.2

type Refer struct {
	gast.BaseInline
	Title []byte
	URL   []byte
}

A Refer struct represents refer url

func NewRefer added in v0.0.2

func NewRefer(title []byte, url []byte) *Refer

NewRefer returns a new Refer node.

func (*Refer) Dump added in v0.0.2

func (n *Refer) Dump(source []byte, level int)

Dump implements Node.Dump.

func (*Refer) Kind added in v0.0.2

func (n *Refer) Kind() gast.NodeKind

Kind implements Node.Kind.

type TaskCheckBox added in v0.0.5

type TaskCheckBox struct {
	gast.BaseInline
	IsChecked bool
}

A TaskCheckBox struct represents a checkbox of a task list.

func NewTaskCheckBox added in v0.0.5

func NewTaskCheckBox(checked bool) *TaskCheckBox

NewTaskCheckBox returns a new TaskCheckBox node.

func (*TaskCheckBox) Dump added in v0.0.5

func (n *TaskCheckBox) Dump(source []byte, level int)

Dump impelemtns Node.Dump.

func (*TaskCheckBox) Kind added in v0.0.5

func (n *TaskCheckBox) Kind() gast.NodeKind

Kind implements Node.Kind.

Jump to

Keyboard shortcuts

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