asttest

package
v0.0.0-...-4349ab3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAddOpTerm

func AssertAddOpTerm(t *testing.T, expected, actual *ast.AddOpTerm)

func AssertAddOpTerms

func AssertAddOpTerms(t *testing.T, expected, actual ast.AddOpTerms)

func AssertAddress

func AssertAddress(t *testing.T, expected, actual *ast.Address)

func AssertArrayType

func AssertArrayType(t *testing.T, expected, actual *ast.ArrayType)

func AssertAssemblerStatement

func AssertAssemblerStatement(t *testing.T, expected, actual *ast.AssemblerStatement)

func AssertAssignStatement

func AssertAssignStatement(t *testing.T, expected, actual *ast.AssignStatement)

func AssertBlock

func AssertBlock(t *testing.T, expected, actual *ast.Block)

func AssertBlockBody

func AssertBlockBody(t *testing.T, expected, actual ast.BlockBody)

func AssertCallStatement

func AssertCallStatement(t *testing.T, expected, actual *ast.CallStatement)

func AssertCaseLabel

func AssertCaseLabel(t *testing.T, expected, actual *ast.CaseLabel)

func AssertCaseLabels

func AssertCaseLabels(t *testing.T, expected, actual ast.CaseLabels)

func AssertCaseSelector

func AssertCaseSelector(t *testing.T, expected, actual *ast.CaseSelector)

func AssertCaseSelectors

func AssertCaseSelectors(t *testing.T, expected, actual ast.CaseSelectors)

func AssertCaseStmt

func AssertCaseStmt(t *testing.T, expected, actual *ast.CaseStmt)

func AssertCompoundStmt

func AssertCompoundStmt(t *testing.T, expected, actual *ast.CompoundStmt)

func AssertConditionalStmt

func AssertConditionalStmt(t *testing.T, expected, actual ast.ConditionalStmt)

func AssertConstExpr

func AssertConstExpr(t *testing.T, expected, actual *ast.ConstExpr)

func AssertConstExprs

func AssertConstExprs(t *testing.T, expected, actual ast.ConstExprs)

func AssertConstSection

func AssertConstSection(t *testing.T, expected, actual ast.ConstSection)

func AssertConstantDecl

func AssertConstantDecl(t *testing.T, expected, actual *ast.ConstantDecl)

func AssertDeclSection

func AssertDeclSection(t *testing.T, expected, actual ast.DeclSection)

func AssertDeclSections

func AssertDeclSections(t *testing.T, expected, actual ast.DeclSections)

func AssertDeclaration

func AssertDeclaration(t *testing.T, expected, actual *astcore.Decl)

func AssertDesignator

func AssertDesignator(t *testing.T, expected, actual *ast.Designator)

func AssertDesignatorFactor

func AssertDesignatorFactor(t *testing.T, expected, actual *ast.DesignatorFactor)

func AssertDesignatorItem

func AssertDesignatorItem(t *testing.T, expected, actual ast.DesignatorItem)

func AssertDesignatorItemDereference

func AssertDesignatorItemDereference(t *testing.T, expected, actual *ast.DesignatorItemDereference)

func AssertDesignatorItemExprList

func AssertDesignatorItemExprList(t *testing.T, expected, actual ast.DesignatorItemExprList)

func AssertDesignatorItemIdent

func AssertDesignatorItemIdent(t *testing.T, expected, actual *ast.DesignatorItemIdent)

func AssertDesignatorItems

func AssertDesignatorItems(t *testing.T, expected, actual ast.DesignatorItems)

func AssertDirective

func AssertDirective(t *testing.T, expected, actual ast.Directive)

func AssertDirectives

func AssertDirectives(t *testing.T, expected, actual []ast.Directive)

func AssertEnumeratedType

func AssertEnumeratedType(t *testing.T, expected, actual ast.EnumeratedType)

func AssertEnumeratedTypeElement

func AssertEnumeratedTypeElement(t *testing.T, expected, actual *ast.EnumeratedTypeElement)

