Documentation ¶
Index ¶
- func ExpectedLinePaddingAfter(expression Node) (int, int)
- func LinePaddingAfter(expression Node) int
- func LinePaddingBefore(expression Node) int
- func LinesToInsertBetween(before Expression, now Expression) int
- type Alias
- func (i *Alias) Comment() *MultilineComment
- func (i *Alias) DebugString() string
- func (i *Alias) DecoratedName() string
- func (i *Alias) FetchPositionLength() token.SourceFileReference
- func (i *Alias) Identifier() *TypeIdentifier
- func (i *Alias) KeywordAlias() token.Keyword
- func (i *Alias) KeywordType() token.Keyword
- func (i *Alias) Name() string
- func (i *Alias) ReferencedType() Type
- func (i *Alias) String() string
- type AnyMatchingType
- type ArrayLiteral
- func (i *ArrayLiteral) DebugString() string
- func (i *ArrayLiteral) EndParenToken() token.ParenToken
- func (i *ArrayLiteral) Expressions() []Expression
- func (i *ArrayLiteral) FetchPositionLength() token.SourceFileReference
- func (i *ArrayLiteral) StartParenToken() token.ParenToken
- func (i *ArrayLiteral) String() string
- type BinaryOperator
- func (i *BinaryOperator) DebugString() string
- func (i *BinaryOperator) FetchPositionLength() token.SourceFileReference
- func (i *BinaryOperator) Left() Expression
- func (i *BinaryOperator) OperatorToken() token.OperatorToken
- func (i *BinaryOperator) OperatorType() token.Type
- func (i *BinaryOperator) Right() Expression
- func (i *BinaryOperator) String() string
- func (i *BinaryOperator) Token() token.Token
- type BooleanLiteral
- type ByAssignmentName
- type CaseConsequenceForCustomType
- func (c *CaseConsequenceForCustomType) Arguments() []*VariableIdentifier
- func (c *CaseConsequenceForCustomType) Comment() token.Comment
- func (c *CaseConsequenceForCustomType) Expression() Expression
- func (c *CaseConsequenceForCustomType) Identifier() *TypeIdentifier
- func (c *CaseConsequenceForCustomType) String() string
- type CaseConsequencePatternMatching
- type CaseForCustomType
- func (i *CaseForCustomType) Consequences() []*CaseConsequenceForCustomType
- func (i *CaseForCustomType) DebugString() string
- func (i *CaseForCustomType) FetchPositionLength() token.SourceFileReference
- func (i *CaseForCustomType) KeywordCase() token.Keyword
- func (i *CaseForCustomType) KeywordOf() token.Keyword
- func (i *CaseForCustomType) String() string
- func (i *CaseForCustomType) Test() Expression
- type CaseForPatternMatching
- func (i *CaseForPatternMatching) Consequences() []*CaseConsequencePatternMatching
- func (i *CaseForPatternMatching) DebugString() string
- func (i *CaseForPatternMatching) FetchPositionLength() token.SourceFileReference
- func (i *CaseForPatternMatching) KeywordCase() token.Keyword
- func (i *CaseForPatternMatching) KeywordOf() token.Keyword
- func (i *CaseForPatternMatching) String() string
- func (i *CaseForPatternMatching) Test() Expression
- type CharacterLiteral
- type ConstantDefinition
- func (i *ConstantDefinition) Comment() *MultilineComment
- func (i *ConstantDefinition) DebugString() string
- func (i *ConstantDefinition) Expression() Expression
- func (i *ConstantDefinition) FetchPositionLength() token.SourceFileReference
- func (i *ConstantDefinition) Identifier() *VariableIdentifier
- func (i *ConstantDefinition) String() string
- type ConstantOrLiteral
- type ConstructorCall
- func (i *ConstructorCall) Arguments() []Expression
- func (i *ConstructorCall) DebugString() string
- func (i *ConstructorCall) FetchPositionLength() token.SourceFileReference
- func (i *ConstructorCall) OverwriteArguments(args []Expression)
- func (i *ConstructorCall) String() string
- func (i *ConstructorCall) TypeReference() TypeReferenceScopedOrNormal
- type CustomType
- func (i *CustomType) Comment() *MultilineComment
- func (i *CustomType) DebugString() string
- func (i *CustomType) FetchPositionLength() token.SourceFileReference
- func (i *CustomType) FindAllLocalTypes() []*TypeParameter
- func (i *CustomType) Identifier() *TypeIdentifier
- func (i *CustomType) KeywordType() token.Keyword
- func (i *CustomType) Name() string
- func (i *CustomType) String() string
- func (i *CustomType) Variants() []*CustomTypeVariant
- type CustomTypeVariant
- func (i *CustomTypeVariant) Comment() token.Comment
- func (i *CustomTypeVariant) FetchPositionLength() token.SourceFileReference
- func (i *CustomTypeVariant) Index() int
- func (i *CustomTypeVariant) Name() string
- func (i *CustomTypeVariant) Parent() *CustomType
- func (i *CustomTypeVariant) SetParent(parent *CustomType)
- func (i *CustomTypeVariant) String() string
- func (i *CustomTypeVariant) TypeIdentifier() *TypeIdentifier
- func (i *CustomTypeVariant) Types() []Type
- type Expression
- type ExternalFunctionExpression
- type ExtraTypeParameterError
- type FixedLiteral
- type FunctionCall
- func (i *FunctionCall) AppendArgument(arg Expression)
- func (i *FunctionCall) Arguments() []Expression
- func (i *FunctionCall) DebugString() string
- func (i *FunctionCall) FetchPositionLength() token.SourceFileReference
- func (i *FunctionCall) FunctionExpression() Expression
- func (i *FunctionCall) OverwriteArguments(args []Expression)
- func (i *FunctionCall) String() string
- type FunctionCaller
- type FunctionDeclarationExpression
- func (i *FunctionDeclarationExpression) AnnotationFunctionType() token.AnnotationFunctionType
- func (i *FunctionDeclarationExpression) DebugString() string
- func (i *FunctionDeclarationExpression) FetchPositionLength() token.SourceFileReference
- func (f *FunctionDeclarationExpression) IsExternalVarExFunction() bool
- func (f *FunctionDeclarationExpression) IsExternalVarFunction() bool
- func (i *FunctionDeclarationExpression) IsSomeKindOfExternal() bool
- func (i *FunctionDeclarationExpression) String() string
- type FunctionParameter
- func (i *FunctionParameter) DebugString() string
- func (i *FunctionParameter) FetchPositionLength() token.SourceFileReference
- func (i *FunctionParameter) Identifier() *VariableIdentifier
- func (i *FunctionParameter) IsIgnore() bool
- func (i *FunctionParameter) Name() string
- func (i *FunctionParameter) String() string
- func (i *FunctionParameter) Type() Type
- type FunctionType
- type FunctionValue
- func (i *FunctionValue) CommentBlock() *MultilineComment
- func (i *FunctionValue) DebugFunctionIdentifier() token.VariableSymbolToken
- func (i *FunctionValue) DebugString() string
- func (i *FunctionValue) Expression() Expression
- func (i *FunctionValue) FetchPositionLength() token.SourceFileReference
- func (i *FunctionValue) Parameters() []*FunctionParameter
- func (i *FunctionValue) String() string
- func (i *FunctionValue) Type() Type
- type FunctionValueNamedDefinition
- func (i *FunctionValueNamedDefinition) DebugString() string
- func (i *FunctionValueNamedDefinition) FetchPositionLength() token.SourceFileReference
- func (i *FunctionValueNamedDefinition) FunctionValue() *FunctionValue
- func (i *FunctionValueNamedDefinition) Identifier() *VariableIdentifier
- func (i *FunctionValueNamedDefinition) String() string
- type GuardDefault
- type GuardExpression
- type GuardItem
- type GuardItemBasic
- type IfExpression
- func (i *IfExpression) Alternative() Expression
- func (i *IfExpression) Condition() Expression
- func (i *IfExpression) Consequence() Expression
- func (i *IfExpression) DebugString() string
- func (i *IfExpression) FetchPositionLength() token.SourceFileReference
- func (i *IfExpression) KeywordElse() token.Keyword
- func (i *IfExpression) KeywordIf() token.Keyword
- func (i *IfExpression) KeywordThen() token.Keyword
- func (i *IfExpression) String() string
- type Import
- func (i *Import) Alias() *TypeIdentifier
- func (i *Import) DebugString() string
- func (i *Import) ExposeAll() bool
- func (i *Import) FetchPositionLength() token.SourceFileReference
- func (i *Import) KeywordAs() *token.Keyword
- func (i *Import) KeywordExposing() *token.Keyword
- func (i *Import) KeywordImport() token.Keyword
- func (i *Import) ModuleName() *ModuleReference
- func (i *Import) String() string
- type IntegerLiteral
- type Let
- type LetAssignment
- func (l LetAssignment) CommentBlock() *MultilineComment
- func (l LetAssignment) Expression() Expression
- func (l LetAssignment) FetchPositionLength() token.SourceFileReference
- func (l LetAssignment) Identifiers() []*VariableIdentifier
- func (l LetAssignment) String() string
- func (l LetAssignment) WasRecordDestructuring() bool
- type ListLiteral
- func (i *ListLiteral) DebugString() string
- func (i *ListLiteral) EndParenToken() token.ParenToken
- func (i *ListLiteral) Expressions() []Expression
- func (i *ListLiteral) FetchPositionLength() token.SourceFileReference
- func (i *ListLiteral) StartParenToken() token.ParenToken
- func (i *ListLiteral) String() string
- type Literal
- type LocalComment
- type LocalType
- type Lookups
- type ModuleNamePart
- type ModuleReference
- func (m *ModuleReference) FetchPositionLength() token.SourceFileReference
- func (m *ModuleReference) First() *ModuleNamePart
- func (m *ModuleReference) Last() *ModuleNamePart
- func (m *ModuleReference) ModuleName() string
- func (m *ModuleReference) Parts() []*ModuleNamePart
- func (m *ModuleReference) Prefix() []*ModuleNamePart
- func (m *ModuleReference) String() string
- type MultilineComment
- func (i *MultilineComment) DebugString() string
- func (i *MultilineComment) FetchPositionLength() token.SourceFileReference
- func (i *MultilineComment) PositionLength() token.Range
- func (i *MultilineComment) String() string
- func (i *MultilineComment) Token() token.MultiLineCommentToken
- func (i *MultilineComment) Value() string
- type Node
- type Record
- func (i *Record) Comment() *MultilineComment
- func (i *Record) FetchPositionLength() token.SourceFileReference
- func (i *Record) Fields() []*RecordTypeField
- func (i *Record) FindField(name string) *RecordTypeField
- func (i *Record) Name() string
- func (i *Record) String() string
- func (i *Record) TypeParameters() []*TypeParameter
- type RecordLiteral
- func (i *RecordLiteral) DebugString() string
- func (i *RecordLiteral) FetchPositionLength() token.SourceFileReference
- func (i *RecordLiteral) ParseOrderedAssignments() []*RecordLiteralFieldAssignment
- func (i *RecordLiteral) SortedAssignments() []*RecordLiteralFieldAssignment
- func (i *RecordLiteral) String() string
- func (i *RecordLiteral) TemplateExpression() Expression
- type RecordLiteralFieldAssignment
- type RecordTypeField
- type ResourceNameLiteral
- type ScopedOrNormalVariableIdentifier
- type SingleLineComment
- type SourceFile
- type Statement
- type StringInterpolation
- func (i *StringInterpolation) DebugString() string
- func (i *StringInterpolation) Expression() Expression
- func (i *StringInterpolation) FetchPositionLength() token.SourceFileReference
- func (i *StringInterpolation) ReferencedExpressions() []Expression
- func (i *StringInterpolation) String() string
- func (i *StringInterpolation) StringLiteral() token.StringToken
- type StringLiteral
- type TupleLiteral
- func (i *TupleLiteral) DebugString() string
- func (i *TupleLiteral) EndParenToken() token.ParenToken
- func (i *TupleLiteral) Expressions() []Expression
- func (i *TupleLiteral) FetchPositionLength() token.SourceFileReference
- func (i *TupleLiteral) StartParenToken() token.ParenToken
- func (i *TupleLiteral) String() string
- type TupleType
- func (i *TupleType) DebugString() string
- func (i *TupleType) DecoratedName() string
- func (i *TupleType) EndParen() token.ParenToken
- func (i *TupleType) FetchPositionLength() token.SourceFileReference
- func (i *TupleType) Name() string
- func (i *TupleType) StartParen() token.ParenToken
- func (i *TupleType) String() string
- func (i *TupleType) Types() []Type
- type Type
- type TypeId
- type TypeIdentifier
- func (i *TypeIdentifier) DebugString() string
- func (i *TypeIdentifier) FetchPositionLength() token.SourceFileReference
- func (i *TypeIdentifier) IsDefaultSymbol() bool
- func (i *TypeIdentifier) Name() string
- func (i *TypeIdentifier) String() string
- func (i *TypeIdentifier) Symbol() token.TypeSymbolToken
- type TypeIdentifierNormalOrScoped
- type TypeIdentifierScoped
- func (i *TypeIdentifierScoped) DebugString() string
- func (i *TypeIdentifierScoped) FetchPositionLength() token.SourceFileReference
- func (i *TypeIdentifierScoped) IsDefaultSymbol() bool
- func (i *TypeIdentifierScoped) ModuleReference() *ModuleReference
- func (i *TypeIdentifierScoped) Name() string
- func (i *TypeIdentifierScoped) String() string
- func (i *TypeIdentifierScoped) Symbol() *TypeIdentifier
- type TypeParameter
- type TypeParameterIdentifierContext
- type TypeReference
- func (i *TypeReference) Arguments() []Type
- func (i *TypeReference) DebugString() string
- func (i *TypeReference) DecoratedName() string
- func (i *TypeReference) FetchPositionLength() token.SourceFileReference
- func (i *TypeReference) Name() string
- func (i *TypeReference) SomeTypeIdentifier() TypeIdentifierNormalOrScoped
- func (i *TypeReference) String() string
- func (i *TypeReference) TypeIdentifier() *TypeIdentifier
- type TypeReferenceScoped
- func (i *TypeReferenceScoped) Arguments() []Type
- func (i *TypeReferenceScoped) DebugString() string
- func (i *TypeReferenceScoped) DecoratedName() string
- func (i *TypeReferenceScoped) FetchPositionLength() token.SourceFileReference
- func (i *TypeReferenceScoped) Name() string
- func (i *TypeReferenceScoped) SomeTypeIdentifier() TypeIdentifierNormalOrScoped
- func (i *TypeReferenceScoped) String() string
- func (i *TypeReferenceScoped) TypeResolver() *TypeIdentifierScoped
- type TypeReferenceScopedOrNormal
- type UnaryExpression
- func (i *UnaryExpression) DebugString() string
- func (i *UnaryExpression) FetchPositionLength() token.SourceFileReference
- func (i *UnaryExpression) Left() Expression
- func (i *UnaryExpression) OperatorToken() token.OperatorToken
- func (i *UnaryExpression) OperatorType() token.Type
- func (i *UnaryExpression) String() string
- type UndefinedTypeParameterError
- type UnmanagedType
- func (i *UnmanagedType) Comment() *MultilineComment
- func (i *UnmanagedType) FetchPositionLength() token.SourceFileReference
- func (i *UnmanagedType) Keyword() *TypeIdentifier
- func (i *UnmanagedType) Name() string
- func (i *UnmanagedType) NativeLanguageTypeName() *TypeIdentifier
- func (i *UnmanagedType) String() string
- type VariableIdentifier
- func (i *VariableIdentifier) DebugString() string
- func (i *VariableIdentifier) FetchPositionLength() token.SourceFileReference
- func (i *VariableIdentifier) IsIgnore() bool
- func (i *VariableIdentifier) Name() string
- func (i *VariableIdentifier) String() string
- func (i *VariableIdentifier) Symbol() token.VariableSymbolToken
- type VariableIdentifierScoped
- func (i *VariableIdentifierScoped) AstVariableReference() *VariableIdentifier
- func (i *VariableIdentifierScoped) DebugString() string
- func (i *VariableIdentifierScoped) FetchPositionLength() token.SourceFileReference
- func (i *VariableIdentifierScoped) ModuleReference() *ModuleReference
- func (i *VariableIdentifierScoped) Name() string
- func (i *VariableIdentifierScoped) String() string
- func (i *VariableIdentifierScoped) Symbol() token.VariableSymbolToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LinePaddingAfter ¶
func LinePaddingBefore ¶
func LinesToInsertBetween ¶
func LinesToInsertBetween(before Expression, now Expression) int
Types ¶
type Alias ¶
type Alias struct {
// contains filtered or unexported fields
}
func NewAlias ¶
func NewAlias(keywordType token.Keyword, keywordAlias token.Keyword, aliasName *TypeIdentifier, referenced Type, comment *MultilineComment) *Alias
func (*Alias) Comment ¶ added in v0.0.2
func (i *Alias) Comment() *MultilineComment
func (*Alias) DebugString ¶
func (*Alias) DecoratedName ¶
func (*Alias) FetchPositionLength ¶
func (i *Alias) FetchPositionLength() token.SourceFileReference
func (*Alias) Identifier ¶
func (i *Alias) Identifier() *TypeIdentifier
func (*Alias) KeywordAlias ¶
func (*Alias) KeywordType ¶
func (*Alias) ReferencedType ¶
type AnyMatchingType ¶ added in v0.0.2
type AnyMatchingType struct {
// contains filtered or unexported fields
}
func NewAnyMatchingType ¶ added in v0.0.2
func NewAnyMatchingType(operatorToken token.OperatorToken) *AnyMatchingType
func (*AnyMatchingType) AsteriskToken ¶ added in v0.0.2
func (i *AnyMatchingType) AsteriskToken() token.OperatorToken
func (*AnyMatchingType) FetchPositionLength ¶ added in v0.0.2
func (i *AnyMatchingType) FetchPositionLength() token.SourceFileReference
func (*AnyMatchingType) Name ¶ added in v0.0.2
func (i *AnyMatchingType) Name() string
func (*AnyMatchingType) String ¶ added in v0.0.2
func (i *AnyMatchingType) String() string
type ArrayLiteral ¶
type ArrayLiteral struct {
// contains filtered or unexported fields
}
func NewArrayLiteral ¶
func NewArrayLiteral(startListParen token.ParenToken, endListParen token.ParenToken, expressions []Expression) *ArrayLiteral
func (*ArrayLiteral) DebugString ¶
func (i *ArrayLiteral) DebugString() string
func (*ArrayLiteral) EndParenToken ¶
func (i *ArrayLiteral) EndParenToken() token.ParenToken
func (*ArrayLiteral) Expressions ¶
func (i *ArrayLiteral) Expressions() []Expression
func (*ArrayLiteral) FetchPositionLength ¶
func (i *ArrayLiteral) FetchPositionLength() token.SourceFileReference
func (*ArrayLiteral) StartParenToken ¶
func (i *ArrayLiteral) StartParenToken() token.ParenToken
func (*ArrayLiteral) String ¶
func (i *ArrayLiteral) String() string
type BinaryOperator ¶
type BinaryOperator struct {
// contains filtered or unexported fields
}
func NewBinaryOperator ¶
func NewBinaryOperator(token token.Token, operator token.OperatorToken, left Expression, right Expression) *BinaryOperator
func (*BinaryOperator) DebugString ¶
func (i *BinaryOperator) DebugString() string
func (*BinaryOperator) FetchPositionLength ¶
func (i *BinaryOperator) FetchPositionLength() token.SourceFileReference
func (*BinaryOperator) Left ¶
func (i *BinaryOperator) Left() Expression
func (*BinaryOperator) OperatorToken ¶
func (i *BinaryOperator) OperatorToken() token.OperatorToken
func (*BinaryOperator) OperatorType ¶
func (i *BinaryOperator) OperatorType() token.Type
func (*BinaryOperator) Right ¶
func (i *BinaryOperator) Right() Expression
func (*BinaryOperator) String ¶
func (i *BinaryOperator) String() string
func (*BinaryOperator) Token ¶
func (i *BinaryOperator) Token() token.Token
type BooleanLiteral ¶
type BooleanLiteral struct {
// contains filtered or unexported fields
}
func NewBooleanLiteral ¶
func NewBooleanLiteral(booleanToken token.BooleanToken) *BooleanLiteral
func (*BooleanLiteral) DebugString ¶
func (i *BooleanLiteral) DebugString() string
func (*BooleanLiteral) FetchPositionLength ¶
func (i *BooleanLiteral) FetchPositionLength() token.SourceFileReference
func (*BooleanLiteral) String ¶
func (i *BooleanLiteral) String() string
func (*BooleanLiteral) Token ¶
func (i *BooleanLiteral) Token() token.BooleanToken
func (*BooleanLiteral) Value ¶
func (i *BooleanLiteral) Value() bool
type ByAssignmentName ¶
type ByAssignmentName []*RecordLiteralFieldAssignment
func (ByAssignmentName) Len ¶
func (a ByAssignmentName) Len() int
func (ByAssignmentName) Less ¶
func (a ByAssignmentName) Less(i, j int) bool
func (ByAssignmentName) Swap ¶
func (a ByAssignmentName) Swap(i, j int)
type CaseConsequenceForCustomType ¶ added in v0.0.2
type CaseConsequenceForCustomType struct {
// contains filtered or unexported fields
}
func NewCaseConsequenceForCustomType ¶
func NewCaseConsequenceForCustomType(variantName *TypeIdentifier, arguments []*VariableIdentifier, expression Expression, comment token.Comment) *CaseConsequenceForCustomType
func (*CaseConsequenceForCustomType) Arguments ¶ added in v0.0.2
func (c *CaseConsequenceForCustomType) Arguments() []*VariableIdentifier
func (*CaseConsequenceForCustomType) Comment ¶ added in v0.0.2
func (c *CaseConsequenceForCustomType) Comment() token.Comment
func (*CaseConsequenceForCustomType) Expression ¶ added in v0.0.2
func (c *CaseConsequenceForCustomType) Expression() Expression
func (*CaseConsequenceForCustomType) Identifier ¶ added in v0.0.2
func (c *CaseConsequenceForCustomType) Identifier() *TypeIdentifier
func (*CaseConsequenceForCustomType) String ¶ added in v0.0.2
func (c *CaseConsequenceForCustomType) String() string
type CaseConsequencePatternMatching ¶
type CaseConsequencePatternMatching struct {
// contains filtered or unexported fields
}
func NewCaseConsequenceForPatternMatching ¶
func NewCaseConsequenceForPatternMatching(index int, literal Literal, expression Expression, comment token.Comment) *CaseConsequencePatternMatching
func (*CaseConsequencePatternMatching) Comment ¶ added in v0.0.2
func (c *CaseConsequencePatternMatching) Comment() token.Comment
func (*CaseConsequencePatternMatching) Expression ¶
func (c *CaseConsequencePatternMatching) Expression() Expression
func (*CaseConsequencePatternMatching) Index ¶
func (c *CaseConsequencePatternMatching) Index() int
func (*CaseConsequencePatternMatching) Literal ¶
func (c *CaseConsequencePatternMatching) Literal() Literal
func (*CaseConsequencePatternMatching) String ¶
func (c *CaseConsequencePatternMatching) String() string
type CaseForCustomType ¶ added in v0.0.2
type CaseForCustomType struct {
// contains filtered or unexported fields
}
func NewCaseForCustomType ¶
func NewCaseForCustomType(keywordCase token.Keyword, keywordOf token.Keyword, test Expression, cases []*CaseConsequenceForCustomType) *CaseForCustomType
func (*CaseForCustomType) Consequences ¶ added in v0.0.2
func (i *CaseForCustomType) Consequences() []*CaseConsequenceForCustomType
func (*CaseForCustomType) DebugString ¶ added in v0.0.2
func (i *CaseForCustomType) DebugString() string
func (*CaseForCustomType) FetchPositionLength ¶ added in v0.0.2
func (i *CaseForCustomType) FetchPositionLength() token.SourceFileReference
func (*CaseForCustomType) KeywordCase ¶ added in v0.0.2
func (i *CaseForCustomType) KeywordCase() token.Keyword
func (*CaseForCustomType) KeywordOf ¶ added in v0.0.2
func (i *CaseForCustomType) KeywordOf() token.Keyword
func (*CaseForCustomType) String ¶ added in v0.0.2
func (i *CaseForCustomType) String() string
func (*CaseForCustomType) Test ¶ added in v0.0.2
func (i *CaseForCustomType) Test() Expression
type CaseForPatternMatching ¶ added in v0.0.2
type CaseForPatternMatching struct {
// contains filtered or unexported fields
}
func NewCaseForPatternMatching ¶
func NewCaseForPatternMatching(keywordCase token.Keyword, keywordOf token.Keyword, test Expression, cases []*CaseConsequencePatternMatching) *CaseForPatternMatching
func (*CaseForPatternMatching) Consequences ¶ added in v0.0.2
func (i *CaseForPatternMatching) Consequences() []*CaseConsequencePatternMatching
func (*CaseForPatternMatching) DebugString ¶ added in v0.0.2
func (i *CaseForPatternMatching) DebugString() string
func (*CaseForPatternMatching) FetchPositionLength ¶ added in v0.0.2
func (i *CaseForPatternMatching) FetchPositionLength() token.SourceFileReference
func (*CaseForPatternMatching) KeywordCase ¶ added in v0.0.2
func (i *CaseForPatternMatching) KeywordCase() token.Keyword
func (*CaseForPatternMatching) KeywordOf ¶ added in v0.0.2
func (i *CaseForPatternMatching) KeywordOf() token.Keyword
func (*CaseForPatternMatching) String ¶ added in v0.0.2
func (i *CaseForPatternMatching) String() string
func (*CaseForPatternMatching) Test ¶ added in v0.0.2
func (i *CaseForPatternMatching) Test() Expression
type CharacterLiteral ¶
type CharacterLiteral struct { Token token.CharacterToken // contains filtered or unexported fields }
func NewCharacterConstant ¶
func NewCharacterConstant(t token.CharacterToken, v rune) *CharacterLiteral
func (*CharacterLiteral) CharacterToken ¶
func (i *CharacterLiteral) CharacterToken() token.CharacterToken
func (*CharacterLiteral) DebugString ¶
func (i *CharacterLiteral) DebugString() string
func (*CharacterLiteral) FetchPositionLength ¶
func (i *CharacterLiteral) FetchPositionLength() token.SourceFileReference
func (*CharacterLiteral) String ¶
func (i *CharacterLiteral) String() string
func (*CharacterLiteral) Value ¶
func (i *CharacterLiteral) Value() rune
type ConstantDefinition ¶ added in v0.0.4
type ConstantDefinition struct {
// contains filtered or unexported fields
}
func NewConstantDefinition ¶ added in v0.0.4
func NewConstantDefinition(identifier *VariableIdentifier, expression Expression, comment *MultilineComment) *ConstantDefinition
func (*ConstantDefinition) Comment ¶ added in v0.0.4
func (i *ConstantDefinition) Comment() *MultilineComment
func (*ConstantDefinition) DebugString ¶ added in v0.0.4
func (i *ConstantDefinition) DebugString() string
func (*ConstantDefinition) Expression ¶ added in v0.0.4
func (i *ConstantDefinition) Expression() Expression
func (*ConstantDefinition) FetchPositionLength ¶ added in v0.0.4
func (i *ConstantDefinition) FetchPositionLength() token.SourceFileReference
func (*ConstantDefinition) Identifier ¶ added in v0.0.4
func (i *ConstantDefinition) Identifier() *VariableIdentifier
func (*ConstantDefinition) String ¶ added in v0.0.4
func (i *ConstantDefinition) String() string
type ConstantOrLiteral ¶ added in v0.0.4
type ConstructorCall ¶
type ConstructorCall struct {
// contains filtered or unexported fields
}
func NewConstructorCall ¶
func NewConstructorCall(functionValue TypeReferenceScopedOrNormal, arguments []Expression) *ConstructorCall
func (*ConstructorCall) Arguments ¶
func (i *ConstructorCall) Arguments() []Expression
func (*ConstructorCall) DebugString ¶
func (i *ConstructorCall) DebugString() string
func (*ConstructorCall) FetchPositionLength ¶
func (i *ConstructorCall) FetchPositionLength() token.SourceFileReference
func (*ConstructorCall) OverwriteArguments ¶
func (i *ConstructorCall) OverwriteArguments(args []Expression)
func (*ConstructorCall) String ¶
func (i *ConstructorCall) String() string
func (*ConstructorCall) TypeReference ¶
func (i *ConstructorCall) TypeReference() TypeReferenceScopedOrNormal
type CustomType ¶
type CustomType struct {
// contains filtered or unexported fields
}
func NewCustomType ¶
func NewCustomType(keywordType token.Keyword, customTypeName *TypeIdentifier, variants []*CustomTypeVariant, typeParameterIdentifiers []*TypeParameter, comment *MultilineComment) *CustomType
func (*CustomType) Comment ¶ added in v0.0.2
func (i *CustomType) Comment() *MultilineComment
func (*CustomType) DebugString ¶ added in v0.0.2
func (i *CustomType) DebugString() string
func (*CustomType) FetchPositionLength ¶
func (i *CustomType) FetchPositionLength() token.SourceFileReference
func (*CustomType) FindAllLocalTypes ¶
func (i *CustomType) FindAllLocalTypes() []*TypeParameter
func (*CustomType) Identifier ¶
func (i *CustomType) Identifier() *TypeIdentifier
func (*CustomType) KeywordType ¶
func (i *CustomType) KeywordType() token.Keyword
func (*CustomType) Name ¶
func (i *CustomType) Name() string
func (*CustomType) String ¶
func (i *CustomType) String() string
func (*CustomType) Variants ¶
func (i *CustomType) Variants() []*CustomTypeVariant
type CustomTypeVariant ¶
type CustomTypeVariant struct {
// contains filtered or unexported fields
}
func NewCustomTypeVariant ¶
func NewCustomTypeVariant(index int, typeIdentifier *TypeIdentifier, userTypes []Type, comment token.Comment) *CustomTypeVariant
func (*CustomTypeVariant) Comment ¶ added in v0.0.2
func (i *CustomTypeVariant) Comment() token.Comment
func (*CustomTypeVariant) FetchPositionLength ¶ added in v0.0.2
func (i *CustomTypeVariant) FetchPositionLength() token.SourceFileReference
func (*CustomTypeVariant) Index ¶
func (i *CustomTypeVariant) Index() int
func (*CustomTypeVariant) Name ¶
func (i *CustomTypeVariant) Name() string
func (*CustomTypeVariant) Parent ¶
func (i *CustomTypeVariant) Parent() *CustomType
func (*CustomTypeVariant) SetParent ¶
func (i *CustomTypeVariant) SetParent(parent *CustomType)
func (*CustomTypeVariant) String ¶
func (i *CustomTypeVariant) String() string
func (*CustomTypeVariant) TypeIdentifier ¶
func (i *CustomTypeVariant) TypeIdentifier() *TypeIdentifier
func (*CustomTypeVariant) Types ¶
func (i *CustomTypeVariant) Types() []Type
type Expression ¶
type ExternalFunctionExpression ¶ added in v0.0.4
type ExternalFunctionExpression struct {
// contains filtered or unexported fields
}
func NewExternalFunctionExpression ¶ added in v0.0.4
func NewExternalFunctionExpression(posLen token.SourceFileReference) *ExternalFunctionExpression
func (*ExternalFunctionExpression) DebugString ¶ added in v0.0.4
func (d *ExternalFunctionExpression) DebugString() string
func (*ExternalFunctionExpression) FetchPositionLength ¶ added in v0.0.4
func (d *ExternalFunctionExpression) FetchPositionLength() token.SourceFileReference
func (*ExternalFunctionExpression) String ¶ added in v0.0.4
func (d *ExternalFunctionExpression) String() string
type ExtraTypeParameterError ¶
type ExtraTypeParameterError struct {
// contains filtered or unexported fields
}
func NewExtraTypeParameterError ¶
func NewExtraTypeParameterError(extraParameter *TypeParameter, searchedType Type) *ExtraTypeParameterError
func (*ExtraTypeParameterError) Error ¶
func (e *ExtraTypeParameterError) Error() string
func (*ExtraTypeParameterError) FetchPositionLength ¶
func (e *ExtraTypeParameterError) FetchPositionLength() token.SourceFileReference
type FixedLiteral ¶
type FixedLiteral struct { Token token.NumberToken // contains filtered or unexported fields }
func NewFixedLiteral ¶
func NewFixedLiteral(token token.NumberToken, v int32) *FixedLiteral
func (*FixedLiteral) DebugString ¶
func (i *FixedLiteral) DebugString() string
func (*FixedLiteral) FetchPositionLength ¶
func (i *FixedLiteral) FetchPositionLength() token.SourceFileReference
func (*FixedLiteral) String ¶
func (i *FixedLiteral) String() string
func (*FixedLiteral) Value ¶
func (i *FixedLiteral) Value() int32
type FunctionCall ¶
type FunctionCall struct {
// contains filtered or unexported fields
}
func NewFunctionCall ¶
func NewFunctionCall(functionExpression Expression, arguments []Expression) *FunctionCall
func (*FunctionCall) AppendArgument ¶
func (i *FunctionCall) AppendArgument(arg Expression)
func (*FunctionCall) Arguments ¶
func (i *FunctionCall) Arguments() []Expression
func (*FunctionCall) DebugString ¶
func (i *FunctionCall) DebugString() string
func (*FunctionCall) FetchPositionLength ¶
func (i *FunctionCall) FetchPositionLength() token.SourceFileReference
func (*FunctionCall) FunctionExpression ¶
func (i *FunctionCall) FunctionExpression() Expression
func (*FunctionCall) OverwriteArguments ¶
func (i *FunctionCall) OverwriteArguments(args []Expression)
func (*FunctionCall) String ¶
func (i *FunctionCall) String() string
type FunctionCaller ¶
type FunctionCaller interface { Arguments() []Expression OverwriteArguments(args []Expression) String() string DebugString() string FetchPositionLength() token.SourceFileReference }
type FunctionDeclarationExpression ¶ added in v0.0.12
type FunctionDeclarationExpression struct {
// contains filtered or unexported fields
}
func NewFunctionDeclarationExpression ¶ added in v0.0.12
func NewFunctionDeclarationExpression(debugAssignedValue token.VariableSymbolToken, annotationFunctionType token.AnnotationFunctionType) *FunctionDeclarationExpression
func (*FunctionDeclarationExpression) AnnotationFunctionType ¶ added in v0.0.12
func (i *FunctionDeclarationExpression) AnnotationFunctionType() token.AnnotationFunctionType
func (*FunctionDeclarationExpression) DebugString ¶ added in v0.0.12
func (i *FunctionDeclarationExpression) DebugString() string
func (*FunctionDeclarationExpression) FetchPositionLength ¶ added in v0.0.12
func (i *FunctionDeclarationExpression) FetchPositionLength() token.SourceFileReference
func (*FunctionDeclarationExpression) IsExternalVarExFunction ¶ added in v0.0.12
func (f *FunctionDeclarationExpression) IsExternalVarExFunction() bool
func (*FunctionDeclarationExpression) IsExternalVarFunction ¶ added in v0.0.12
func (f *FunctionDeclarationExpression) IsExternalVarFunction() bool
func (*FunctionDeclarationExpression) IsSomeKindOfExternal ¶ added in v0.0.12
func (i *FunctionDeclarationExpression) IsSomeKindOfExternal() bool
func (*FunctionDeclarationExpression) String ¶ added in v0.0.12
func (i *FunctionDeclarationExpression) String() string
type FunctionParameter ¶ added in v0.0.12
type FunctionParameter struct {
// contains filtered or unexported fields
}
func NewFunctionParameter ¶ added in v0.0.12
func NewFunctionParameter(identifier *VariableIdentifier, parameterType Type) *FunctionParameter
func (*FunctionParameter) DebugString ¶ added in v0.0.12
func (i *FunctionParameter) DebugString() string
func (*FunctionParameter) FetchPositionLength ¶ added in v0.0.12
func (i *FunctionParameter) FetchPositionLength() token.SourceFileReference
func (*FunctionParameter) Identifier ¶ added in v0.0.12
func (i *FunctionParameter) Identifier() *VariableIdentifier
func (*FunctionParameter) IsIgnore ¶ added in v0.0.12
func (i *FunctionParameter) IsIgnore() bool
func (*FunctionParameter) Name ¶ added in v0.0.12
func (i *FunctionParameter) Name() string
func (*FunctionParameter) String ¶ added in v0.0.12
func (i *FunctionParameter) String() string
func (*FunctionParameter) Type ¶ added in v0.0.12
func (i *FunctionParameter) Type() Type
type FunctionType ¶
type FunctionType struct {
// contains filtered or unexported fields
}
func NewFunctionType ¶
func NewFunctionType(functionParameters []Type) *FunctionType
func (*FunctionType) FetchPositionLength ¶
func (i *FunctionType) FetchPositionLength() token.SourceFileReference
func (*FunctionType) FunctionParameters ¶
func (i *FunctionType) FunctionParameters() []Type
func (*FunctionType) Name ¶
func (i *FunctionType) Name() string
func (*FunctionType) String ¶
func (i *FunctionType) String() string
type FunctionValue ¶
type FunctionValue struct {
// contains filtered or unexported fields
}
func NewFunctionValue ¶
func NewFunctionValue(debugAssignedValue token.VariableSymbolToken, parameters []*FunctionParameter, returnType Type, expression Expression, commentBlock *MultilineComment) *FunctionValue
func (*FunctionValue) CommentBlock ¶
func (i *FunctionValue) CommentBlock() *MultilineComment
func (*FunctionValue) DebugFunctionIdentifier ¶
func (i *FunctionValue) DebugFunctionIdentifier() token.VariableSymbolToken
func (*FunctionValue) DebugString ¶
func (i *FunctionValue) DebugString() string
func (*FunctionValue) Expression ¶
func (i *FunctionValue) Expression() Expression
func (*FunctionValue) FetchPositionLength ¶
func (i *FunctionValue) FetchPositionLength() token.SourceFileReference
func (*FunctionValue) Parameters ¶
func (i *FunctionValue) Parameters() []*FunctionParameter
func (*FunctionValue) String ¶
func (i *FunctionValue) String() string
func (*FunctionValue) Type ¶ added in v0.0.12
func (i *FunctionValue) Type() Type
type FunctionValueNamedDefinition ¶
type FunctionValueNamedDefinition struct {
// contains filtered or unexported fields
}
func NewFunctionValueNamedDefinition ¶
func NewFunctionValueNamedDefinition(identifier *VariableIdentifier, functionValue *FunctionValue) *FunctionValueNamedDefinition
func (*FunctionValueNamedDefinition) DebugString ¶
func (i *FunctionValueNamedDefinition) DebugString() string
func (*FunctionValueNamedDefinition) FetchPositionLength ¶
func (i *FunctionValueNamedDefinition) FetchPositionLength() token.SourceFileReference
func (*FunctionValueNamedDefinition) FunctionValue ¶
func (i *FunctionValueNamedDefinition) FunctionValue() *FunctionValue
func (*FunctionValueNamedDefinition) Identifier ¶
func (i *FunctionValueNamedDefinition) Identifier() *VariableIdentifier
func (*FunctionValueNamedDefinition) String ¶
func (i *FunctionValueNamedDefinition) String() string
type GuardDefault ¶
type GuardDefault struct {
GuardItemBasic
}
func (*GuardDefault) String ¶ added in v0.0.12
func (i *GuardDefault) String() string
type GuardExpression ¶
type GuardExpression struct {
// contains filtered or unexported fields
}
func NewGuardExpression ¶
func NewGuardExpression(items []GuardItem, defaultItem *GuardDefault) *GuardExpression
func (*GuardExpression) DebugString ¶
func (i *GuardExpression) DebugString() string
func (*GuardExpression) Default ¶
func (i *GuardExpression) Default() *GuardDefault
func (*GuardExpression) FetchPositionLength ¶
func (i *GuardExpression) FetchPositionLength() token.SourceFileReference
func (*GuardExpression) Items ¶
func (i *GuardExpression) Items() []GuardItem
func (*GuardExpression) String ¶
func (i *GuardExpression) String() string
type GuardItem ¶
type GuardItem struct { GuardItemBasic Condition Expression }
type GuardItemBasic ¶
type GuardItemBasic struct { Comment token.Comment Consequence Expression GuardToken token.GuardToken }
func NewGuardItemBasic ¶ added in v0.0.2
func NewGuardItemBasic(comment token.Comment, guardToken token.GuardToken, consequence Expression) GuardItemBasic
func (GuardItemBasic) String ¶ added in v0.0.12
func (i GuardItemBasic) String() string
type IfExpression ¶
type IfExpression struct {
// contains filtered or unexported fields
}
func NewIfExpression ¶
func NewIfExpression(keywordIf token.Keyword, keywordThen token.Keyword, keywordElse token.Keyword, condition Expression, consequence Expression, alternative Expression) *IfExpression
func (*IfExpression) Alternative ¶
func (i *IfExpression) Alternative() Expression
func (*IfExpression) Condition ¶
func (i *IfExpression) Condition() Expression
func (*IfExpression) Consequence ¶
func (i *IfExpression) Consequence() Expression
func (*IfExpression) DebugString ¶
func (i *IfExpression) DebugString() string
func (*IfExpression) FetchPositionLength ¶
func (i *IfExpression) FetchPositionLength() token.SourceFileReference
func (*IfExpression) KeywordElse ¶
func (i *IfExpression) KeywordElse() token.Keyword
func (*IfExpression) KeywordIf ¶
func (i *IfExpression) KeywordIf() token.Keyword
func (*IfExpression) KeywordThen ¶
func (i *IfExpression) KeywordThen() token.Keyword
func (*IfExpression) String ¶
func (i *IfExpression) String() string
type Import ¶
type Import struct {
// contains filtered or unexported fields
}
func NewImport ¶
func NewImport(keywordImport token.Keyword, keywordAs *token.Keyword, keywordExposing *token.Keyword, moduleReference *ModuleReference, optionalAlias *TypeIdentifier, typesToExpose []*TypeIdentifier, definitionsToExpose []*VariableIdentifier, exposeAll bool, precedingComments *MultilineComment) *Import
func (*Import) Alias ¶
func (i *Import) Alias() *TypeIdentifier
func (*Import) DebugString ¶
func (*Import) FetchPositionLength ¶
func (i *Import) FetchPositionLength() token.SourceFileReference
func (*Import) KeywordExposing ¶
func (*Import) KeywordImport ¶
func (*Import) ModuleName ¶
func (i *Import) ModuleName() *ModuleReference
type IntegerLiteral ¶
type IntegerLiteral struct { Token token.NumberToken // contains filtered or unexported fields }
func NewIntegerLiteral ¶
func NewIntegerLiteral(token token.NumberToken, v int32) *IntegerLiteral
func (*IntegerLiteral) DebugString ¶
func (i *IntegerLiteral) DebugString() string
func (*IntegerLiteral) FetchPositionLength ¶
func (i *IntegerLiteral) FetchPositionLength() token.SourceFileReference
func (*IntegerLiteral) String ¶
func (i *IntegerLiteral) String() string
func (*IntegerLiteral) Value ¶
func (i *IntegerLiteral) Value() int32
type Let ¶
type Let struct {
// contains filtered or unexported fields
}
func NewLet ¶
func NewLet(keyword token.Keyword, inKeyword token.Keyword, assignments []LetAssignment, consequence Expression) *Let
func (*Let) Assignments ¶
func (i *Let) Assignments() []LetAssignment
func (*Let) Consequence ¶
func (i *Let) Consequence() Expression
func (*Let) DebugString ¶
func (*Let) FetchPositionLength ¶
func (i *Let) FetchPositionLength() token.SourceFileReference
type LetAssignment ¶
type LetAssignment struct {
// contains filtered or unexported fields
}
func NewLetAssignment ¶
func NewLetAssignment(wasRecordDestructuring bool, identifiers []*VariableIdentifier, expression Expression, comment *MultilineComment) LetAssignment
func (LetAssignment) CommentBlock ¶
func (l LetAssignment) CommentBlock() *MultilineComment
func (LetAssignment) Expression ¶
func (l LetAssignment) Expression() Expression
func (LetAssignment) FetchPositionLength ¶
func (l LetAssignment) FetchPositionLength() token.SourceFileReference
func (LetAssignment) Identifiers ¶ added in v0.0.2
func (l LetAssignment) Identifiers() []*VariableIdentifier
func (LetAssignment) String ¶
func (l LetAssignment) String() string
func (LetAssignment) WasRecordDestructuring ¶ added in v0.0.4
func (l LetAssignment) WasRecordDestructuring() bool
type ListLiteral ¶
type ListLiteral struct {
// contains filtered or unexported fields
}
func NewListLiteral ¶
func NewListLiteral(startListParen token.ParenToken, endListParen token.ParenToken, expressions []Expression) *ListLiteral
func (*ListLiteral) DebugString ¶
func (i *ListLiteral) DebugString() string
func (*ListLiteral) EndParenToken ¶
func (i *ListLiteral) EndParenToken() token.ParenToken
func (*ListLiteral) Expressions ¶
func (i *ListLiteral) Expressions() []Expression
func (*ListLiteral) FetchPositionLength ¶
func (i *ListLiteral) FetchPositionLength() token.SourceFileReference
func (*ListLiteral) StartParenToken ¶
func (i *ListLiteral) StartParenToken() token.ParenToken
func (*ListLiteral) String ¶
func (i *ListLiteral) String() string
type Literal ¶
type Literal = Expression
type LocalComment ¶
type LocalComment struct { Singleline *SingleLineComment Multiline *MultilineComment }
type LocalType ¶
type LocalType struct {
// contains filtered or unexported fields
}
func NewLocalType ¶
func NewLocalType(typeArgument *TypeParameter) *LocalType
func (*LocalType) FetchPositionLength ¶
func (i *LocalType) FetchPositionLength() token.SourceFileReference
func (*LocalType) TypeParameter ¶
func (i *LocalType) TypeParameter() *TypeParameter
type Lookups ¶
type Lookups struct {
// contains filtered or unexported fields
}
func NewLookups ¶
func NewLookups(contextIdentifier *VariableIdentifier, identifiers []*VariableIdentifier) *Lookups
func (*Lookups) ContextIdentifier ¶
func (i *Lookups) ContextIdentifier() *VariableIdentifier
func (*Lookups) DebugString ¶
func (*Lookups) FetchPositionLength ¶
func (i *Lookups) FetchPositionLength() token.SourceFileReference
func (*Lookups) FieldNames ¶
func (i *Lookups) FieldNames() []*VariableIdentifier
type ModuleNamePart ¶
type ModuleNamePart struct {
// contains filtered or unexported fields
}
func NewModuleNamePart ¶
func NewModuleNamePart(part *TypeIdentifier) *ModuleNamePart
func (*ModuleNamePart) FetchPositionLength ¶
func (m *ModuleNamePart) FetchPositionLength() token.SourceFileReference
func (*ModuleNamePart) Name ¶
func (m *ModuleNamePart) Name() string
func (*ModuleNamePart) String ¶
func (m *ModuleNamePart) String() string
func (*ModuleNamePart) TypeIdentifier ¶
func (m *ModuleNamePart) TypeIdentifier() *TypeIdentifier
type ModuleReference ¶
type ModuleReference struct {
// contains filtered or unexported fields
}
func NewModuleReference ¶
func NewModuleReference(parts []*ModuleNamePart) *ModuleReference
func (*ModuleReference) FetchPositionLength ¶
func (m *ModuleReference) FetchPositionLength() token.SourceFileReference
func (*ModuleReference) First ¶
func (m *ModuleReference) First() *ModuleNamePart
func (*ModuleReference) Last ¶
func (m *ModuleReference) Last() *ModuleNamePart
func (*ModuleReference) ModuleName ¶
func (m *ModuleReference) ModuleName() string
func (*ModuleReference) Parts ¶
func (m *ModuleReference) Parts() []*ModuleNamePart
func (*ModuleReference) Prefix ¶ added in v0.0.4
func (m *ModuleReference) Prefix() []*ModuleNamePart
func (*ModuleReference) String ¶
func (m *ModuleReference) String() string
type MultilineComment ¶
type MultilineComment struct {
// contains filtered or unexported fields
}
func CommentBlockToAst ¶ added in v0.0.2
func CommentBlockToAst(comments token.CommentBlock) []*MultilineComment
func NewMultilineComment ¶
func NewMultilineComment(commentToken token.MultiLineCommentToken) *MultilineComment
func (*MultilineComment) DebugString ¶
func (i *MultilineComment) DebugString() string
func (*MultilineComment) FetchPositionLength ¶
func (i *MultilineComment) FetchPositionLength() token.SourceFileReference
func (*MultilineComment) PositionLength ¶
func (i *MultilineComment) PositionLength() token.Range
func (*MultilineComment) String ¶
func (i *MultilineComment) String() string
func (*MultilineComment) Token ¶
func (i *MultilineComment) Token() token.MultiLineCommentToken
func (*MultilineComment) Value ¶
func (i *MultilineComment) Value() string
type Node ¶
type Node interface { FetchPositionLength() token.SourceFileReference String() string }
type Record ¶
type Record struct {
// contains filtered or unexported fields
}
func NewRecordType ¶
func NewRecordType(startParen token.ParenToken, endParen token.ParenToken, fields []*RecordTypeField, typeParameters []*TypeParameter, comment *MultilineComment) *Record
func (*Record) Comment ¶ added in v0.0.2
func (i *Record) Comment() *MultilineComment
func (*Record) FetchPositionLength ¶
func (i *Record) FetchPositionLength() token.SourceFileReference
func (*Record) Fields ¶
func (i *Record) Fields() []*RecordTypeField
func (*Record) FindField ¶
func (i *Record) FindField(name string) *RecordTypeField
func (*Record) TypeParameters ¶
func (i *Record) TypeParameters() []*TypeParameter
type RecordLiteral ¶
type RecordLiteral struct {
// contains filtered or unexported fields
}
func NewRecordLiteral ¶
func NewRecordLiteral(parenToken token.ParenToken, templateExpression Expression, assignments []*RecordLiteralFieldAssignment) *RecordLiteral
func (*RecordLiteral) DebugString ¶
func (i *RecordLiteral) DebugString() string
func (*RecordLiteral) FetchPositionLength ¶
func (i *RecordLiteral) FetchPositionLength() token.SourceFileReference
func (*RecordLiteral) ParseOrderedAssignments ¶
func (i *RecordLiteral) ParseOrderedAssignments() []*RecordLiteralFieldAssignment
func (*RecordLiteral) SortedAssignments ¶
func (i *RecordLiteral) SortedAssignments() []*RecordLiteralFieldAssignment
func (*RecordLiteral) String ¶
func (i *RecordLiteral) String() string
func (*RecordLiteral) TemplateExpression ¶
func (i *RecordLiteral) TemplateExpression() Expression
type RecordLiteralFieldAssignment ¶
type RecordLiteralFieldAssignment struct {
// contains filtered or unexported fields
}
func NewRecordLiteralFieldAssignment ¶
func NewRecordLiteralFieldAssignment(identifier *VariableIdentifier, expression Expression) *RecordLiteralFieldAssignment
func (*RecordLiteralFieldAssignment) DebugString ¶
func (i *RecordLiteralFieldAssignment) DebugString() string
func (*RecordLiteralFieldAssignment) Expression ¶
func (i *RecordLiteralFieldAssignment) Expression() Expression
func (*RecordLiteralFieldAssignment) Identifier ¶
func (i *RecordLiteralFieldAssignment) Identifier() *VariableIdentifier
func (*RecordLiteralFieldAssignment) String ¶
func (i *RecordLiteralFieldAssignment) String() string
type RecordTypeField ¶ added in v0.0.2
type RecordTypeField struct {
// contains filtered or unexported fields
}
func NewRecordTypeField ¶
func NewRecordTypeField(index int, variable *VariableIdentifier, userType Type, precedingComments *MultilineComment) *RecordTypeField
func (*RecordTypeField) Comment ¶ added in v0.0.2
func (i *RecordTypeField) Comment() *MultilineComment
func (*RecordTypeField) FieldIndex ¶ added in v0.0.2
func (i *RecordTypeField) FieldIndex() int
func (*RecordTypeField) Name ¶ added in v0.0.2
func (i *RecordTypeField) Name() string
func (*RecordTypeField) String ¶ added in v0.0.2
func (i *RecordTypeField) String() string
func (*RecordTypeField) Type ¶ added in v0.0.2
func (i *RecordTypeField) Type() Type
func (*RecordTypeField) VariableIdentifier ¶ added in v0.0.2
func (i *RecordTypeField) VariableIdentifier() *VariableIdentifier
type ResourceNameLiteral ¶
type ResourceNameLiteral struct { Token token.ResourceName // contains filtered or unexported fields }
func NewResourceNameLiteral ¶
func NewResourceNameLiteral(t token.ResourceName, v string) *ResourceNameLiteral
func (*ResourceNameLiteral) DebugString ¶
func (i *ResourceNameLiteral) DebugString() string
func (*ResourceNameLiteral) FetchPositionLength ¶
func (i *ResourceNameLiteral) FetchPositionLength() token.SourceFileReference
func (*ResourceNameLiteral) String ¶
func (i *ResourceNameLiteral) String() string
func (*ResourceNameLiteral) StringToken ¶
func (i *ResourceNameLiteral) StringToken() token.ResourceName
func (*ResourceNameLiteral) Value ¶
func (i *ResourceNameLiteral) Value() string
type ScopedOrNormalVariableIdentifier ¶
type ScopedOrNormalVariableIdentifier interface { Symbol() token.VariableSymbolToken FetchPositionLength() token.SourceFileReference Name() string }
type SingleLineComment ¶
type SingleLineComment struct {
// contains filtered or unexported fields
}
func NewSingleLineComment ¶
func NewSingleLineComment(commentToken token.SingleLineCommentToken) *SingleLineComment
func (*SingleLineComment) DebugString ¶
func (i *SingleLineComment) DebugString() string
func (*SingleLineComment) FetchPositionLength ¶
func (i *SingleLineComment) FetchPositionLength() token.SourceFileReference
func (*SingleLineComment) PositionLength ¶
func (i *SingleLineComment) PositionLength() token.Range
func (*SingleLineComment) String ¶
func (i *SingleLineComment) String() string
func (*SingleLineComment) Value ¶
func (i *SingleLineComment) Value() string
type SourceFile ¶
type SourceFile struct {
// contains filtered or unexported fields
}
func NewSourceFile ¶
func NewSourceFile(expressions []Expression) *SourceFile
func (*SourceFile) DebugString ¶
func (p *SourceFile) DebugString() string
func (*SourceFile) Nodes ¶
func (p *SourceFile) Nodes() []Node
func (*SourceFile) SetNodes ¶
func (p *SourceFile) SetNodes(nodes []Node)
func (*SourceFile) Statements ¶
func (p *SourceFile) Statements() []Expression
func (*SourceFile) String ¶
func (p *SourceFile) String() string
type StringInterpolation ¶
type StringInterpolation struct {
// contains filtered or unexported fields
}
func NewStringInterpolation ¶
func NewStringInterpolation(stringToken token.StringToken, expression Expression, referencedExpressions []Expression) *StringInterpolation
func (*StringInterpolation) DebugString ¶
func (i *StringInterpolation) DebugString() string
func (*StringInterpolation) Expression ¶
func (i *StringInterpolation) Expression() Expression
func (*StringInterpolation) FetchPositionLength ¶
func (i *StringInterpolation) FetchPositionLength() token.SourceFileReference
func (*StringInterpolation) ReferencedExpressions ¶ added in v0.0.5
func (i *StringInterpolation) ReferencedExpressions() []Expression
func (*StringInterpolation) String ¶
func (i *StringInterpolation) String() string
func (*StringInterpolation) StringLiteral ¶
func (i *StringInterpolation) StringLiteral() token.StringToken
type StringLiteral ¶
type StringLiteral struct {
Token token.StringToken
}
func NewStringLiteral ¶ added in v0.0.5
func NewStringLiteral(t token.StringToken) *StringLiteral
func (*StringLiteral) DebugString ¶
func (i *StringLiteral) DebugString() string
func (*StringLiteral) FetchPositionLength ¶
func (i *StringLiteral) FetchPositionLength() token.SourceFileReference
func (*StringLiteral) String ¶
func (i *StringLiteral) String() string
func (*StringLiteral) StringToken ¶
func (i *StringLiteral) StringToken() token.StringToken
func (*StringLiteral) Value ¶
func (i *StringLiteral) Value() string
type TupleLiteral ¶ added in v0.0.2
type TupleLiteral struct {
// contains filtered or unexported fields
}
func NewTupleLiteral ¶ added in v0.0.2
func NewTupleLiteral(startListParen token.ParenToken, endListParen token.ParenToken, expressions []Expression) *TupleLiteral
func (*TupleLiteral) DebugString ¶ added in v0.0.2
func (i *TupleLiteral) DebugString() string
func (*TupleLiteral) EndParenToken ¶ added in v0.0.2
func (i *TupleLiteral) EndParenToken() token.ParenToken
func (*TupleLiteral) Expressions ¶ added in v0.0.2
func (i *TupleLiteral) Expressions() []Expression
func (*TupleLiteral) FetchPositionLength ¶ added in v0.0.2
func (i *TupleLiteral) FetchPositionLength() token.SourceFileReference
func (*TupleLiteral) StartParenToken ¶ added in v0.0.2
func (i *TupleLiteral) StartParenToken() token.ParenToken
func (*TupleLiteral) String ¶ added in v0.0.2
func (i *TupleLiteral) String() string
type TupleType ¶ added in v0.0.2
type TupleType struct {
// contains filtered or unexported fields
}
func NewTupleType ¶ added in v0.0.2
func NewTupleType(startParen token.ParenToken, endParen token.ParenToken, types []Type) *TupleType
func (*TupleType) DebugString ¶ added in v0.0.2
func (*TupleType) DecoratedName ¶ added in v0.0.2
func (*TupleType) EndParen ¶ added in v0.0.2
func (i *TupleType) EndParen() token.ParenToken
func (*TupleType) FetchPositionLength ¶ added in v0.0.2
func (i *TupleType) FetchPositionLength() token.SourceFileReference
func (*TupleType) StartParen ¶ added in v0.0.2
func (i *TupleType) StartParen() token.ParenToken
type Type ¶
type Type interface { Name() string String() string FetchPositionLength() token.SourceFileReference }
type TypeId ¶
type TypeId struct {
// contains filtered or unexported fields
}
func NewTypeId ¶
func NewTypeId(typeIdToken token.TypeId, typeIdentifier TypeIdentifierNormalOrScoped) *TypeId
func (*TypeId) DebugString ¶
func (*TypeId) FetchPositionLength ¶
func (i *TypeId) FetchPositionLength() token.SourceFileReference
func (*TypeId) TypeIdentifier ¶ added in v0.0.2
func (i *TypeId) TypeIdentifier() TypeIdentifierNormalOrScoped
type TypeIdentifier ¶
type TypeIdentifier struct {
// contains filtered or unexported fields
}
func NewTypeIdentifier ¶
func NewTypeIdentifier(symbolToken token.TypeSymbolToken) *TypeIdentifier
func (*TypeIdentifier) DebugString ¶
func (i *TypeIdentifier) DebugString() string
func (*TypeIdentifier) FetchPositionLength ¶
func (i *TypeIdentifier) FetchPositionLength() token.SourceFileReference
func (*TypeIdentifier) IsDefaultSymbol ¶
func (i *TypeIdentifier) IsDefaultSymbol() bool
func (*TypeIdentifier) Name ¶
func (i *TypeIdentifier) Name() string
func (*TypeIdentifier) String ¶
func (i *TypeIdentifier) String() string
func (*TypeIdentifier) Symbol ¶
func (i *TypeIdentifier) Symbol() token.TypeSymbolToken
type TypeIdentifierNormalOrScoped ¶
type TypeIdentifierNormalOrScoped interface { IsDefaultSymbol() bool FetchPositionLength() token.SourceFileReference Name() string }
type TypeIdentifierScoped ¶
type TypeIdentifierScoped struct {
// contains filtered or unexported fields
}
func NewQualifiedTypeIdentifierScoped ¶
func NewQualifiedTypeIdentifierScoped(moduleReference *ModuleReference, identifier *TypeIdentifier) *TypeIdentifierScoped
func (*TypeIdentifierScoped) DebugString ¶
func (i *TypeIdentifierScoped) DebugString() string
func (*TypeIdentifierScoped) FetchPositionLength ¶
func (i *TypeIdentifierScoped) FetchPositionLength() token.SourceFileReference
func (*TypeIdentifierScoped) IsDefaultSymbol ¶
func (i *TypeIdentifierScoped) IsDefaultSymbol() bool
func (*TypeIdentifierScoped) ModuleReference ¶
func (i *TypeIdentifierScoped) ModuleReference() *ModuleReference
func (*TypeIdentifierScoped) Name ¶
func (i *TypeIdentifierScoped) Name() string
func (*TypeIdentifierScoped) String ¶
func (i *TypeIdentifierScoped) String() string
func (*TypeIdentifierScoped) Symbol ¶
func (i *TypeIdentifierScoped) Symbol() *TypeIdentifier
type TypeParameter ¶
type TypeParameter struct {
// contains filtered or unexported fields
}
func NewTypeParameter ¶
func NewTypeParameter(ident *VariableIdentifier) *TypeParameter
func (*TypeParameter) FetchPositionLength ¶
func (t *TypeParameter) FetchPositionLength() token.SourceFileReference
func (*TypeParameter) Identifier ¶
func (t *TypeParameter) Identifier() *VariableIdentifier
func (*TypeParameter) Name ¶
func (t *TypeParameter) Name() string
func (*TypeParameter) String ¶
func (t *TypeParameter) String() string
type TypeParameterIdentifierContext ¶
type TypeParameterIdentifierContext struct {
// contains filtered or unexported fields
}
func NewTypeParameterIdentifierContext ¶
func NewTypeParameterIdentifierContext(typeParameterIdentifiers []*TypeParameter) *TypeParameterIdentifierContext
func (*TypeParameterIdentifierContext) AllTypeParameters ¶
func (t *TypeParameterIdentifierContext) AllTypeParameters() []*TypeParameter
func (*TypeParameterIdentifierContext) HasTypeParameter ¶
func (t *TypeParameterIdentifierContext) HasTypeParameter(parameter *TypeParameter) bool
func (*TypeParameterIdentifierContext) String ¶
func (t *TypeParameterIdentifierContext) String() string
type TypeReference ¶
type TypeReference struct {
// contains filtered or unexported fields
}
func NewTypeReference ¶
func NewTypeReference(ident *TypeIdentifier, arguments []Type) *TypeReference
func (*TypeReference) Arguments ¶
func (i *TypeReference) Arguments() []Type
func (*TypeReference) DebugString ¶
func (i *TypeReference) DebugString() string
func (*TypeReference) DecoratedName ¶
func (i *TypeReference) DecoratedName() string
func (*TypeReference) FetchPositionLength ¶
func (i *TypeReference) FetchPositionLength() token.SourceFileReference
func (*TypeReference) Name ¶
func (i *TypeReference) Name() string
func (*TypeReference) SomeTypeIdentifier ¶
func (i *TypeReference) SomeTypeIdentifier() TypeIdentifierNormalOrScoped
func (*TypeReference) String ¶
func (i *TypeReference) String() string
func (*TypeReference) TypeIdentifier ¶
func (i *TypeReference) TypeIdentifier() *TypeIdentifier
type TypeReferenceScoped ¶
type TypeReferenceScoped struct {
// contains filtered or unexported fields
}
func NewScopedTypeReference ¶
func NewScopedTypeReference(ident *TypeIdentifierScoped, arguments []Type) *TypeReferenceScoped
func (*TypeReferenceScoped) Arguments ¶
func (i *TypeReferenceScoped) Arguments() []Type
func (*TypeReferenceScoped) DebugString ¶
func (i *TypeReferenceScoped) DebugString() string
func (*TypeReferenceScoped) DecoratedName ¶
func (i *TypeReferenceScoped) DecoratedName() string
func (*TypeReferenceScoped) FetchPositionLength ¶
func (i *TypeReferenceScoped) FetchPositionLength() token.SourceFileReference
func (*TypeReferenceScoped) Name ¶
func (i *TypeReferenceScoped) Name() string
func (*TypeReferenceScoped) SomeTypeIdentifier ¶
func (i *TypeReferenceScoped) SomeTypeIdentifier() TypeIdentifierNormalOrScoped
func (*TypeReferenceScoped) String ¶
func (i *TypeReferenceScoped) String() string
func (*TypeReferenceScoped) TypeResolver ¶
func (i *TypeReferenceScoped) TypeResolver() *TypeIdentifierScoped
type TypeReferenceScopedOrNormal ¶
type TypeReferenceScopedOrNormal interface { Arguments() []Type FetchPositionLength() token.SourceFileReference SomeTypeIdentifier() TypeIdentifierNormalOrScoped }
type UnaryExpression ¶
type UnaryExpression struct {
// contains filtered or unexported fields
}
func NewUnaryExpression ¶
func NewUnaryExpression(token token.Token, operator token.OperatorToken, left Expression) *UnaryExpression
func (*UnaryExpression) DebugString ¶
func (i *UnaryExpression) DebugString() string
func (*UnaryExpression) FetchPositionLength ¶
func (i *UnaryExpression) FetchPositionLength() token.SourceFileReference
func (*UnaryExpression) Left ¶
func (i *UnaryExpression) Left() Expression
func (*UnaryExpression) OperatorToken ¶
func (i *UnaryExpression) OperatorToken() token.OperatorToken
func (*UnaryExpression) OperatorType ¶
func (i *UnaryExpression) OperatorType() token.Type
func (*UnaryExpression) String ¶
func (i *UnaryExpression) String() string
type UndefinedTypeParameterError ¶
type UndefinedTypeParameterError struct {
// contains filtered or unexported fields
}
func NewUndefinedTypeParameterError ¶
func NewUndefinedTypeParameterError(extraParameter *TypeParameter, context *TypeParameterIdentifierContext) *UndefinedTypeParameterError
func (*UndefinedTypeParameterError) Error ¶
func (e *UndefinedTypeParameterError) Error() string
func (*UndefinedTypeParameterError) FetchPositionLength ¶
func (e *UndefinedTypeParameterError) FetchPositionLength() token.SourceFileReference
type UnmanagedType ¶ added in v0.0.2
type UnmanagedType struct {
// contains filtered or unexported fields
}
func NewUnmanagedType ¶ added in v0.0.2
func NewUnmanagedType(startParen token.ParenToken, endParen token.ParenToken, nativeLanguageTypeName *TypeIdentifier, keyword *TypeIdentifier, comment *MultilineComment) *UnmanagedType
func (*UnmanagedType) Comment ¶ added in v0.0.2
func (i *UnmanagedType) Comment() *MultilineComment
func (*UnmanagedType) FetchPositionLength ¶ added in v0.0.2
func (i *UnmanagedType) FetchPositionLength() token.SourceFileReference
func (*UnmanagedType) Keyword ¶ added in v0.0.2
func (i *UnmanagedType) Keyword() *TypeIdentifier
func (*UnmanagedType) Name ¶ added in v0.0.2
func (i *UnmanagedType) Name() string
func (*UnmanagedType) NativeLanguageTypeName ¶ added in v0.0.2
func (i *UnmanagedType) NativeLanguageTypeName() *TypeIdentifier
func (*UnmanagedType) String ¶ added in v0.0.2
func (i *UnmanagedType) String() string
type VariableIdentifier ¶
type VariableIdentifier struct {
// contains filtered or unexported fields
}
func NewVariableIdentifier ¶
func NewVariableIdentifier(symbol token.VariableSymbolToken) *VariableIdentifier
func (*VariableIdentifier) DebugString ¶
func (i *VariableIdentifier) DebugString() string
func (*VariableIdentifier) FetchPositionLength ¶
func (i *VariableIdentifier) FetchPositionLength() token.SourceFileReference
func (*VariableIdentifier) IsIgnore ¶ added in v0.0.4
func (i *VariableIdentifier) IsIgnore() bool
func (*VariableIdentifier) Name ¶
func (i *VariableIdentifier) Name() string
func (*VariableIdentifier) String ¶
func (i *VariableIdentifier) String() string
func (*VariableIdentifier) Symbol ¶
func (i *VariableIdentifier) Symbol() token.VariableSymbolToken
type VariableIdentifierScoped ¶
type VariableIdentifierScoped struct {
// contains filtered or unexported fields
}
func NewQualifiedVariableIdentifierScoped ¶
func NewQualifiedVariableIdentifierScoped(moduleReference *ModuleReference, variable *VariableIdentifier) *VariableIdentifierScoped
func (*VariableIdentifierScoped) AstVariableReference ¶
func (i *VariableIdentifierScoped) AstVariableReference() *VariableIdentifier
func (*VariableIdentifierScoped) DebugString ¶
func (i *VariableIdentifierScoped) DebugString() string
func (*VariableIdentifierScoped) FetchPositionLength ¶
func (i *VariableIdentifierScoped) FetchPositionLength() token.SourceFileReference
func (*VariableIdentifierScoped) ModuleReference ¶
func (i *VariableIdentifierScoped) ModuleReference() *ModuleReference
func (*VariableIdentifierScoped) Name ¶
func (i *VariableIdentifierScoped) Name() string
func (*VariableIdentifierScoped) String ¶
func (i *VariableIdentifierScoped) String() string
func (*VariableIdentifierScoped) Symbol ¶
func (i *VariableIdentifierScoped) Symbol() token.VariableSymbolToken
Source Files ¶
- alias.go
- any_matching_type.go
- array_literal.go
- ast.go
- binary_operator.go
- boolean_literal.go
- case_custom_type.go
- case_pattern_matching.go
- character_literal.go
- comment.go
- constant.go
- constructor_call.go
- custom_type.go
- custom_type_variant.go
- errors.go
- external_function_expression.go
- fixed_literal.go
- function_call.go
- function_declaration.go
- function_parameter.go
- function_type.go
- function_value.go
- guard.go
- if.go
- import.go
- integer_literal.go
- let.go
- list_literal.go
- local_type.go
- lookup.go
- module_reference.go
- named_function_value.go
- record_literal.go
- record_literal_field_assignment.go
- record_type.go
- record_type_field.go
- resource_name_literal.go
- single_line_comment.go
- source_file.go
- string_interpolation.go
- string_literal.go
- stringify.go
- tuple_literal.go
- tuple_type.go
- type.go
- type_id.go
- type_identifier.go
- type_identifier_scoped.go
- type_parameter.go
- type_parameter_context.go
- type_reference.go
- type_reference_scoped.go
- unary.go
- unmanaged_type.go
- util.go
- variable_identifier.go
- variable_identifier_scoped.go
Click to show internal directories.
Click to hide internal directories.