formatter

package
v0.0.0-...-0f2dbaf Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	WHITESPACE_CHANNEL = 2
	COMMENTS_CHANNEL   = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainVisitor

type ChainVisitor struct {
	parser.BaseApexParserVisitor
}

func NewChainVisitor

func NewChainVisitor() *ChainVisitor

func (*ChainVisitor) VisitArth2Expression

func (v *ChainVisitor) VisitArth2Expression(ctx *parser.Arth2ExpressionContext) interface{}

func (*ChainVisitor) VisitConditionalExpression

func (v *ChainVisitor) VisitConditionalExpression(ctx *parser.ConditionalExpressionContext) interface{}

func (*ChainVisitor) VisitDotExpression

func (v *ChainVisitor) VisitDotExpression(ctx *parser.DotExpressionContext) interface{}

func (*ChainVisitor) VisitEqualityExpression

func (v *ChainVisitor) VisitEqualityExpression(ctx *parser.EqualityExpressionContext) interface{}

func (*ChainVisitor) VisitExpressionStatement

func (v *ChainVisitor) VisitExpressionStatement(ctx *parser.ExpressionStatementContext) interface{}

func (*ChainVisitor) VisitFieldExpression

func (v *ChainVisitor) VisitFieldExpression(ctx *parser.FieldExpressionContext) interface{}

func (*ChainVisitor) VisitForClauses

func (v *ChainVisitor) VisitForClauses(ctx *parser.ForClausesContext) interface{}

func (*ChainVisitor) VisitFromNameList

func (v *ChainVisitor) VisitFromNameList(ctx *parser.FromNameListContext) interface{}

func (*ChainVisitor) VisitLogAndExpression

func (v *ChainVisitor) VisitLogAndExpression(ctx *parser.LogAndExpressionContext) interface{}

func (*ChainVisitor) VisitLogOrExpression

func (v *ChainVisitor) VisitLogOrExpression(ctx *parser.LogOrExpressionContext) interface{}

func (*ChainVisitor) VisitLogicalExpression

func (v *ChainVisitor) VisitLogicalExpression(ctx *parser.LogicalExpressionContext) interface{}

func (*ChainVisitor) VisitOrderByClause

func (v *ChainVisitor) VisitOrderByClause(ctx *parser.OrderByClauseContext) interface{}

func (*ChainVisitor) VisitPrimaryExpression

func (v *ChainVisitor) VisitPrimaryExpression(ctx *parser.PrimaryExpressionContext) interface{}

func (*ChainVisitor) VisitQuery

func (v *ChainVisitor) VisitQuery(ctx *parser.QueryContext) interface{}

func (*ChainVisitor) VisitSelectEntry

func (v *ChainVisitor) VisitSelectEntry(ctx *parser.SelectEntryContext) interface{}

func (*ChainVisitor) VisitSelectList

func (v *ChainVisitor) VisitSelectList(ctx *parser.SelectListContext) interface{}

func (*ChainVisitor) VisitStatement

func (v *ChainVisitor) VisitStatement(ctx *parser.StatementContext) interface{}

func (*ChainVisitor) VisitSubExpression

func (v *ChainVisitor) VisitSubExpression(ctx *parser.SubExpressionContext) interface{}

func (*ChainVisitor) VisitSubQueryValue

func (v *ChainVisitor) VisitSubQueryValue(ctx *parser.SubQueryValueContext) interface{}

func (*ChainVisitor) VisitWhereClause

func (v *ChainVisitor) VisitWhereClause(ctx *parser.WhereClauseContext) interface{}

type FormatVisitor

type FormatVisitor struct {
	parser.BaseApexParserVisitor
	// contains filtered or unexported fields
}

func NewFormatVisitor

func NewFormatVisitor(tokens *antlr.CommonTokenStream) *FormatVisitor

func (*FormatVisitor) Modifiers

func (v *FormatVisitor) Modifiers(ctxs []parser.IModifierContext) string

func (*FormatVisitor) VisitAnnotation

func (v *FormatVisitor) VisitAnnotation(ctx *parser.AnnotationContext) interface{}

func (*FormatVisitor) VisitAnyId

func (v *FormatVisitor) VisitAnyId(ctx *parser.AnyIdContext) interface{}

func (*FormatVisitor) VisitArguments