func AssertExceptionBlock

func AssertExceptionBlock(t *testing.T, expected, actual *ast.ExceptionBlock)

func AssertExceptionBlockHandlerDecl

func AssertExceptionBlockHandlerDecl(t *testing.T, expected, actual *ast.ExceptionBlockHandlerDecl)

func AssertExceptionBlockHandlers

func AssertExceptionBlockHandlers(t *testing.T, expected, actual ast.ExceptionBlockHandlers)

func AssertExceptionHandler

func AssertExceptionHandler(t *testing.T, expected, actual *ast.ExceptionBlockHandler)

func AssertExportedHeading

func AssertExportedHeading(t *testing.T, expected, actual *ast.ExportedHeading)

func AssertExportsItem

func AssertExportsItem(t *testing.T, expected, actual *ast.ExportsItem)

func AssertExportsItems

func AssertExportsItems(t *testing.T, expected, actual []*ast.ExportsItem)

func AssertExportsStmt

func AssertExportsStmt(t *testing.T, expected, actual *ast.ExportsStmt)

func AssertExportsStmts

func AssertExportsStmts(t *testing.T, expected, actual ast.ExportsStmts)

func AssertExprList

func AssertExprList(t *testing.T, expected, actual ast.ExprList)

func AssertExpression

func AssertExpression(t *testing.T, expected, actual *ast.Expression)

func AssertExternalOptions

func AssertExternalOptions(t *testing.T, expected, actual *ast.ExternalOptions)

func AssertFactor

func AssertFactor(t *testing.T, expected, actual ast.Factor)

func AssertFieldDecl

func AssertFieldDecl(t *testing.T, expected, actual *ast.FieldDecl)

func AssertFieldDecls

func AssertFieldDecls(t *testing.T, expected, actual ast.FieldDecls)

func AssertFieldList

func AssertFieldList(t *testing.T, expected, actual *ast.FieldList)

func AssertFileType

func AssertFileType(t *testing.T, expected, actual *ast.FileType)

func AssertFixedStringType

func AssertFixedStringType(t *testing.T, expected, actual *ast.FixedStringType)

func AssertForStmt

func AssertForStmt(t *testing.T, expected, actual *ast.ForStmt)

func AssertFormalParameters

func AssertFormalParameters(t *testing.T, expected, actual ast.FormalParameters)

func AssertFormalParm

func AssertFormalParm(t *testing.T, expected, actual *ast.FormalParm)

func AssertFunctionDecl

func AssertFunctionDecl(t *testing.T, expected, actual *ast.FunctionDecl)

func AssertFunctionHeading

func AssertFunctionHeading(t *testing.T, expected, actual *ast.FunctionHeading)

func AssertGotoStatement

func AssertGotoStatement(t *testing.T, expected, actual *ast.GotoStatement)

func AssertIdent

func AssertIdent(t *testing.T, expected, actual *ast.Ident)

func AssertIdentList

func AssertIdentList(t *testing.T, expected, actual ast.IdentList)

func AssertIdentRef

func AssertIdentRef(t *testing.T, expected, actual *ast.IdentRef)

func AssertIfStmt

func AssertIfStmt(t *testing.T, expected, actual *ast.IfStmt)

func AssertImplementationSection

func AssertImplementationSection(t *testing.T, expected, actual *ast.ImplementationSection)

func AssertInheritedStatement

func AssertInheritedStatement(t *testing.T, expected, actual *ast.InheritedStatement)

func AssertInitSection

func AssertInitSection(t *testing.T, expected, actual *ast.InitSection)

func AssertInterfaceDecl

func AssertInterfaceDecl(t *testing.T, expected, actual ast.InterfaceDecl)

func AssertInterfaceDecls

func AssertInterfaceDecls(t *testing.T, expected, actual ast.InterfaceDecls)

func AssertInterfaceSection

func AssertInterfaceSection(t *testing.T, expected, actual *ast.InterfaceSection)

