Versions in this module Expand all Collapse all v0 v0.1.0 Aug 4, 2023 Changes in this version + const Re2Dot + const WhitespaceChars + func IsIdentifier(s string) bool + func ParseFile(fileSet *file.FileSet, filename string, src interface{}, mode Mode, ...) (*ast.Program, error) + func ParseFunction(parameterList, body string, options ...Option) (*ast.FunctionLiteral, error) + func ReadSource(filename string, src interface{}) ([]byte, error) + func TransformRegExp(pattern string) (transformed string, err error) + func WithDisableSourceMaps(opts *options) + type Error struct + Message string + Position file.Position + func (self Error) Error() string + type ErrorList []*Error + func (self *ErrorList) Add(position file.Position, msg string) + func (self *ErrorList) Reset() + func (self ErrorList) Err() error + func (self ErrorList) Error() string + func (self ErrorList) Len() int + func (self ErrorList) Less(i, j int) bool + func (self ErrorList) Sort() + func (self ErrorList) Swap(i, j int) + type Mode uint + const IgnoreRegExpErrors + type Option func(*options) + func WithSourceMapLoader(loader func(path string) ([]byte, error)) Option + type RegexpErrorIncompatible struct + func (s RegexpErrorIncompatible) Error() string + type RegexpSyntaxError struct + func (s RegexpSyntaxError) Error() string