func (v *FormatVisitor) VisitArguments(ctx *parser.ArgumentsContext) interface{}

Class instance arguments, e.g. (Name = 'Acme', BillingCity = 'Los Angeles') in Account(Name = 'Acme', BillingCity = 'Los Angeles')

func (*FormatVisitor) VisitArrayCreatorRest

func (v *FormatVisitor) VisitArrayCreatorRest(ctx *parser.ArrayCreatorRestContext) interface{}

func (*FormatVisitor) VisitArrayExpression

func (v *FormatVisitor) VisitArrayExpression(ctx *parser.ArrayExpressionContext) interface{}

func (*FormatVisitor) VisitArrayInitializer

func (v *FormatVisitor) VisitArrayInitializer(ctx *parser.ArrayInitializerContext) interface{}

func (*FormatVisitor) VisitArth1Expression

func (v *FormatVisitor) VisitArth1Expression(ctx *parser.Arth1ExpressionContext) interface{}

func (*FormatVisitor) VisitArth2Expression

func (v *FormatVisitor) VisitArth2Expression(ctx *parser.Arth2ExpressionContext) interface{}

func (*FormatVisitor) VisitAssignExpression

func (v *FormatVisitor) VisitAssignExpression(ctx *parser.AssignExpressionContext) interface{}

func (*FormatVisitor) VisitBitAndExpression

func (v *FormatVisitor) VisitBitAndExpression(ctx *parser.BitAndExpressionContext) interface{}

func (*FormatVisitor) VisitBitExpression

func (v *FormatVisitor) VisitBitExpression(ctx *parser.BitExpressionContext) interface{}

func (*FormatVisitor) VisitBitNotExpression

func (v *FormatVisitor) VisitBitNotExpression(ctx *parser.BitNotExpressionContext) interface{}

func (*FormatVisitor) VisitBitOrExpression

func (v *FormatVisitor) VisitBitOrExpression(ctx *parser.BitOrExpressionContext) interface{}

func (*FormatVisitor) VisitBlock

func (v *FormatVisitor) VisitBlock(ctx *parser.BlockContext) interface{}

func (*FormatVisitor) VisitBlockMemberDeclaration

func (v *FormatVisitor) VisitBlockMemberDeclaration(ctx *parser.BlockMemberDeclarationContext) interface{}

func (*FormatVisitor) VisitBooleanLiteralValue

func (v *FormatVisitor) VisitBooleanLiteralValue(ctx *parser.BooleanLiteralValueContext) interface{}

func (*FormatVisitor) VisitBoundExpression

func (v *FormatVisitor) VisitBoundExpression(ctx *parser.BoundExpressionContext) interface{}

func (*FormatVisitor) VisitBoundExpressionValue

func (v *FormatVisitor) VisitBoundExpressionValue(ctx *parser.BoundExpressionValueContext) interface{}

func (*FormatVisitor) VisitBreakStatement

func (v *FormatVisitor) VisitBreakStatement(ctx *parser.BreakStatementContext) interface{}

func (*FormatVisitor) VisitCastExpression

func (v *FormatVisitor) VisitCastExpression(ctx *parser.CastExpressionContext) interface{}

func (*FormatVisitor) VisitCatchClause

func (v *FormatVisitor) VisitCatchClause(ctx *parser.CatchClauseContext) interface{}

func (*FormatVisitor) VisitClassBody

func (v *FormatVisitor) VisitClassBody(ctx *parser.ClassBodyContext) interface{}

func (*FormatVisitor) VisitClassBodyDeclaration

func (v *FormatVisitor) VisitClassBodyDeclaration(ctx *parser.ClassBodyDeclarationContext) interface{}

func (*FormatVisitor) VisitClassCreatorRest

func (v *FormatVisitor) VisitClassCreatorRest(ctx *parser.ClassCreatorRestContext) interface{}

func (*FormatVisitor) VisitClassDeclaration

func (v *FormatVisitor) VisitClassDeclaration(ctx *parser.ClassDeclarationContext) interface{}

func (*FormatVisitor) VisitCmpExpression

func (v *FormatVisitor) VisitCmpExpression(ctx *parser.CmpExpressionContext) interface{}

func (*FormatVisitor) VisitCoalExpression

func (v *FormatVisitor) VisitCoalExpression(ctx *parser.CoalExpressionContext) interface{}