func AssertLabelDeclSection

func AssertLabelDeclSection(t *testing.T, expected, actual *ast.LabelDeclSection)

func AssertLbelId

func AssertLbelId(t *testing.T, expected, actual *ast.LabelId)

func AssertLocation

func AssertLocation(t *testing.T, expected, actual *astcore.Location)

func AssertLoopStmt

func AssertLoopStmt(t *testing.T, expected, actual ast.LoopStmt)

func AssertMulOpFactor

func AssertMulOpFactor(t *testing.T, expected, actual *ast.MulOpFactor)

func AssertMulOpFactors

func AssertMulOpFactors(t *testing.T, expected, actual ast.MulOpFactors)

func AssertNil

func AssertNil(t *testing.T, expected, actual *ast.Nil)

func AssertNot

func AssertNot(t *testing.T, expected, actual *ast.Not)

func AssertNumberFactor

func AssertNumberFactor(t *testing.T, expected, actual *ast.NumberFactor)

func AssertOrdIdent

func AssertOrdIdent(t *testing.T, expected, actual ast.OrdIdent)

func AssertOrdinalType

func AssertOrdinalType(t *testing.T, expected, actual ast.OrdinalType)

func AssertOrdinalTypes

func AssertOrdinalTypes(t *testing.T, expected, actual []ast.OrdinalType)

func AssertParameter

func AssertParameter(t *testing.T, expected, actual *ast.Parameter)

func AssertParameterType

func AssertParameterType(t *testing.T, expected, actual *ast.ParameterType)

func AssertParentheses

func AssertParentheses(t *testing.T, expected, actual *ast.Parentheses)

func AssertPortabilityDirective

func AssertPortabilityDirective(t *testing.T, expected, actual *ast.PortabilityDirective)

func AssertPosition

func AssertPosition(t *testing.T, expected, actual *astcore.Position)

func AssertProcedureDeclSection

func AssertProcedureDeclSection(t *testing.T, expected, actual ast.ProcedureDeclSection)

func AssertProgram

func AssertProgram(t *testing.T, expected *ast.Program, actual *ast.Program)

func AssertProgramBlock

func AssertProgramBlock(t *testing.T, expected *ast.ProgramBlock, actual *ast.ProgramBlock)

func AssertQualId

func AssertQualId(t *testing.T, expected, actual *ast.QualId)

func AssertQualIds

func AssertQualIds(t *testing.T, expected, actual ast.QualIds)

func AssertRaiseStmt

func AssertRaiseStmt(t *testing.T, expected, actual *ast.RaiseStmt)

func AssertRealType

func AssertRealType(t *testing.T, expected, actual ast.RealType)

func AssertRecType

func AssertRecType(t *testing.T, expected, actual *ast.RecType)

func AssertRecVariant

func AssertRecVariant(t *testing.T, expected, actual *ast.RecVariant)

func AssertRecVariants

func AssertRecVariants(t *testing.T, expected, actual ast.RecVariants)

func AssertRelOpSimpleExpression

func AssertRelOpSimpleExpression(t *testing.T, expected, actual *ast.RelOpSimpleExpression)

func AssertRelOpSimpleExpressions

func AssertRelOpSimpleExpressions(t *testing.T, expected, actual ast.RelOpSimpleExpressions)

func AssertRepeatStmt

func AssertRepeatStmt(t *testing.T, expected, actual *ast.RepeatStmt)

func AssertSetConstructor

func AssertSetConstructor(t *testing.T, expected, actual *ast.SetConstructor)

func AssertSetElement

func AssertSetElement(t *testing.T, expected, actual *ast.SetElement)

func AssertSetElements

func AssertSetElements(t *testing.T, expected, actual []*ast.SetElement)

func AssertSetType

func AssertSetType(t *testing.T, expected, actual *ast.SetType)

func AssertSimpleExpression

func AssertSimpleExpression(t *testing.T, expected, actual *ast.SimpleExpression)

func AssertSimpleType

