freefloating

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection map[Position][]String

func (Collection) IsEmpty

func (c Collection) IsEmpty() bool

type Position

type Position int
const (
	Start Position = iota
	End
	Slash
	Colon
	SemiColon
	AltEnd
	Dollar
	Ampersand
	Name
	Prefix
	Key
	Var
	UseType
	ReturnType
	OptionalType
	CaseSeparator
	LexicalVars
	Params
	Ref
	Cast
	Expr
	InitExpr
	CondExpr
	IncExpr
	True
	Cond

	HaltCompiller
	Namespace
	Static
	Class
	Use
	While
	For
	Switch
	Break
	Foreach
	Declare
	Label
	Finally
	List
	Default
	If
	ElseIf
	Else
	Variadic
	Function
	Alias
	As
	Equal
	Exit
	Array
	Isset
	Empty
	Eval
	Echo
	Try
	Catch
	Unset

	Stmts
	VarList
	ConstList
	NameList
	ParamList
	ModifierList
	ArrayPairList
	CaseListStart
	CaseListEnd
	ArgumentList
	PropertyList
	ParameterList
	AdaptationList
	LexicalVarList
	UseDeclarationList

	OpenParenthesisToken
	CloseParenthesisToken
)

func (Position) String

func (i Position) String() string

type String

type String struct {
	StringType StringType
	Value      string
	Position   *position.Position
}

type StringType

type StringType int
const (
	WhiteSpaceType StringType = iota
	CommentType
	TokenType
)

Jump to

Keyboard shortcuts

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