func (*FormatVisitor) VisitComparisonOperator

func (v *FormatVisitor) VisitComparisonOperator(ctx *parser.ComparisonOperatorContext) interface{}

func (*FormatVisitor) VisitCompilationUnit

func (v *FormatVisitor) VisitCompilationUnit(ctx *parser.CompilationUnitContext) interface{}

func (*FormatVisitor) VisitCondExpression

func (v *FormatVisitor) VisitCondExpression(ctx *parser.CondExpressionContext) interface{}

func (*FormatVisitor) VisitConditionalExpression

func (v *FormatVisitor) VisitConditionalExpression(ctx *parser.ConditionalExpressionContext) interface{}

func (*FormatVisitor) VisitConstructorDeclaration

func (v *FormatVisitor) VisitConstructorDeclaration(ctx *parser.ConstructorDeclarationContext) interface{}

func (*FormatVisitor) VisitContinueStatement

func (v *FormatVisitor) VisitContinueStatement(ctx *parser.ContinueStatementContext) interface{}

func (*FormatVisitor) VisitCreatedName

func (v *FormatVisitor) VisitCreatedName(ctx *parser.CreatedNameContext) interface{}

func (*FormatVisitor) VisitCreator

func (v *FormatVisitor) VisitCreator(ctx *parser.CreatorContext) interface{}

func (*FormatVisitor) VisitCurrencyValueValue

func (v *FormatVisitor) VisitCurrencyValueValue(ctx *parser.CurrencyValueValueContext) interface{}

func (*FormatVisitor) VisitDateFieldName

func (v *FormatVisitor) VisitDateFieldName(ctx *parser.DateFieldNameContext) interface{}

func (*FormatVisitor) VisitDateFormula

func (v *FormatVisitor) VisitDateFormula(ctx *parser.DateFormulaContext) interface{}

func (*FormatVisitor) VisitDateFormulaValue

func (v *FormatVisitor) VisitDateFormulaValue(ctx *parser.DateFormulaValueContext) interface{}

func (*FormatVisitor) VisitDateLiteralValue

func (v *FormatVisitor) VisitDateLiteralValue(ctx *parser.DateLiteralValueContext) interface{}

func (*FormatVisitor) VisitDateTimeLiteralValue

func (v *FormatVisitor) VisitDateTimeLiteralValue(ctx *parser.DateTimeLiteralValueContext) interface{}

func (*FormatVisitor) VisitDeleteStatement

func (v *FormatVisitor) VisitDeleteStatement(ctx *parser.DeleteStatementContext) interface{}

func (*FormatVisitor) VisitDelimitedElementValuePair

func (v *FormatVisitor) VisitDelimitedElementValuePair(ctx *parser.DelimitedElementValuePairContext) interface{}

func (*FormatVisitor) VisitDotExpression

func (v *FormatVisitor) VisitDotExpression(ctx *parser.DotExpressionContext) interface{}

func (*FormatVisitor) VisitDotMethodCall

func (v *FormatVisitor) VisitDotMethodCall(ctx *parser.DotMethodCallContext) interface{}

func (*FormatVisitor) VisitElementValue

func (v *FormatVisitor) VisitElementValue(ctx *parser.ElementValueContext) interface{}

func (*FormatVisitor) VisitElementValueArrayInitializer

func (v *FormatVisitor) VisitElementValueArrayInitializer(ctx *parser.ElementValueArrayInitializerContext) interface{}

func (*FormatVisitor) VisitElementValuePair

func (v *FormatVisitor) VisitElementValuePair(ctx *parser.ElementValuePairContext) interface{}

func (*FormatVisitor) VisitElementValuePairs

func (v *FormatVisitor) VisitElementValuePairs(ctx *parser.ElementValuePairsContext) interface{}

func (*FormatVisitor) VisitEnhancedForControl

func (v *FormatVisitor) VisitEnhancedForControl(ctx *parser.EnhancedForControlContext) interface{}

func (*FormatVisitor) VisitEnumConstants

func (v *FormatVisitor) VisitEnumConstants(ctx *parser.EnumConstantsContext) interface{}

func (*FormatVisitor) VisitEnumDeclaration

func (v *FormatVisitor) VisitEnumDeclaration(ctx *parser.EnumDeclarationContext) interface{}

func (*FormatVisitor) VisitEqualityExpression