func AssertSimpleType(t *testing.T, expected, actual ast.SimpleType)

func AssertStatement

func AssertStatement(t *testing.T, expected, actual *ast.Statement)

func AssertStatementBody

func AssertStatementBody(t *testing.T, expected, actual ast.StatementBody)

func AssertStmtList

func AssertStmtList(t *testing.T, expected, actual ast.StmtList)

func AssertStringFactor

func AssertStringFactor(t *testing.T, expected, actual *ast.StringFactor)

func AssertStringType

func AssertStringType(t *testing.T, expected, actual ast.StringType)

func AssertStrucType

func AssertStrucType(t *testing.T, expected, actual ast.StrucType)

func AssertStructStmt

func AssertStructStmt(t *testing.T, expected, actual ast.StructStmt)

func AssertSubrangeType

func AssertSubrangeType(t *testing.T, expected, actual *ast.SubrangeType)

func AssertTerm

func AssertTerm(t *testing.T, expected, actual *ast.Term)

func AssertThreadVarDecl

func AssertThreadVarDecl(t *testing.T, expected, actual *ast.ThreadVarDecl)

func AssertThreadVarSection

func AssertThreadVarSection(t *testing.T, expected, actual ast.ThreadVarSection)

func AssertTryExceptStmt

func AssertTryExceptStmt(t *testing.T, expected, actual *ast.TryExceptStmt)

func AssertTryFinallyStmt

func AssertTryFinallyStmt(t *testing.T, expected, actual *ast.TryFinallyStmt)

func AssertType

func AssertType(t *testing.T, expected, actual ast.Type)

func AssertTypeCast

func AssertTypeCast(t *testing.T, expected, actual *ast.TypeCast)

func AssertTypeDecl

func AssertTypeDecl(t *testing.T, expected, actual *ast.TypeDecl)

func AssertTypeEmbedded

func AssertTypeEmbedded(t *testing.T, expected, actual *ast.TypeEmbedded)

func AssertTypeId

func AssertTypeId(t *testing.T, expected, actual *ast.TypeId)

func AssertTypeSection

func AssertTypeSection(t *testing.T, expected, actual ast.TypeSection)

func AssertUnit

func AssertUnit(t *testing.T, expected, actual *ast.Unit)

func AssertUnitId

func AssertUnitId(t *testing.T, expected, actual *ast.UnitId)

func AssertUnitRef

func AssertUnitRef(t *testing.T, expected, actual *ast.UsesClauseItem)

func AssertUnits

func AssertUnits(t *testing.T, expected, actual ast.Units)

func AssertUsesClause

func AssertUsesClause(t *testing.T, expected ast.UsesClause, actual ast.UsesClause)

func AssertValueFactor

func AssertValueFactor(t *testing.T, expected, actual *ast.ValueFactor)

func AssertVarDecl

func AssertVarDecl(t *testing.T, expected, actual *ast.VarDecl)

func AssertVarDeclAbsolute

func AssertVarDeclAbsolute(t *testing.T, expected, actual ast.VarDeclAbsolute)

func AssertVarDeclAbsoluteConstExpr

func AssertVarDeclAbsoluteConstExpr(t *testing.T, expected, actual *ast.VarDeclAbsoluteConstExpr)

func AssertVarDeclAbsoluteIdent

func AssertVarDeclAbsoluteIdent(t *testing.T, expected, actual *ast.VarDeclAbsoluteIdent)

func AssertVarSection

func AssertVarSection(t *testing.T, expected, actual ast.VarSection)

func AssertVariantSection

func AssertVariantSection(t *testing.T, expected, actual *ast.VariantSection)

func AssertWhileStmt

func AssertWhileStmt(t *testing.T, expected, actual *ast.WhileStmt)

func AssertWithStmt

func AssertWithStmt(t *testing.T, expected, actual *ast.WithStmt)

func ClearLocation

func ClearLocation(ident *ast.Ident)

func ClearLocations

func ClearLocations(t *testing.T, node ast.Node)

