scopes

package
v0.0.0-...-b2d4a8d Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArrayScope

func NewArrayScope(opts Options) core.Scope

func NewClauseScope

func NewClauseScope(opts Options, keyword string) core.Scope

func NewComputedPropertyNameScope

func NewComputedPropertyNameScope(opts Options, optional bool) core.Scope

func NewForExpressionScope

func NewForExpressionScope(opts Options, keyword, valVar, keyVar, variant string) core.Scope

func NewFunctionScope

func NewFunctionScope(opts Options, namespace []string, name string, errSup bool) core.Scope

func NewGroupScope

func NewGroupScope(opts Options) core.Scope

func NewLimitClauseScope

func NewLimitClauseScope(opts Options, keyword string) core.Scope

func NewMemberScope

func NewMemberScope(opts Options) core.Scope

func NewObjectScope

func NewObjectScope(opts Options) core.Scope

func NewOperatorScope

func NewOperatorScope(opts Options, variant core.Token) core.Scope

func NewPropertyAssignmentScope

func NewPropertyAssignmentScope(opts Options, name string, isShorthand bool) core.Scope

func NewPropertyNameToken

func NewPropertyNameToken(name string, optional bool) core.Token

func NewRangeOperatorScope

func NewRangeOperatorScope(opts Options) core.Scope

func NewReturnExpressionScope

func NewReturnExpressionScope(opts Options, keyword string) core.Scope

func NewSortClauseExpressionScope

func NewSortClauseExpressionScope(opts Options, direction string) core.Scope

func NewSortClauseScope

func NewSortClauseScope(opts Options, keyword string) core.Scope

func NewTernaryOperatorScope

func NewTernaryOperatorScope(opts Options) core.Scope

Types

type ArrayScope

type ArrayScope struct {
	*Scope
}

func (*ArrayScope) Read

func (s *ArrayScope) Read(out core.Output)

type ClauseScope

type ClauseScope struct {
	*Scope
	// contains filtered or unexported fields
}

func (*ClauseScope) Read

func (s *ClauseScope) Read(out core.Output)

type ComputedPropertyNameScope

type ComputedPropertyNameScope struct {
	*Scope
	// contains filtered or unexported fields
}

func (*ComputedPropertyNameScope) Read

func (s *ComputedPropertyNameScope) Read(out core.Output)

type ForExpressionScope

type ForExpressionScope struct {
	*Scope
	// contains filtered or unexported fields
}

func (*ForExpressionScope) Read

func (s *ForExpressionScope) Read(out core.Output)

type FunctionScope

type FunctionScope struct {
	*Scope
	// contains filtered or unexported fields
}

func (*FunctionScope) Read

func (s *FunctionScope) Read(out core.Output)

type GroupScope

type GroupScope struct {
	*OperatorScope
}

func (*GroupScope) Read

func (s *GroupScope) Read(out core.Output)

type LimitClauseScope

type LimitClauseScope struct {
	*Scope
	// contains filtered or unexported fields
}

func (*LimitClauseScope) Read

func (s *LimitClauseScope) Read(out core.Output)

type MemberScope

type MemberScope struct {
	*Scope
}

func (*MemberScope) Read

func (s *MemberScope) Read(out core.Output)

type ObjectScope

type ObjectScope struct {
	*Scope
}

func (*ObjectScope) Read

func (s *ObjectScope) Read(out core.Output)

type OperatorScope

type OperatorScope struct {
	*Scope
	// contains filtered or unexported fields
}

func (*OperatorScope) Read

func (s *OperatorScope) Read(out core.Output)

type Options

type Options struct {
	MaxLineLen uint64
}

type PropertyAssignmentScope

type PropertyAssignmentScope struct {
	*Scope
	// contains filtered or unexported fields
}

func (*PropertyAssignmentScope) Len

func (s *PropertyAssignmentScope) Len() int

func (*PropertyAssignmentScope) Read

func (s *PropertyAssignmentScope) Read(out core.Output)

func (*PropertyAssignmentScope) WriteScope

func (s *PropertyAssignmentScope) WriteScope(scope core.Scope)

func (*PropertyAssignmentScope) WriteToken

func (s *PropertyAssignmentScope) WriteToken(token core.Token)

type PropertyNameToken

type PropertyNameToken struct {
	// contains filtered or unexported fields
}

func (*PropertyNameToken) Len

func (p *PropertyNameToken) Len() int

func (*PropertyNameToken) String

func (p *PropertyNameToken) String() string

type RangeOperatorScope

type RangeOperatorScope struct {
	*OperatorScope
}

func (*RangeOperatorScope) Read

func (s *RangeOperatorScope) Read(out core.Output)

type ReturnExpressionScope

type ReturnExpressionScope struct {
	*Scope
	// contains filtered or unexported fields
}

func (*ReturnExpressionScope) Read

func (s *ReturnExpressionScope) Read(out core.Output)

type Scope

type Scope struct {
	// contains filtered or unexported fields
}

func NewScope

func NewScope(opts Options) *Scope

func (*Scope) Len

func (s *Scope) Len() int

func (*Scope) Read

func (s *Scope) Read(out core.Output)

func (*Scope) WriteScope

func (s *Scope) WriteScope(scope core.Scope)

func (*Scope) WriteToken

func (s *Scope) WriteToken(token core.Token)

type SortClauseExpressionScope

type SortClauseExpressionScope struct {
	*Scope
	// contains filtered or unexported fields
}

func (*SortClauseExpressionScope) Read

func (s *SortClauseExpressionScope) Read(out core.Output)

type SortClauseScope

type SortClauseScope struct {
	*Scope
	// contains filtered or unexported fields
}

func (*SortClauseScope) Read

func (s *SortClauseScope) Read(out core.Output)

type TernaryOperatorScope

type TernaryOperatorScope struct {
	*OperatorScope
}

func (*TernaryOperatorScope) Read

func (s *TernaryOperatorScope) Read(out core.Output)

Jump to

Keyboard shortcuts

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