func (v *FormatVisitor) VisitEqualityExpression(ctx *parser.EqualityExpressionContext) interface{}

func (*FormatVisitor) VisitExpressionList

func (v *FormatVisitor) VisitExpressionList(ctx *parser.ExpressionListContext) interface{}

func (*FormatVisitor) VisitExpressionStatement

func (v *FormatVisitor) VisitExpressionStatement(ctx *parser.ExpressionStatementContext) interface{}

func (*FormatVisitor) VisitFieldDeclaration

func (v *FormatVisitor) VisitFieldDeclaration(ctx *parser.FieldDeclarationContext) interface{}

func (*FormatVisitor) VisitFieldExpression

func (v *FormatVisitor) VisitFieldExpression(ctx *parser.FieldExpressionContext) interface{}

func (*FormatVisitor) VisitFieldList

func (v *FormatVisitor) VisitFieldList(ctx *parser.FieldListContext) interface{}

func (*FormatVisitor) VisitFieldName

func (v *FormatVisitor) VisitFieldName(ctx *parser.FieldNameContext) interface{}

func (*FormatVisitor) VisitFieldNameAlias

func (v *FormatVisitor) VisitFieldNameAlias(ctx *parser.FieldNameAliasContext) interface{}

func (*FormatVisitor) VisitFieldNameList

func (v *FormatVisitor) VisitFieldNameList(ctx *parser.FieldNameListContext) interface{}

func (*FormatVisitor) VisitFieldOrder

func (v *FormatVisitor) VisitFieldOrder(ctx *parser.FieldOrderContext) interface{}

func (*FormatVisitor) VisitFieldOrderList

func (v *FormatVisitor) VisitFieldOrderList(ctx *parser.FieldOrderListContext) interface{}

func (*FormatVisitor) VisitFieldSpec

func (v *FormatVisitor) VisitFieldSpec(ctx *parser.FieldSpecContext) interface{}

func (*FormatVisitor) VisitFieldSpecClauses

func (v *FormatVisitor) VisitFieldSpecClauses(ctx *parser.FieldSpecClausesContext) interface{}

func (*FormatVisitor) VisitFieldSpecList

func (v *FormatVisitor) VisitFieldSpecList(ctx *parser.FieldSpecListContext) interface{}

func (*FormatVisitor) VisitFinallyBlock

func (v *FormatVisitor) VisitFinallyBlock(ctx *parser.FinallyBlockContext) interface{}

func (*FormatVisitor) VisitForClause

func (v *FormatVisitor) VisitForClause(ctx *parser.ForClauseContext) interface{}

func (*FormatVisitor) VisitForClauses

func (v *FormatVisitor) VisitForClauses(ctx *parser.ForClausesContext) interface{}

func (*FormatVisitor) VisitForControl

func (v *FormatVisitor) VisitForControl(ctx *parser.ForControlContext) interface{}

func (*FormatVisitor) VisitForInit

func (v *FormatVisitor) VisitForInit(ctx *parser.ForInitContext) interface{}

func (*FormatVisitor) VisitForStatement

func (v *FormatVisitor) VisitForStatement(ctx *parser.ForStatementContext) interface{}

func (*FormatVisitor) VisitForUpdate

func (v *FormatVisitor) VisitForUpdate(ctx *parser.ForUpdateContext) interface{}

func (*FormatVisitor) VisitFormalParameter

func (v *FormatVisitor) VisitFormalParameter(ctx *parser.FormalParameterContext) interface{}

func (*FormatVisitor) VisitFormalParameters

func (v *FormatVisitor) VisitFormalParameters(ctx *parser.FormalParametersContext) interface{}

func (*FormatVisitor) VisitFromNameList

func (v *FormatVisitor) VisitFromNameList(ctx *parser.FromNameListContext) interface{}

func (*FormatVisitor) VisitGetter

func (v *FormatVisitor) VisitGetter(ctx *parser.GetterContext) interface{}

func (*FormatVisitor) VisitGroupByClause

func (v *FormatVisitor) VisitGroupByClause(ctx *parser.GroupByClauseContext) interface{}

func (*FormatVisitor) VisitId

func (v *FormatVisitor) VisitId(ctx *parser.IdContext) interface{}

func (*FormatVisitor) VisitIdCreatedNamePair

func (v *FormatVisitor) VisitIdCreatedNamePair(ctx *parser.IdCreatedNamePairContext) interface{}