func ClearUnitDeclMap

func ClearUnitDeclMap(u *ast.Unit)

func ClearUnitDeclMaps

func ClearUnitDeclMaps(t *testing.T, node ast.Node)

func ClearUsesItemUnit

func ClearUsesItemUnit(item *ast.UsesClauseItem)

func ClearUsesItemsUnit

func ClearUsesItemsUnit(t *testing.T, node ast.Node)

func NewArrayParameterType

func NewArrayParameterType(arg interface{}) *ast.ParameterType

func NewCaseLabel

func NewCaseLabel(arg interface{}, extras ...interface{}) *ast.CaseLabel

func NewConstExpr

func NewConstExpr(arg interface{}) *ast.ConstExpr

func NewDesignator

func NewDesignator(arg interface{}) *ast.Designator

func NewDesignatorFactor

func NewDesignatorFactor(arg interface{}) *ast.DesignatorFactor

func NewDesignatorItemIdent

func NewDesignatorItemIdent(arg interface{}) *ast.DesignatorItemIdent

func NewExpression

func NewExpression(arg interface{}) *ast.Expression

func NewExternalOptions

func NewExternalOptions(libraryName string, args ...interface{}) *ast.ExternalOptions

func NewFixedStringType

func NewFixedStringType(name interface{}, length *ast.ConstExpr) *ast.FixedStringType

func NewFormalParm

func NewFormalParm(name interface{}, args ...interface{}) *ast.FormalParm

func NewIdent

func NewIdent(arg interface{}, locations ...*ast.Location) *ast.Ident

func NewIdentList

func NewIdentList(args ...interface{}) ast.IdentList

func NewIdentLocation

func NewIdentLocation(args ...interface{}) *ast.Location

args are - *token.Token - *ast.Position, *ast.Position - startLine, startCol, startIndex, endCol - startLine, startCol, startIndex, endCol, endIndex - startLine, startCol, startIndex, endLine, endCol, endIndex

func NewIdentRef

func NewIdentRef(arg interface{}, args ...interface{}) *ast.IdentRef

func NewLabelId

func NewLabelId(arg interface{}) *ast.LabelId

func NewNil

func NewNil() *ast.Nil

func NewNumber

func NewNumber(v string) *ast.NumberFactor

func NewOrdIdent

func NewOrdIdent(name interface{}) *ast.TypeId

func NewOrdIdentWithIdent

func NewOrdIdentWithIdent(v *ast.Ident) *ast.TypeId

func NewParameter

func NewParameter(name interface{}, typArg interface{}, args ...interface{}) *ast.Parameter

func NewParameterType

func NewParameterType(arg interface{}) *ast.ParameterType

func NewPosition

func NewPosition(args ...int) *ast.Position

NewPosition(line, col, index) NewPosition(1, col) NewPosition(col) // line is 1

func NewQualId

func NewQualId(args ...interface{}) *ast.QualId

func NewRealType

func NewRealType(name interface{}) *ast.TypeId

func NewSetElement

func NewSetElement(expr *ast.Expression) *ast.SetElement

func NewSimpleExpression

func NewSimpleExpression(arg interface{}) *ast.SimpleExpression

func NewString

func NewString(v string) *ast.StringFactor

func NewStringType

func NewStringType(name interface{}) *ast.TypeId

func NewTerm

func NewTerm(arg interface{}) *ast.Term

func NewTypeId

func NewTypeId(unitIdOrIdent interface{}, args ...interface{}) *ast.TypeId

func NewUnitId

func NewUnitId(name interface{}) *ast.UnitId

func NewUnitRef

func NewUnitRef(name interface{}, paths ...string) *ast.UsesClauseItem

func NewVarDeclAbsoluteIdent

func NewVarDeclAbsoluteIdent(arg interface{}) *ast.VarDeclAbsoluteIdent

func NewVariantType

func NewVariantType(name interface{}) *ast.TypeId

Types

This section is empty.

Jump to

Keyboard shortcuts

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