ast

package
v0.0.0-...-a3199ee Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Code generated by scripts/tmpl-to-go. DO NOT EDIT.

Code generated by scripts/tmpl-to-go. DO NOT EDIT.

Index

Constants

View Source
const (
	DefaultStyle = iota
	CurrencyStyle
	FullStyle
	IntegerStyle
	LongStyle
	MediumStyle
	PercentStyle
	ShortStyle
	InvalidStyle
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgStyle

type ArgStyle int

func ArgStyleFromKeyword

func ArgStyleFromKeyword(keyword string) ArgStyle

func (ArgStyle) ToKeyword

func (x ArgStyle) ToKeyword() string

type ArgType

type ArgType int
const (
	DefaultType ArgType = iota
	DateType
	DurationType
	NumberType
	OrdinalType
	SpelloutType
	TimeType
	InvalidType
)

func ArgTypeFromKeyword

func ArgTypeFromKeyword(keyword string) ArgType

func (ArgType) ToKeyword

func (x ArgType) ToKeyword() string

type Argument

type Argument interface {
	ArgNameOrNumber() string
}

type Message

type Message struct {
	Parts []Part
}

type NumberSign

type NumberSign struct {
	Positions *Positions
}

func (*NumberSign) Begin

func (x *NumberSign) Begin() Position

func (*NumberSign) End

func (x *NumberSign) End() Position

func (*NumberSign) HasPositions

func (x *NumberSign) HasPositions() bool

type Part

type Part interface {
	HasPositions() bool
	Begin() Position
	End() Position
}

type PlainArg

type PlainArg struct {
	Positions *Positions
	ArgID     string
}

func (*PlainArg) ArgNameOrNumber

func (x *PlainArg) ArgNameOrNumber() string

func (*PlainArg) Begin

func (x *PlainArg) Begin() Position

func (*PlainArg) End

func (x *PlainArg) End() Position

func (*PlainArg) HasPositions

func (x *PlainArg) HasPositions() bool

type PluralArg

type PluralArg struct {
	Positions *Positions
	ArgID     string
	Ordinal   bool
	Offset    int
	Messages  map[string]*Message
}

func (*PluralArg) ArgNameOrNumber

func (x *PluralArg) ArgNameOrNumber() string

func (*PluralArg) Begin

func (x *PluralArg) Begin() Position

func (*PluralArg) End

func (x *PluralArg) End() Position

func (*PluralArg) HasPositions

func (x *PluralArg) HasPositions() bool

type Position

type Position struct {
	Line       int
	ByteColumn int
	RuneColumn int
}

type Positions

type Positions struct {
	Begin Position
	End   Position
}

type SelectArg

type SelectArg struct {
	Positions *Positions
	ArgID     string
	Messages  map[string]*Message
}

func (*SelectArg) ArgNameOrNumber

func (x *SelectArg) ArgNameOrNumber() string

func (*SelectArg) Begin

func (x *SelectArg) Begin() Position

func (*SelectArg) End

func (x *SelectArg) End() Position

func (*SelectArg) HasPositions

func (x *SelectArg) HasPositions() bool

type SimpleArg

type SimpleArg struct {
	Positions *Positions
	ArgID     string
	ArgType   ArgType
	ArgStyle  ArgStyle
}

func (*SimpleArg) ArgNameOrNumber

func (x *SimpleArg) ArgNameOrNumber() string

func (*SimpleArg) Begin

func (x *SimpleArg) Begin() Position

func (*SimpleArg) End

func (x *SimpleArg) End() Position

func (*SimpleArg) HasPositions

func (x *SimpleArg) HasPositions() bool

type Text

type Text struct {
	Positions *Positions
	Value     string
}

func (*Text) Begin

func (x *Text) Begin() Position

func (*Text) End

func (x *Text) End() Position

func (*Text) HasPositions

func (x *Text) HasPositions() bool

Jump to

Keyboard shortcuts

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