ast

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 3 Imported by: 17

Documentation

Overview

Package ast defines AST nodes that represetns emoji extension's elements.

Index

Constants

This section is empty.

Variables

View Source
var KindEmoji = gast.NewNodeKind("Emoji")

KindEmoji is a NodeKind of the emoji node.

Functions

This section is empty.

Types

type Emoji

type Emoji struct {
	gast.BaseInline

	ShortName []byte
	Value     *definition.Emoji
}

Emoji represents an inline emoji.

func NewEmoji

func NewEmoji(shortName []byte, value *definition.Emoji) *Emoji

NewEmoji returns a new Emoji node.

func (*Emoji) Dump

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

Dump implements Node.Dump.

func (*Emoji) Kind

func (n *Emoji) 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