func (*FormatVisitor) VisitIdPrimary

func (v *FormatVisitor) VisitIdPrimary(ctx *parser.IdPrimaryContext) interface{}

func (*FormatVisitor) VisitIfStatement

func (v *FormatVisitor) VisitIfStatement(ctx *parser.IfStatementContext) interface{}

func (*FormatVisitor) VisitInSearchGroup

func (v *FormatVisitor) VisitInSearchGroup(ctx *parser.InSearchGroupContext) interface{}

func (*FormatVisitor) VisitInsertStatement

func (v *FormatVisitor) VisitInsertStatement(ctx *parser.InsertStatementContext) interface{}

func (*FormatVisitor) VisitInstanceOfExpression

func (v *FormatVisitor) VisitInstanceOfExpression(ctx *parser.InstanceOfExpressionContext) interface{}

func (*FormatVisitor) VisitInterfaceBody

func (v *FormatVisitor) VisitInterfaceBody(ctx *parser.InterfaceBodyContext) interface{}

func (*FormatVisitor) VisitInterfaceDeclaration

func (v *FormatVisitor) VisitInterfaceDeclaration(ctx *parser.InterfaceDeclarationContext) interface{}

func (*FormatVisitor) VisitInterfaceMethodDeclaration

func (v *FormatVisitor) VisitInterfaceMethodDeclaration(ctx *parser.InterfaceMethodDeclarationContext) interface{}

func (*FormatVisitor) VisitLimitClause

func (v *FormatVisitor) VisitLimitClause(ctx *parser.LimitClauseContext) interface{}

func (*FormatVisitor) VisitLiteral

func (v *FormatVisitor) VisitLiteral(ctx *parser.LiteralContext) interface{}

func (*FormatVisitor) VisitLiteralPrimary

func (v *FormatVisitor) VisitLiteralPrimary(ctx *parser.LiteralPrimaryContext) interface{}

func (*FormatVisitor) VisitLocalVariableDeclaration

func (v *FormatVisitor) VisitLocalVariableDeclaration(ctx *parser.LocalVariableDeclarationContext) interface{}

func (*FormatVisitor) VisitLocalVariableDeclarationStatement

func (v *FormatVisitor) VisitLocalVariableDeclarationStatement(ctx *parser.LocalVariableDeclarationStatementContext) interface{}

func (*FormatVisitor) VisitLogAndExpression

func (v *FormatVisitor) VisitLogAndExpression(ctx *parser.LogAndExpressionContext) interface{}

func (*FormatVisitor) VisitLogOrExpression

func (v *FormatVisitor) VisitLogOrExpression(ctx *parser.LogOrExpressionContext) interface{}

func (*FormatVisitor) VisitLogicalExpression

func (v *FormatVisitor) VisitLogicalExpression(ctx *parser.LogicalExpressionContext) interface{}

func (*FormatVisitor) VisitMapCreatorRest

func (v *FormatVisitor) VisitMapCreatorRest(ctx *parser.MapCreatorRestContext) interface{}

func (*FormatVisitor) VisitMapCreatorRestPair

func (v *FormatVisitor) VisitMapCreatorRestPair(ctx *parser.MapCreatorRestPairContext) interface{}

func (*FormatVisitor) VisitMemberDeclaration

func (v *FormatVisitor) VisitMemberDeclaration(ctx *parser.MemberDeclarationContext) interface{}

func (*FormatVisitor) VisitMergeStatement

func (v *FormatVisitor) VisitMergeStatement(ctx *parser.MergeStatementContext) interface{}

func (*FormatVisitor) VisitMethodCall

func (v *FormatVisitor) VisitMethodCall(ctx *parser.MethodCallContext) interface{}

func (*FormatVisitor) VisitMethodCallExpression

func (v *FormatVisitor) VisitMethodCallExpression(ctx *parser.MethodCallExpressionContext) interface{}

func (*FormatVisitor) VisitMethodDeclaration

func (v *FormatVisitor) VisitMethodDeclaration(ctx *parser.MethodDeclarationContext) interface{}

func (*FormatVisitor) VisitNegExpression

func (v *FormatVisitor) VisitNegExpression(ctx *parser.NegExpressionContext) interface{}

func (*FormatVisitor) VisitNewInstanceExpression

