core

package
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModDeclaration uint32 = 1 << iota
	ModReadonly
	ModDocumentation
)

Variables

This section is empty.

Functions

func ByLine

func ByLine(tokens []Token) map[int][]Token

Types

type Token

type Token struct {
	Line      int
	StartCol  int
	EndCol    int
	Type      TokenType
	Modifiers uint32
	Priority  int
}

func FilterRange

func FilterRange(tokens []Token, startLine, startCol, endLine, endCol int) []Token

func Normalize

func Normalize(sm *sourcemap.SourceMap, tokens []Token) []Token

type TokenType

type TokenType string
const (
	TokenKeyword   TokenType = "keyword"
	TokenComment   TokenType = "comment"
	TokenString    TokenType = "string"
	TokenNumber    TokenType = "number"
	TokenOperator  TokenType = "operator"
	TokenVariable  TokenType = "variable"
	TokenParameter TokenType = "parameter"
	TokenProperty  TokenType = "property"
	TokenFunction  TokenType = "function"
)

Jump to

Keyboard shortcuts

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