ast

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	Base
	Name       string
	Value      string       // [A=B]
	Parameters []*Parameter // [A(X x, Y y)]
	Values     []string     // [A=(a,b,c)]
}

[Constructor], []

type AnyType

type AnyType struct {
	Base
}

type Base

type Base struct {
	Start    int // rune
	End      int // rune
	Line     int // line number
	Comments []string
	Errors   []*ErrorNode
}

func (*Base) NodeBase

func (b *Base) NodeBase() *Base

type BasicLiteral

type BasicLiteral struct {
	Base
	Value string
}

type Callback

type Callback struct {
	Base
	Name       string
	Return     Type
	Parameters []*Parameter
}

type CustomOp

type CustomOp struct {
	Base
	Name string
}

type Decl

type Decl interface {
	Node
	// contains filtered or unexported methods
}

type Dictionary

type Dictionary struct {
	Base
	Name        string
	Inherits    string
	Partial     bool
	Annotations []*Annotation
	Members     []*Member
}

type Enum

type Enum struct {
	Base
	Annotations []*Annotation
	Name        string
	Values      []Literal
}

type ErrorNode

type ErrorNode struct {
	Base
	Message string
}

error occurred; value is text of error

type File

type File struct {
	Base
	Declarations []Decl
}

The file root node

type Implementation

type Implementation struct {
	Base
	Name   string
	Source string
}

Window implements ECMA262Globals

type Includes

type Includes struct {
	Base
	Name   string
	Source string
}

Document includes DocumentOrShadowRoot

type Interface

type Interface struct {
	Base
	Partial     bool
	Callback    bool
	Name        string
	Inherits    string
	Annotations []*Annotation
	Members     []InterfaceMember
	CustomOps   []*CustomOp
	Iterable    *Iterable
}

interface Foo { ... }

type InterfaceMember

type InterfaceMember interface {
	// contains filtered or unexported methods
}

type Iterable

type Iterable struct {
	Base
	Key  Type
	Elem Type
}

type Literal

type Literal interface {
	// contains filtered or unexported methods
}

type Member

type Member struct {
	Base
	Name           string
	Type           Type
	Init           Literal
	Attribute      bool
	Static         bool
	Const          bool
	Readonly       bool
	Required       bool
	Specialization string
	Parameters     []*Parameter
	Annotations    []*Annotation
}

readonly attribute something

type Mixin

type Mixin struct {
	Base
	Name        string
	Inherits    string
	Partial     bool
	Annotations []*Annotation
	Members     []MixinMember
	CustomOps   []*CustomOp
	Iterable    *Iterable
}

interface mixin Foo { ... }

type MixinMember

type MixinMember interface {
	// contains filtered or unexported methods
}

type Node

type Node interface {
	NodeBase() *Base
}

type NullableType

type NullableType struct {
	Base
	Type Type
}

type Parameter

type Parameter struct {
	Base
	Type        Type
	Optional    bool
	Variadic    bool
	Name        string
	Init        Literal
	Annotations []*Annotation
}

optional any SomeArg

type ParametrizedType

type ParametrizedType struct {
	Base
	Name  string
	Elems []Type
}

type RecordType

type RecordType struct {
	Base
	Key  Type
	Elem Type
}

type SequenceLiteral

type SequenceLiteral struct {
	Base
	Elems []Literal
}

type SequenceType

type SequenceType struct {
	Base
	Elem Type
}

type Type

type Type interface {
	Node
	// contains filtered or unexported methods
}

type TypeName

type TypeName struct {
	Base
	Name string
}

type Typedef

type Typedef struct {
	Base
	Annotations []*Annotation
	Name        string
	Type        Type
}

type UnionType

type UnionType struct {
	Base
	Types []Type
}

Jump to

Keyboard shortcuts

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