func (v *FormatVisitor) VisitNewInstanceExpression(ctx *parser.NewInstanceExpressionContext) interface{}

func (*FormatVisitor) VisitNoRest

func (v *FormatVisitor) VisitNoRest(ctx *parser.NoRestContext) interface{}

func (*FormatVisitor) VisitNullValue

func (v *FormatVisitor) VisitNullValue(ctx *parser.NullValueContext) interface{}

func (*FormatVisitor) VisitOffsetClause

func (v *FormatVisitor) VisitOffsetClause(ctx *parser.OffsetClauseContext) interface{}

func (*FormatVisitor) VisitOrderByClause

func (v *FormatVisitor) VisitOrderByClause(ctx *parser.OrderByClauseContext) interface{}

func (*FormatVisitor) VisitParExpression

func (v *FormatVisitor) VisitParExpression(ctx *parser.ParExpressionContext) interface{}

func (*FormatVisitor) VisitPostOpExpression

func (v *FormatVisitor) VisitPostOpExpression(ctx *parser.PostOpExpressionContext) interface{}

func (*FormatVisitor) VisitPreOpExpression

func (v *FormatVisitor) VisitPreOpExpression(ctx *parser.PreOpExpressionContext) interface{}

func (*FormatVisitor) VisitPrimaryExpression

func (v *FormatVisitor) VisitPrimaryExpression(ctx *parser.PrimaryExpressionContext) interface{}

func (*FormatVisitor) VisitPropertyBlock

func (v *FormatVisitor) VisitPropertyBlock(ctx *parser.PropertyBlockContext) interface{}

func (*FormatVisitor) VisitPropertyDeclaration

func (v *FormatVisitor) VisitPropertyDeclaration(ctx *parser.PropertyDeclarationContext) interface{}

func (*FormatVisitor) VisitQualifiedName

func (v *FormatVisitor) VisitQualifiedName(ctx *parser.QualifiedNameContext) interface{}

func (*FormatVisitor) VisitQuery

func (v *FormatVisitor) VisitQuery(ctx *parser.QueryContext) interface{}

func (*FormatVisitor) VisitReturnStatement

func (v *FormatVisitor) VisitReturnStatement(ctx *parser.ReturnStatementContext) interface{}

func (*FormatVisitor) VisitReturningFieldSpecList

func (v *FormatVisitor) VisitReturningFieldSpecList(ctx *parser.ReturningFieldSpecListContext) interface{}

func (*FormatVisitor) VisitRule

func (v *FormatVisitor) VisitRule(node antlr.RuleNode) interface{}

func (*FormatVisitor) VisitRunAsStatement

func (v *FormatVisitor) VisitRunAsStatement(ctx *parser.RunAsStatementContext) interface{}

func (*FormatVisitor) VisitSearchGroup

func (v *FormatVisitor) VisitSearchGroup(ctx *parser.SearchGroupContext) interface{}

func (*FormatVisitor) VisitSelectEntry

func (v *FormatVisitor) VisitSelectEntry(ctx *parser.SelectEntryContext) interface{}

func (*FormatVisitor) VisitSelectList

func (v *FormatVisitor) VisitSelectList(ctx *parser.SelectListContext) interface{}

func (*FormatVisitor) VisitSetCreatorRest

func (v *FormatVisitor) VisitSetCreatorRest(ctx *parser.SetCreatorRestContext) interface{}

func (*FormatVisitor) VisitSetter

func (v *FormatVisitor) VisitSetter(ctx *parser.SetterContext) interface{}

func (*FormatVisitor) VisitSignedInteger

func (v *FormatVisitor) VisitSignedInteger(ctx *parser.SignedIntegerContext) interface{}

func (*FormatVisitor) VisitSignedNumber

func (v *FormatVisitor) VisitSignedNumber(ctx *parser.SignedNumberContext) interface{}

func (*FormatVisitor) VisitSignedNumberValue

func (v *FormatVisitor) VisitSignedNumberValue(ctx *parser.SignedNumberValueContext) interface{}

func (*FormatVisitor) VisitSoqlFieldsParameter

func (v *FormatVisitor) VisitSoqlFieldsParameter(ctx *parser.SoqlFieldsParameterContext) interface{}

func (*FormatVisitor) VisitSoqlFunction

func (v *FormatVisitor) VisitSoqlFunction(ctx *parser.SoqlFunctionContext) interface{}

func (*FormatVisitor) VisitSoqlLiteral

func (v *FormatVisitor) VisitSoqlLiteral(ctx *parser.SoqlLiteralContext) interface{}

func (*FormatVisitor) VisitSoqlPrimary

func (v *FormatVisitor) VisitSoqlPrimary(ctx *parser.SoqlPrimaryContext) interface{}

func (*FormatVisitor) VisitSoslClauses

func (v *FormatVisitor) VisitSoslClauses(ctx *parser.SoslClausesContext) interface{}

func (*FormatVisitor) VisitSoslId

func (v *FormatVisitor) VisitSoslId(ctx *parser.SoslIdContext) interface{}

func (*FormatVisitor) VisitSoslLiteral

func (v *FormatVisitor) VisitSoslLiteral(ctx *parser.SoslLiteralContext) interface{}

func (*FormatVisitor) VisitSoslPrimary

func (v *FormatVisitor) VisitSoslPrimary(ctx *parser.SoslPrimaryContext) interface{}

func (*FormatVisitor) VisitStatement

func (v *FormatVisitor) VisitStatement(ctx *parser.StatementContext) interface{}

func (*FormatVisitor) VisitStringLiteralValue

func (v *FormatVisitor) VisitStringLiteralValue(ctx *parser.StringLiteralValueContext) interface{}

func (*FormatVisitor) VisitSubExpression

func (v *FormatVisitor) VisitSubExpression(ctx *parser.SubExpressionContext) interface{}

func (*FormatVisitor) VisitSubFieldEntry

func (v *FormatVisitor) VisitSubFieldEntry(ctx *parser.SubFieldEntryContext) interface{}

func (*FormatVisitor) VisitSubFieldList

func (v *FormatVisitor) VisitSubFieldList(ctx *parser.SubFieldListContext) interface{}

func (*FormatVisitor) VisitSubQuery

func (v *FormatVisitor) VisitSubQuery(ctx *parser.SubQueryContext) interface{}

func (*FormatVisitor) VisitSubQueryValue

func (v *FormatVisitor) VisitSubQueryValue(ctx *parser.SubQueryValueContext) interface{}

func (*FormatVisitor) VisitSwitchStatement

func (v *FormatVisitor) VisitSwitchStatement(ctx *parser.SwitchStatementContext) interface{}

func (*FormatVisitor) VisitThrowStatement

func (v *FormatVisitor) VisitThrowStatement(ctx *parser.ThrowStatementContext) interface{}

func (*FormatVisitor) VisitTimeLiteralValue

func (v *FormatVisitor) VisitTimeLiteralValue(ctx *parser.TimeLiteralValueContext) interface{}

func (*FormatVisitor) VisitTriggerBlock

func (v *FormatVisitor) VisitTriggerBlock(ctx *parser.TriggerBlockContext) interface{}

func (*FormatVisitor) VisitTriggerCase

func (v *FormatVisitor) VisitTriggerCase(ctx *parser.TriggerCaseContext) interface{}

func (*FormatVisitor) VisitTriggerStatement

func (v *FormatVisitor) VisitTriggerStatement(ctx *parser.TriggerStatementContext) interface{}

func (*FormatVisitor) VisitTriggerUnit

func (v *FormatVisitor) VisitTriggerUnit(ctx *parser.TriggerUnitContext) interface{}

func (*FormatVisitor) VisitTryStatement

func (v *FormatVisitor) VisitTryStatement(ctx *parser.TryStatementContext) interface{}

func (*FormatVisitor) VisitTypeArguments

func (v *FormatVisitor) VisitTypeArguments(ctx *parser.TypeArgumentsContext) interface{}

func (*FormatVisitor) VisitTypeList

func (v *FormatVisitor) VisitTypeList(ctx *parser.TypeListContext) interface{}

func (*FormatVisitor) VisitTypeName

func (v *FormatVisitor) VisitTypeName(ctx *parser.TypeNameContext) interface{}

func (*FormatVisitor) VisitTypeOf

func (v *FormatVisitor) VisitTypeOf(ctx *parser.TypeOfContext) interface{}

func (*FormatVisitor) VisitTypeRef

func (v *FormatVisitor) VisitTypeRef(ctx *parser.TypeRefContext) interface{}

func (*FormatVisitor) VisitTypeRefPrimary

func (v *FormatVisitor) VisitTypeRefPrimary(ctx *parser.TypeRefPrimaryContext) interface{}

func (*FormatVisitor) VisitUndeleteStatement

func (v *FormatVisitor) VisitUndeleteStatement(ctx *parser.UndeleteStatementContext) interface{}

func (*FormatVisitor) VisitUpdateList

func (v *FormatVisitor) VisitUpdateList(ctx *parser.UpdateListContext) interface{}

func (*FormatVisitor) VisitUpdateStatement

func (v *FormatVisitor) VisitUpdateStatement(ctx *parser.UpdateStatementContext) interface{}

func (*FormatVisitor) VisitUpsertStatement

func (v *FormatVisitor) VisitUpsertStatement(ctx *parser.UpsertStatementContext) interface{}

func (*FormatVisitor) VisitUsingScope

func (v *FormatVisitor) VisitUsingScope(ctx *parser.UsingScopeContext) interface{}

func (*FormatVisitor) VisitValueList

func (v *FormatVisitor) VisitValueList(ctx *parser.ValueListContext) interface{}

func (*FormatVisitor) VisitValueListValue

func (v *FormatVisitor) VisitValueListValue(ctx *parser.ValueListValueContext) interface{}

func (*FormatVisitor) VisitVariableDeclarator

func (v *FormatVisitor) VisitVariableDeclarator(ctx *parser.VariableDeclaratorContext) interface{}

func (*FormatVisitor) VisitVariableDeclarators

func (v *FormatVisitor) VisitVariableDeclarators(ctx *parser.VariableDeclaratorsContext) interface{}

func (*FormatVisitor) VisitWhenClause

func (v *FormatVisitor) VisitWhenClause(ctx *parser.WhenClauseContext) interface{}

func (*FormatVisitor) VisitWhenControl

func (v *FormatVisitor) VisitWhenControl(ctx *parser.WhenControlContext) interface{}

func (*FormatVisitor) VisitWhenLiteral

func (v *FormatVisitor) VisitWhenLiteral(ctx *parser.WhenLiteralContext) interface{}

func (*FormatVisitor) VisitWhenValue

func (v *FormatVisitor) VisitWhenValue(ctx *parser.WhenValueContext) interface{}

func (*FormatVisitor) VisitWhereClause

func (v *FormatVisitor) VisitWhereClause(ctx *parser.WhereClauseContext) interface{}

func (*FormatVisitor) VisitWhileStatement

func (v *FormatVisitor) VisitWhileStatement(ctx *parser.WhileStatementContext) interface{}

type Formatter

type Formatter struct {
	// contains filtered or unexported fields
}

func NewFormatter

func NewFormatter(filename string, reader io.Reader) *Formatter

func (*Formatter) Changed

func (f *Formatter) Changed() (bool, error)

func (*Formatter) Format

func (f *Formatter) Format() error

func (*Formatter) Formatted

func (f *Formatter) Formatted() (string, error)

func (*Formatter) SourceName

func (f *Formatter) SourceName() string

func (*Formatter) Write

func (f *Formatter) Write() error

type IndentVisitor

type IndentVisitor struct {
	parser.BaseApexParserVisitor
}

func NewIndentVisitor

func NewIndentVisitor() *IndentVisitor

func (*IndentVisitor) VisitDotExpression

func (v *IndentVisitor) VisitDotExpression(ctx *parser.DotExpressionContext) interface{}

func (*IndentVisitor) VisitExpressionList

func (v *IndentVisitor) VisitExpressionList(ctx *parser.ExpressionListContext) interface{}

func (*IndentVisitor) VisitNewInstanceExpression

func (v *IndentVisitor) VisitNewInstanceExpression(ctx *parser.NewInstanceExpressionContext) interface{}

type SOQLFormatter

type SOQLFormatter struct {
	// contains filtered or unexported fields
}

func NewSOQLFormatter

func NewSOQLFormatter() *SOQLFormatter

func (*SOQLFormatter) Changed

func (f *SOQLFormatter) Changed() (bool, error)

func (*SOQLFormatter) Format

func (f *SOQLFormatter) Format() error

func (*SOQLFormatter) Formatted

func (f *SOQLFormatter) Formatted() (string, error)

Jump to

Keyboard shortcuts

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