terraform

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package terraform import/export of terraform files Copyright 2021 taralizer authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	TerraformLexerT__0            = 1
	TerraformLexerT__1            = 2
	TerraformLexerT__2            = 3
	TerraformLexerT__3            = 4
	TerraformLexerT__4            = 5
	TerraformLexerT__5            = 6
	TerraformLexerT__6            = 7
	TerraformLexerT__7            = 8
	TerraformLexerT__8            = 9
	TerraformLexerT__9            = 10
	TerraformLexerT__10           = 11
	TerraformLexerT__11           = 12
	TerraformLexerT__12           = 13
	TerraformLexerT__13           = 14
	TerraformLexerT__14           = 15
	TerraformLexerT__15           = 16
	TerraformLexerT__16           = 17
	TerraformLexerT__17           = 18
	TerraformLexerT__18           = 19
	TerraformLexerT__19           = 20
	TerraformLexerT__20           = 21
	TerraformLexerT__21           = 22
	TerraformLexerT__22           = 23
	TerraformLexerT__23           = 24
	TerraformLexerT__24           = 25
	TerraformLexerT__25           = 26
	TerraformLexerT__26           = 27
	TerraformLexerT__27           = 28
	TerraformLexerT__28           = 29
	TerraformLexerVARIABLE        = 30
	TerraformLexerPROVIDER        = 31
	TerraformLexerIN              = 32
	TerraformLexerSTAR            = 33
	TerraformLexerDOT             = 34
	TerraformLexerLCURL           = 35
	TerraformLexerRCURL           = 36
	TerraformLexerLPAREN          = 37
	TerraformLexerRPAREN          = 38
	TerraformLexerEOF_            = 39
	TerraformLexerNULL_           = 40
	TerraformLexerNATURAL_NUMBER  = 41
	TerraformLexerBOOL            = 42
	TerraformLexerDESCRIPTION     = 43
	TerraformLexerMULTILINESTRING = 44
	TerraformLexerSTRING          = 45
	TerraformLexerIDENTIFIER      = 46
	TerraformLexerCOMMENT         = 47
	TerraformLexerBLOCKCOMMENT    = 48
	TerraformLexerWS              = 49
)

TerraformLexer tokens.

View Source
const (
	TerraformParserEOF             = antlr.TokenEOF
	TerraformParserT__0            = 1
	TerraformParserT__1            = 2
	TerraformParserT__2            = 3
	TerraformParserT__3            = 4
	TerraformParserT__4            = 5
	TerraformParserT__5            = 6
	TerraformParserT__6            = 7
	TerraformParserT__7            = 8
	TerraformParserT__8            = 9
	TerraformParserT__9            = 10
	TerraformParserT__10           = 11
	TerraformParserT__11           = 12
	TerraformParserT__12           = 13
	TerraformParserT__13           = 14
	TerraformParserT__14           = 15
	TerraformParserT__15           = 16
	TerraformParserT__16           = 17
	TerraformParserT__17           = 18
	TerraformParserT__18           = 19
	TerraformParserT__19           = 20
	TerraformParserT__20           = 21
	TerraformParserT__21           = 22
	TerraformParserT__22           = 23
	TerraformParserT__23           = 24
	TerraformParserT__24           = 25
	TerraformParserT__25           = 26
	TerraformParserT__26           = 27
	TerraformParserT__27           = 28
	TerraformParserT__28           = 29
	TerraformParserVARIABLE        = 30
	TerraformParserPROVIDER        = 31
	TerraformParserIN              = 32
	TerraformParserSTAR            = 33
	TerraformParserDOT             = 34
	TerraformParserLCURL           = 35
	TerraformParserRCURL           = 36
	TerraformParserLPAREN          = 37
	TerraformParserRPAREN          = 38
	TerraformParserEOF_            = 39
	TerraformParserNULL_           = 40
	TerraformParserNATURAL_NUMBER  = 41
	TerraformParserBOOL            = 42
	TerraformParserDESCRIPTION     = 43
	TerraformParserMULTILINESTRING = 44
	TerraformParserSTRING          = 45
	TerraformParserIDENTIFIER      = 46
	TerraformParserCOMMENT         = 47
	TerraformParserBLOCKCOMMENT    = 48
	TerraformParserWS              = 49
)

TerraformParser tokens.

View Source
const (
	TerraformParserRULE_file_             = 0
	TerraformParserRULE_terraform         = 1
	TerraformParserRULE_resource          = 2
	TerraformParserRULE_data              = 3
	TerraformParserRULE_provider          = 4
	TerraformParserRULE_output            = 5
	TerraformParserRULE_local             = 6
	TerraformParserRULE_module            = 7
	TerraformParserRULE_variable          = 8
	TerraformParserRULE_block             = 9
	TerraformParserRULE_blocktype         = 10
	TerraformParserRULE_resourcetype      = 11
	TerraformParserRULE_name              = 12
	TerraformParserRULE_label             = 13
	TerraformParserRULE_blockbody         = 14
	TerraformParserRULE_argument          = 15
	TerraformParserRULE_identifier        = 16
	TerraformParserRULE_identifierchain   = 17
	TerraformParserRULE_inline_index      = 18
	TerraformParserRULE_expression        = 19
	TerraformParserRULE_forloop           = 20
	TerraformParserRULE_section           = 21
	TerraformParserRULE_val               = 22
	TerraformParserRULE_functioncall      = 23
	TerraformParserRULE_functionname      = 24
	TerraformParserRULE_functionarguments = 25
	TerraformParserRULE_index             = 26
	TerraformParserRULE_filedecl          = 27
	TerraformParserRULE_list_             = 28
	TerraformParserRULE_map_              = 29
	TerraformParserRULE_string            = 30
	TerraformParserRULE_signed_number     = 31
	TerraformParserRULE_operator_         = 32
	TerraformParserRULE_number            = 33
)

TerraformParser rules.

Variables

This section is empty.

Functions

func TerraformLexerInit

func TerraformLexerInit()

TerraformLexerInit initializes any static state used to implement TerraformLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewTerraformLexer(). You can call this function if you wish to initialize the static state ahead of time.

func TerraformParserInit

func TerraformParserInit()

TerraformParserInit initializes any static state used to implement TerraformParser. By default the static state used to implement the parser is lazily initialized during the first call to NewTerraformParser(). You can call this function if you wish to initialize the static state ahead of time.

Types

type ArgumentContext

type ArgumentContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewArgumentContext

func NewArgumentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArgumentContext

func NewEmptyArgumentContext

func NewEmptyArgumentContext() *ArgumentContext

func (*ArgumentContext) EnterRule

func (s *ArgumentContext) EnterRule(listener antlr.ParseTreeListener)

func (*ArgumentContext) ExitRule

func (s *ArgumentContext) ExitRule(listener antlr.ParseTreeListener)

func (*ArgumentContext) Expression

func (s *ArgumentContext) Expression() IExpressionContext

func (*ArgumentContext) GetParser

func (s *ArgumentContext) GetParser() antlr.Parser

func (*ArgumentContext) GetRuleContext

func (s *ArgumentContext) GetRuleContext() antlr.RuleContext

func (*ArgumentContext) Identifier

func (s *ArgumentContext) Identifier() IIdentifierContext

func (*ArgumentContext) IsArgumentContext

func (*ArgumentContext) IsArgumentContext()

func (*ArgumentContext) ToStringTree

func (s *ArgumentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type BaseTerraformListener

type BaseTerraformListener struct{}

BaseTerraformListener is a complete listener for a parse tree produced by TerraformParser.

func (*BaseTerraformListener) EnterArgument

func (s *BaseTerraformListener) EnterArgument(ctx *ArgumentContext)

EnterArgument is called when production argument is entered.

func (*BaseTerraformListener) EnterBlock

func (s *BaseTerraformListener) EnterBlock(ctx *BlockContext)

EnterBlock is called when production block is entered.

func (*BaseTerraformListener) EnterBlockbody

func (s *BaseTerraformListener) EnterBlockbody(ctx *BlockbodyContext)

EnterBlockbody is called when production blockbody is entered.

func (*BaseTerraformListener) EnterBlocktype

func (s *BaseTerraformListener) EnterBlocktype(ctx *BlocktypeContext)

EnterBlocktype is called when production blocktype is entered.

func (*BaseTerraformListener) EnterData

func (s *BaseTerraformListener) EnterData(ctx *DataContext)

EnterData is called when production data is entered.

func (*BaseTerraformListener) EnterEveryRule

func (s *BaseTerraformListener) EnterEveryRule(ctx antlr.ParserRuleContext)

EnterEveryRule is called when any rule is entered.

func (*BaseTerraformListener) EnterExpression

func (s *BaseTerraformListener) EnterExpression(ctx *ExpressionContext)

EnterExpression is called when production expression is entered.

func (*BaseTerraformListener) EnterFile_

func (s *BaseTerraformListener) EnterFile_(ctx *File_Context)

EnterFile_ is called when production file_ is entered.

func (*BaseTerraformListener) EnterFiledecl

func (s *BaseTerraformListener) EnterFiledecl(ctx *FiledeclContext)

EnterFiledecl is called when production filedecl is entered.

func (*BaseTerraformListener) EnterForloop

func (s *BaseTerraformListener) EnterForloop(ctx *ForloopContext)

EnterForloop is called when production forloop is entered.

func (*BaseTerraformListener) EnterFunctionarguments

func (s *BaseTerraformListener) EnterFunctionarguments(ctx *FunctionargumentsContext)

EnterFunctionarguments is called when production functionarguments is entered.

func (*BaseTerraformListener) EnterFunctioncall

func (s *BaseTerraformListener) EnterFunctioncall(ctx *FunctioncallContext)

EnterFunctioncall is called when production functioncall is entered.

func (*BaseTerraformListener) EnterFunctionname

func (s *BaseTerraformListener) EnterFunctionname(ctx *FunctionnameContext)

EnterFunctionname is called when production functionname is entered.

func (*BaseTerraformListener) EnterIdentifier

func (s *BaseTerraformListener) EnterIdentifier(ctx *IdentifierContext)

EnterIdentifier is called when production identifier is entered.

func (*BaseTerraformListener) EnterIdentifierchain

func (s *BaseTerraformListener) EnterIdentifierchain(ctx *IdentifierchainContext)

EnterIdentifierchain is called when production identifierchain is entered.

func (*BaseTerraformListener) EnterIndex

func (s *BaseTerraformListener) EnterIndex(ctx *IndexContext)

EnterIndex is called when production index is entered.

func (*BaseTerraformListener) EnterInline_index

func (s *BaseTerraformListener) EnterInline_index(ctx *Inline_indexContext)

EnterInline_index is called when production inline_index is entered.

func (*BaseTerraformListener) EnterLabel

func (s *BaseTerraformListener) EnterLabel(ctx *LabelContext)

EnterLabel is called when production label is entered.

func (*BaseTerraformListener) EnterList_

func (s *BaseTerraformListener) EnterList_(ctx *List_Context)

EnterList_ is called when production list_ is entered.

func (*BaseTerraformListener) EnterLocal

func (s *BaseTerraformListener) EnterLocal(ctx *LocalContext)

EnterLocal is called when production local is entered.

func (*BaseTerraformListener) EnterMap_

func (s *BaseTerraformListener) EnterMap_(ctx *Map_Context)

EnterMap_ is called when production map_ is entered.

func (*BaseTerraformListener) EnterModule

func (s *BaseTerraformListener) EnterModule(ctx *ModuleContext)

EnterModule is called when production module is entered.

func (*BaseTerraformListener) EnterName

func (s *BaseTerraformListener) EnterName(ctx *NameContext)

EnterName is called when production name is entered.

func (*BaseTerraformListener) EnterNumber

func (s *BaseTerraformListener) EnterNumber(ctx *NumberContext)

EnterNumber is called when production number is entered.

func (*BaseTerraformListener) EnterOperator_

func (s *BaseTerraformListener) EnterOperator_(ctx *Operator_Context)

EnterOperator_ is called when production operator_ is entered.

func (*BaseTerraformListener) EnterOutput

func (s *BaseTerraformListener) EnterOutput(ctx *OutputContext)

EnterOutput is called when production output is entered.

func (*BaseTerraformListener) EnterProvider

func (s *BaseTerraformListener) EnterProvider(ctx *ProviderContext)

EnterProvider is called when production provider is entered.

func (*BaseTerraformListener) EnterResource

func (s *BaseTerraformListener) EnterResource(ctx *ResourceContext)

EnterResource is called when production resource is entered.

func (*BaseTerraformListener) EnterResourcetype

func (s *BaseTerraformListener) EnterResourcetype(ctx *ResourcetypeContext)

EnterResourcetype is called when production resourcetype is entered.

func (*BaseTerraformListener) EnterSection

func (s *BaseTerraformListener) EnterSection(ctx *SectionContext)

EnterSection is called when production section is entered.

func (*BaseTerraformListener) EnterSigned_number

func (s *BaseTerraformListener) EnterSigned_number(ctx *Signed_numberContext)

EnterSigned_number is called when production signed_number is entered.

func (*BaseTerraformListener) EnterString

func (s *BaseTerraformListener) EnterString(ctx *StringContext)

EnterString is called when production string is entered.

func (*BaseTerraformListener) EnterTerraform

func (s *BaseTerraformListener) EnterTerraform(ctx *TerraformContext)

EnterTerraform is called when production terraform is entered.

func (*BaseTerraformListener) EnterVal

func (s *BaseTerraformListener) EnterVal(ctx *ValContext)

EnterVal is called when production val is entered.

func (*BaseTerraformListener) EnterVariable

func (s *BaseTerraformListener) EnterVariable(ctx *VariableContext)

EnterVariable is called when production variable is entered.

func (*BaseTerraformListener) ExitArgument

func (s *BaseTerraformListener) ExitArgument(ctx *ArgumentContext)

ExitArgument is called when production argument is exited.

func (*BaseTerraformListener) ExitBlock

func (s *BaseTerraformListener) ExitBlock(ctx *BlockContext)

ExitBlock is called when production block is exited.

func (*BaseTerraformListener) ExitBlockbody

func (s *BaseTerraformListener) ExitBlockbody(ctx *BlockbodyContext)

ExitBlockbody is called when production blockbody is exited.

func (*BaseTerraformListener) ExitBlocktype

func (s *BaseTerraformListener) ExitBlocktype(ctx *BlocktypeContext)

ExitBlocktype is called when production blocktype is exited.

func (*BaseTerraformListener) ExitData

func (s *BaseTerraformListener) ExitData(ctx *DataContext)

ExitData is called when production data is exited.

func (*BaseTerraformListener) ExitEveryRule

func (s *BaseTerraformListener) ExitEveryRule(ctx antlr.ParserRuleContext)

ExitEveryRule is called when any rule is exited.

func (*BaseTerraformListener) ExitExpression

func (s *BaseTerraformListener) ExitExpression(ctx *ExpressionContext)

ExitExpression is called when production expression is exited.

func (*BaseTerraformListener) ExitFile_

func (s *BaseTerraformListener) ExitFile_(ctx *File_Context)

ExitFile_ is called when production file_ is exited.

func (*BaseTerraformListener) ExitFiledecl

func (s *BaseTerraformListener) ExitFiledecl(ctx *FiledeclContext)

ExitFiledecl is called when production filedecl is exited.

func (*BaseTerraformListener) ExitForloop

func (s *BaseTerraformListener) ExitForloop(ctx *ForloopContext)

ExitForloop is called when production forloop is exited.

func (*BaseTerraformListener) ExitFunctionarguments

func (s *BaseTerraformListener) ExitFunctionarguments(ctx *FunctionargumentsContext)

ExitFunctionarguments is called when production functionarguments is exited.

func (*BaseTerraformListener) ExitFunctioncall

func (s *BaseTerraformListener) ExitFunctioncall(ctx *FunctioncallContext)

ExitFunctioncall is called when production functioncall is exited.

func (*BaseTerraformListener) ExitFunctionname

func (s *BaseTerraformListener) ExitFunctionname(ctx *FunctionnameContext)

ExitFunctionname is called when production functionname is exited.

func (*BaseTerraformListener) ExitIdentifier

func (s *BaseTerraformListener) ExitIdentifier(ctx *IdentifierContext)

ExitIdentifier is called when production identifier is exited.

func (*BaseTerraformListener) ExitIdentifierchain

func (s *BaseTerraformListener) ExitIdentifierchain(ctx *IdentifierchainContext)

ExitIdentifierchain is called when production identifierchain is exited.

func (*BaseTerraformListener) ExitIndex

func (s *BaseTerraformListener) ExitIndex(ctx *IndexContext)

ExitIndex is called when production index is exited.

func (*BaseTerraformListener) ExitInline_index

func (s *BaseTerraformListener) ExitInline_index(ctx *Inline_indexContext)

ExitInline_index is called when production inline_index is exited.

func (*BaseTerraformListener) ExitLabel

func (s *BaseTerraformListener) ExitLabel(ctx *LabelContext)

ExitLabel is called when production label is exited.

func (*BaseTerraformListener) ExitList_

func (s *BaseTerraformListener) ExitList_(ctx *List_Context)

ExitList_ is called when production list_ is exited.

func (*BaseTerraformListener) ExitLocal

func (s *BaseTerraformListener) ExitLocal(ctx *LocalContext)

ExitLocal is called when production local is exited.

func (*BaseTerraformListener) ExitMap_

func (s *BaseTerraformListener) ExitMap_(ctx *Map_Context)

ExitMap_ is called when production map_ is exited.

func (*BaseTerraformListener) ExitModule

func (s *BaseTerraformListener) ExitModule(ctx *ModuleContext)

ExitModule is called when production module is exited.

func (*BaseTerraformListener) ExitName

func (s *BaseTerraformListener) ExitName(ctx *NameContext)

ExitName is called when production name is exited.

func (*BaseTerraformListener) ExitNumber

func (s *BaseTerraformListener) ExitNumber(ctx *NumberContext)

ExitNumber is called when production number is exited.

func (*BaseTerraformListener) ExitOperator_

func (s *BaseTerraformListener) ExitOperator_(ctx *Operator_Context)

ExitOperator_ is called when production operator_ is exited.

func (*BaseTerraformListener) ExitOutput

func (s *BaseTerraformListener) ExitOutput(ctx *OutputContext)

ExitOutput is called when production output is exited.

func (*BaseTerraformListener) ExitProvider

func (s *BaseTerraformListener) ExitProvider(ctx *ProviderContext)

ExitProvider is called when production provider is exited.

func (*BaseTerraformListener) ExitResource

func (s *BaseTerraformListener) ExitResource(ctx *ResourceContext)

ExitResource is called when production resource is exited.

func (*BaseTerraformListener) ExitResourcetype

func (s *BaseTerraformListener) ExitResourcetype(ctx *ResourcetypeContext)

ExitResourcetype is called when production resourcetype is exited.

func (*BaseTerraformListener) ExitSection

func (s *BaseTerraformListener) ExitSection(ctx *SectionContext)

ExitSection is called when production section is exited.

func (*BaseTerraformListener) ExitSigned_number

func (s *BaseTerraformListener) ExitSigned_number(ctx *Signed_numberContext)

ExitSigned_number is called when production signed_number is exited.

func (*BaseTerraformListener) ExitString

func (s *BaseTerraformListener) ExitString(ctx *StringContext)

ExitString is called when production string is exited.

func (*BaseTerraformListener) ExitTerraform

func (s *BaseTerraformListener) ExitTerraform(ctx *TerraformContext)

ExitTerraform is called when production terraform is exited.

func (*BaseTerraformListener) ExitVal

func (s *BaseTerraformListener) ExitVal(ctx *ValContext)

ExitVal is called when production val is exited.

func (*BaseTerraformListener) ExitVariable

func (s *BaseTerraformListener) ExitVariable(ctx *VariableContext)

ExitVariable is called when production variable is exited.

func (*BaseTerraformListener) VisitErrorNode

func (s *BaseTerraformListener) VisitErrorNode(node antlr.ErrorNode)

VisitErrorNode is called when an error node is visited.

func (*BaseTerraformListener) VisitTerminal

func (s *BaseTerraformListener) VisitTerminal(node antlr.TerminalNode)

VisitTerminal is called when a terminal node is visited.

type BlockContext

type BlockContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewBlockContext

func NewBlockContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BlockContext

func NewEmptyBlockContext

func NewEmptyBlockContext() *BlockContext

func (*BlockContext) AllLabel

func (s *BlockContext) AllLabel() []ILabelContext

func (*BlockContext) Blockbody

func (s *BlockContext) Blockbody() IBlockbodyContext

func (*BlockContext) Blocktype

func (s *BlockContext) Blocktype() IBlocktypeContext

func (*BlockContext) EnterRule

func (s *BlockContext) EnterRule(listener antlr.ParseTreeListener)

func (*BlockContext) ExitRule

func (s *BlockContext) ExitRule(listener antlr.ParseTreeListener)

func (*BlockContext) GetParser

func (s *BlockContext) GetParser() antlr.Parser

func (*BlockContext) GetRuleContext

func (s *BlockContext) GetRuleContext() antlr.RuleContext

func (*BlockContext) IsBlockContext

func (*BlockContext) IsBlockContext()

func (*BlockContext) Label

func (s *BlockContext) Label(i int) ILabelContext

func (*BlockContext) ToStringTree

func (s *BlockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type BlockbodyContext

type BlockbodyContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewBlockbodyContext

func NewBlockbodyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BlockbodyContext

func NewEmptyBlockbodyContext

func NewEmptyBlockbodyContext() *BlockbodyContext

func (*BlockbodyContext) AllArgument

func (s *BlockbodyContext) AllArgument() []IArgumentContext

func (*BlockbodyContext) AllBlock

func (s *BlockbodyContext) AllBlock() []IBlockContext

func (*BlockbodyContext) Argument

func (s *BlockbodyContext) Argument(i int) IArgumentContext

func (*BlockbodyContext) Block

func (s *BlockbodyContext) Block(i int) IBlockContext

func (*BlockbodyContext) EnterRule

func (s *BlockbodyContext) EnterRule(listener antlr.ParseTreeListener)

func (*BlockbodyContext) ExitRule

func (s *BlockbodyContext) ExitRule(listener antlr.ParseTreeListener)

func (*BlockbodyContext) GetParser

func (s *BlockbodyContext) GetParser() antlr.Parser

func (*BlockbodyContext) GetRuleContext

func (s *BlockbodyContext) GetRuleContext() antlr.RuleContext

func (*BlockbodyContext) IsBlockbodyContext

func (*BlockbodyContext) IsBlockbodyContext()

func (*BlockbodyContext) LCURL

func (s *BlockbodyContext) LCURL() antlr.TerminalNode

func (*BlockbodyContext) RCURL

func (s *BlockbodyContext) RCURL() antlr.TerminalNode

func (*BlockbodyContext) ToStringTree

func (s *BlockbodyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type BlocktypeContext

type BlocktypeContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewBlocktypeContext

func NewBlocktypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BlocktypeContext

func NewEmptyBlocktypeContext

func NewEmptyBlocktypeContext() *BlocktypeContext

func (*BlocktypeContext) EnterRule

func (s *BlocktypeContext) EnterRule(listener antlr.ParseTreeListener)

func (*BlocktypeContext) ExitRule

func (s *BlocktypeContext) ExitRule(listener antlr.ParseTreeListener)

func (*BlocktypeContext) GetParser

func (s *BlocktypeContext) GetParser() antlr.Parser

func (*BlocktypeContext) GetRuleContext

func (s *BlocktypeContext) GetRuleContext() antlr.RuleContext

func (*BlocktypeContext) IDENTIFIER

func (s *BlocktypeContext) IDENTIFIER() antlr.TerminalNode

func (*BlocktypeContext) IsBlocktypeContext

func (*BlocktypeContext) IsBlocktypeContext()

func (*BlocktypeContext) ToStringTree

func (s *BlocktypeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type DataContext

type DataContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewDataContext

func NewDataContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DataContext

func NewEmptyDataContext

func NewEmptyDataContext() *DataContext

func (*DataContext) Blockbody

func (s *DataContext) Blockbody() IBlockbodyContext

func (*DataContext) EnterRule

func (s *DataContext) EnterRule(listener antlr.ParseTreeListener)

func (*DataContext) ExitRule

func (s *DataContext) ExitRule(listener antlr.ParseTreeListener)

func (*DataContext) GetParser

func (s *DataContext) GetParser() antlr.Parser

func (*DataContext) GetRuleContext

func (s *DataContext) GetRuleContext() antlr.RuleContext

func (*DataContext) IsDataContext

func (*DataContext) IsDataContext()

func (*DataContext) Name

func (s *DataContext) Name() INameContext

func (*DataContext) Resourcetype

func (s *DataContext) Resourcetype() IResourcetypeContext

func (*DataContext) ToStringTree

func (s *DataContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ExpressionContext

type ExpressionContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyExpressionContext

func NewEmptyExpressionContext() *ExpressionContext

func NewExpressionContext

func NewExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionContext

func (*ExpressionContext) AllExpression

func (s *ExpressionContext) AllExpression() []IExpressionContext

func (*ExpressionContext) EnterRule

func (s *ExpressionContext) EnterRule(listener antlr.ParseTreeListener)

func (*ExpressionContext) ExitRule

func (s *ExpressionContext) ExitRule(listener antlr.ParseTreeListener)

func (*ExpressionContext) Expression

func (s *ExpressionContext) Expression(i int) IExpressionContext

func (*ExpressionContext) Forloop

func (s *ExpressionContext) Forloop() IForloopContext

func (*ExpressionContext) GetParser

func (s *ExpressionContext) GetParser() antlr.Parser

func (*ExpressionContext) GetRuleContext

func (s *ExpressionContext) GetRuleContext() antlr.RuleContext

func (*ExpressionContext) IsExpressionContext

func (*ExpressionContext) IsExpressionContext()

func (*ExpressionContext) LPAREN

func (s *ExpressionContext) LPAREN() antlr.TerminalNode

func (*ExpressionContext) Operator_

func (s *ExpressionContext) Operator_() IOperator_Context

func (*ExpressionContext) RPAREN

func (s *ExpressionContext) RPAREN() antlr.TerminalNode

func (*ExpressionContext) Section

func (s *ExpressionContext) Section() ISectionContext

func (*ExpressionContext) ToStringTree

func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type File_Context

type File_Context struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyFile_Context

func NewEmptyFile_Context() *File_Context

func NewFile_Context

func NewFile_Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *File_Context

func (*File_Context) AllData

func (s *File_Context) AllData() []IDataContext

func (*File_Context) AllLocal

func (s *File_Context) AllLocal() []ILocalContext

func (*File_Context) AllModule

func (s *File_Context) AllModule() []IModuleContext

func (*File_Context) AllOutput

func (s *File_Context) AllOutput() []IOutputContext

func (*File_Context) AllProvider

func (s *File_Context) AllProvider() []IProviderContext

func (*File_Context) AllResource

func (s *File_Context) AllResource() []IResourceContext

func (*File_Context) AllTerraform

func (s *File_Context) AllTerraform() []ITerraformContext

func (*File_Context) AllVariable

func (s *File_Context) AllVariable() []IVariableContext

func (*File_Context) Data

func (s *File_Context) Data(i int) IDataContext

func (*File_Context) EOF

func (s *File_Context) EOF() antlr.TerminalNode

func (*File_Context) EnterRule

func (s *File_Context) EnterRule(listener antlr.ParseTreeListener)

func (*File_Context) ExitRule

func (s *File_Context) ExitRule(listener antlr.ParseTreeListener)

func (*File_Context) GetParser

func (s *File_Context) GetParser() antlr.Parser

func (*File_Context) GetRuleContext

func (s *File_Context) GetRuleContext() antlr.RuleContext

func (*File_Context) IsFile_Context

func (*File_Context) IsFile_Context()

func (*File_Context) Local

func (s *File_Context) Local(i int) ILocalContext

func (*File_Context) Module

func (s *File_Context) Module(i int) IModuleContext

func (*File_Context) Output

func (s *File_Context) Output(i int) IOutputContext

func (*File_Context) Provider

func (s *File_Context) Provider(i int) IProviderContext

func (*File_Context) Resource

func (s *File_Context) Resource(i int) IResourceContext

func (*File_Context) Terraform

func (s *File_Context) Terraform(i int) ITerraformContext

func (*File_Context) ToStringTree

func (s *File_Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*File_Context) Variable

func (s *File_Context) Variable(i int) IVariableContext

type FiledeclContext

type FiledeclContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyFiledeclContext

func NewEmptyFiledeclContext() *FiledeclContext

func NewFiledeclContext

func NewFiledeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FiledeclContext

func (*FiledeclContext) EnterRule

func (s *FiledeclContext) EnterRule(listener antlr.ParseTreeListener)

func (*FiledeclContext) ExitRule

func (s *FiledeclContext) ExitRule(listener antlr.ParseTreeListener)

func (*FiledeclContext) Expression

func (s *FiledeclContext) Expression() IExpressionContext

func (*FiledeclContext) GetParser

func (s *FiledeclContext) GetParser() antlr.Parser

func (*FiledeclContext) GetRuleContext

func (s *FiledeclContext) GetRuleContext() antlr.RuleContext

func (*FiledeclContext) IsFiledeclContext

func (*FiledeclContext) IsFiledeclContext()

func (*FiledeclContext) LPAREN

func (s *FiledeclContext) LPAREN() antlr.TerminalNode

func (*FiledeclContext) RPAREN

func (s *FiledeclContext) RPAREN() antlr.TerminalNode

func (*FiledeclContext) ToStringTree

func (s *FiledeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ForloopContext

type ForloopContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyForloopContext

func NewEmptyForloopContext() *ForloopContext

func NewForloopContext

func NewForloopContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ForloopContext

func (*ForloopContext) AllExpression

func (s *ForloopContext) AllExpression() []IExpressionContext

func (*ForloopContext) EnterRule

func (s *ForloopContext) EnterRule(listener antlr.ParseTreeListener)

func (*ForloopContext) ExitRule

func (s *ForloopContext) ExitRule(listener antlr.ParseTreeListener)

func (*ForloopContext) Expression

func (s *ForloopContext) Expression(i int) IExpressionContext

func (*ForloopContext) GetParser

func (s *ForloopContext) GetParser() antlr.Parser

func (*ForloopContext) GetRuleContext

func (s *ForloopContext) GetRuleContext() antlr.RuleContext

func (*ForloopContext) IN

func (s *ForloopContext) IN() antlr.TerminalNode

func (*ForloopContext) Identifier

func (s *ForloopContext) Identifier() IIdentifierContext

func (*ForloopContext) IsForloopContext

func (*ForloopContext) IsForloopContext()

func (*ForloopContext) ToStringTree

func (s *ForloopContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type FunctionargumentsContext

type FunctionargumentsContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyFunctionargumentsContext

func NewEmptyFunctionargumentsContext() *FunctionargumentsContext

func NewFunctionargumentsContext

func NewFunctionargumentsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunctionargumentsContext

func (*FunctionargumentsContext) AllExpression

func (s *FunctionargumentsContext) AllExpression() []IExpressionContext

func (*FunctionargumentsContext) EnterRule

func (s *FunctionargumentsContext) EnterRule(listener antlr.ParseTreeListener)

func (*FunctionargumentsContext) ExitRule

func (s *FunctionargumentsContext) ExitRule(listener antlr.ParseTreeListener)

func (*FunctionargumentsContext) Expression

func (*FunctionargumentsContext) GetParser

func (s *FunctionargumentsContext) GetParser() antlr.Parser

func (*FunctionargumentsContext) GetRuleContext

func (s *FunctionargumentsContext) GetRuleContext() antlr.RuleContext

func (*FunctionargumentsContext) IsFunctionargumentsContext

func (*FunctionargumentsContext) IsFunctionargumentsContext()

func (*FunctionargumentsContext) ToStringTree

func (s *FunctionargumentsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type FunctioncallContext

type FunctioncallContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyFunctioncallContext

func NewEmptyFunctioncallContext() *FunctioncallContext

func NewFunctioncallContext

func NewFunctioncallContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunctioncallContext

func (*FunctioncallContext) EnterRule

func (s *FunctioncallContext) EnterRule(listener antlr.ParseTreeListener)

func (*FunctioncallContext) ExitRule

func (s *FunctioncallContext) ExitRule(listener antlr.ParseTreeListener)

func (*FunctioncallContext) Functionarguments

func (s *FunctioncallContext) Functionarguments() IFunctionargumentsContext

func (*FunctioncallContext) Functionname

func (s *FunctioncallContext) Functionname() IFunctionnameContext

func (*FunctioncallContext) GetParser

func (s *FunctioncallContext) GetParser() antlr.Parser

func (*FunctioncallContext) GetRuleContext

func (s *FunctioncallContext) GetRuleContext() antlr.RuleContext

func (*FunctioncallContext) IsFunctioncallContext

func (*FunctioncallContext) IsFunctioncallContext()

func (*FunctioncallContext) LPAREN

func (s *FunctioncallContext) LPAREN() antlr.TerminalNode

func (*FunctioncallContext) RPAREN

func (s *FunctioncallContext) RPAREN() antlr.TerminalNode

func (*FunctioncallContext) ToStringTree

func (s *FunctioncallContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type FunctionnameContext

type FunctionnameContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyFunctionnameContext

func NewEmptyFunctionnameContext() *FunctionnameContext

func NewFunctionnameContext

func NewFunctionnameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunctionnameContext

func (*FunctionnameContext) EnterRule

func (s *FunctionnameContext) EnterRule(listener antlr.ParseTreeListener)

func (*FunctionnameContext) ExitRule

func (s *FunctionnameContext) ExitRule(listener antlr.ParseTreeListener)

func (*FunctionnameContext) GetParser

func (s *FunctionnameContext) GetParser() antlr.Parser

func (*FunctionnameContext) GetRuleContext

func (s *FunctionnameContext) GetRuleContext() antlr.RuleContext

func (*FunctionnameContext) IDENTIFIER

func (s *FunctionnameContext) IDENTIFIER() antlr.TerminalNode

func (*FunctionnameContext) IsFunctionnameContext

func (*FunctionnameContext) IsFunctionnameContext()

func (*FunctionnameContext) ToStringTree

func (s *FunctionnameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type IArgumentContext

type IArgumentContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsArgumentContext differentiates from other interfaces.
	IsArgumentContext()
}

IArgumentContext is an interface to support dynamic dispatch.

type IBlockContext

type IBlockContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsBlockContext differentiates from other interfaces.
	IsBlockContext()
}

IBlockContext is an interface to support dynamic dispatch.

type IBlockbodyContext

type IBlockbodyContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsBlockbodyContext differentiates from other interfaces.
	IsBlockbodyContext()
}

IBlockbodyContext is an interface to support dynamic dispatch.

type IBlocktypeContext

type IBlocktypeContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsBlocktypeContext differentiates from other interfaces.
	IsBlocktypeContext()
}

IBlocktypeContext is an interface to support dynamic dispatch.

type IDataContext

type IDataContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsDataContext differentiates from other interfaces.
	IsDataContext()
}

IDataContext is an interface to support dynamic dispatch.

type IExpressionContext

type IExpressionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsExpressionContext differentiates from other interfaces.
	IsExpressionContext()
}

IExpressionContext is an interface to support dynamic dispatch.

type IFile_Context

type IFile_Context interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsFile_Context differentiates from other interfaces.
	IsFile_Context()
}

IFile_Context is an interface to support dynamic dispatch.

type IFiledeclContext

type IFiledeclContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsFiledeclContext differentiates from other interfaces.
	IsFiledeclContext()
}

IFiledeclContext is an interface to support dynamic dispatch.

type IForloopContext

type IForloopContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsForloopContext differentiates from other interfaces.
	IsForloopContext()
}

IForloopContext is an interface to support dynamic dispatch.

type IFunctionargumentsContext

type IFunctionargumentsContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsFunctionargumentsContext differentiates from other interfaces.
	IsFunctionargumentsContext()
}

IFunctionargumentsContext is an interface to support dynamic dispatch.

type IFunctioncallContext

type IFunctioncallContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsFunctioncallContext differentiates from other interfaces.
	IsFunctioncallContext()
}

IFunctioncallContext is an interface to support dynamic dispatch.

type IFunctionnameContext

type IFunctionnameContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsFunctionnameContext differentiates from other interfaces.
	IsFunctionnameContext()
}

IFunctionnameContext is an interface to support dynamic dispatch.

type IIdentifierContext

type IIdentifierContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsIdentifierContext differentiates from other interfaces.
	IsIdentifierContext()
}

IIdentifierContext is an interface to support dynamic dispatch.

type IIdentifierchainContext

type IIdentifierchainContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsIdentifierchainContext differentiates from other interfaces.
	IsIdentifierchainContext()
}

IIdentifierchainContext is an interface to support dynamic dispatch.

type IIndexContext

type IIndexContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsIndexContext differentiates from other interfaces.
	IsIndexContext()
}

IIndexContext is an interface to support dynamic dispatch.

type IInline_indexContext

type IInline_indexContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsInline_indexContext differentiates from other interfaces.
	IsInline_indexContext()
}

IInline_indexContext is an interface to support dynamic dispatch.

type ILabelContext

type ILabelContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsLabelContext differentiates from other interfaces.
	IsLabelContext()
}

ILabelContext is an interface to support dynamic dispatch.

type IList_Context

type IList_Context interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsList_Context differentiates from other interfaces.
	IsList_Context()
}

IList_Context is an interface to support dynamic dispatch.

type ILocalContext

type ILocalContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsLocalContext differentiates from other interfaces.
	IsLocalContext()
}

ILocalContext is an interface to support dynamic dispatch.

type IMap_Context

type IMap_Context interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsMap_Context differentiates from other interfaces.
	IsMap_Context()
}

IMap_Context is an interface to support dynamic dispatch.

type IModuleContext

type IModuleContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsModuleContext differentiates from other interfaces.
	IsModuleContext()
}

IModuleContext is an interface to support dynamic dispatch.

type INameContext

type INameContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsNameContext differentiates from other interfaces.
	IsNameContext()
}

INameContext is an interface to support dynamic dispatch.

type INumberContext

type INumberContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsNumberContext differentiates from other interfaces.
	IsNumberContext()
}

INumberContext is an interface to support dynamic dispatch.

type IOperator_Context

type IOperator_Context interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsOperator_Context differentiates from other interfaces.
	IsOperator_Context()
}

IOperator_Context is an interface to support dynamic dispatch.

type IOutputContext

type IOutputContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsOutputContext differentiates from other interfaces.
	IsOutputContext()
}

IOutputContext is an interface to support dynamic dispatch.

type IProviderContext

type IProviderContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsProviderContext differentiates from other interfaces.
	IsProviderContext()
}

IProviderContext is an interface to support dynamic dispatch.

type IResourceContext

type IResourceContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsResourceContext differentiates from other interfaces.
	IsResourceContext()
}

IResourceContext is an interface to support dynamic dispatch.

type IResourcetypeContext

type IResourcetypeContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsResourcetypeContext differentiates from other interfaces.
	IsResourcetypeContext()
}

IResourcetypeContext is an interface to support dynamic dispatch.

type ISectionContext

type ISectionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsSectionContext differentiates from other interfaces.
	IsSectionContext()
}

ISectionContext is an interface to support dynamic dispatch.

type ISigned_numberContext

type ISigned_numberContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsSigned_numberContext differentiates from other interfaces.
	IsSigned_numberContext()
}

ISigned_numberContext is an interface to support dynamic dispatch.

type IStringContext

type IStringContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsStringContext differentiates from other interfaces.
	IsStringContext()
}

IStringContext is an interface to support dynamic dispatch.

type ITerraformContext

type ITerraformContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsTerraformContext differentiates from other interfaces.
	IsTerraformContext()
}

ITerraformContext is an interface to support dynamic dispatch.

type IValContext

type IValContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsValContext differentiates from other interfaces.
	IsValContext()
}

IValContext is an interface to support dynamic dispatch.

type IVariableContext

type IVariableContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsVariableContext differentiates from other interfaces.
	IsVariableContext()
}

IVariableContext is an interface to support dynamic dispatch.

type IdentifierContext

type IdentifierContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyIdentifierContext

func NewEmptyIdentifierContext() *IdentifierContext

func NewIdentifierContext

func NewIdentifierContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IdentifierContext

func (*IdentifierContext) DOT

func (s *IdentifierContext) DOT() antlr.TerminalNode

func (*IdentifierContext) EnterRule

func (s *IdentifierContext) EnterRule(listener antlr.ParseTreeListener)

func (*IdentifierContext) ExitRule

func (s *IdentifierContext) ExitRule(listener antlr.ParseTreeListener)

func (*IdentifierContext) GetParser

func (s *IdentifierContext) GetParser() antlr.Parser

func (*IdentifierContext) GetRuleContext

func (s *IdentifierContext) GetRuleContext() antlr.RuleContext

func (*IdentifierContext) Identifierchain

func (s *IdentifierContext) Identifierchain() IIdentifierchainContext

func (*IdentifierContext) IsIdentifierContext

func (*IdentifierContext) IsIdentifierContext()

func (*IdentifierContext) ToStringTree

func (s *IdentifierContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type IdentifierchainContext

type IdentifierchainContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyIdentifierchainContext

func NewEmptyIdentifierchainContext() *IdentifierchainContext

func NewIdentifierchainContext

func NewIdentifierchainContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IdentifierchainContext

func (*IdentifierchainContext) AllDOT

func (s *IdentifierchainContext) AllDOT() []antlr.TerminalNode

func (*IdentifierchainContext) AllIdentifierchain

func (s *IdentifierchainContext) AllIdentifierchain() []IIdentifierchainContext

func (*IdentifierchainContext) DOT

func (s *IdentifierchainContext) DOT(i int) antlr.TerminalNode

func (*IdentifierchainContext) EnterRule

func (s *IdentifierchainContext) EnterRule(listener antlr.ParseTreeListener)

func (*IdentifierchainContext) ExitRule

func (s *IdentifierchainContext) ExitRule(listener antlr.ParseTreeListener)

func (*IdentifierchainContext) GetParser

func (s *IdentifierchainContext) GetParser() antlr.Parser

func (*IdentifierchainContext) GetRuleContext

func (s *IdentifierchainContext) GetRuleContext() antlr.RuleContext

func (*IdentifierchainContext) IDENTIFIER

func (s *IdentifierchainContext) IDENTIFIER() antlr.TerminalNode

func (*IdentifierchainContext) IN

func (s *IdentifierchainContext) IN() antlr.TerminalNode

func (*IdentifierchainContext) Identifierchain

func (s *IdentifierchainContext) Identifierchain(i int) IIdentifierchainContext

func (*IdentifierchainContext) Index

func (*IdentifierchainContext) Inline_index

func (s *IdentifierchainContext) Inline_index() IInline_indexContext

func (*IdentifierchainContext) IsIdentifierchainContext

func (*IdentifierchainContext) IsIdentifierchainContext()

func (*IdentifierchainContext) PROVIDER

func (s *IdentifierchainContext) PROVIDER() antlr.TerminalNode

func (*IdentifierchainContext) STAR

func (s *IdentifierchainContext) STAR() antlr.TerminalNode

func (*IdentifierchainContext) ToStringTree

func (s *IdentifierchainContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*IdentifierchainContext) VARIABLE

func (s *IdentifierchainContext) VARIABLE() antlr.TerminalNode

type IndexContext

type IndexContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyIndexContext

func NewEmptyIndexContext() *IndexContext

func NewIndexContext

func NewIndexContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IndexContext

func (*IndexContext) EnterRule

func (s *IndexContext) EnterRule(listener antlr.ParseTreeListener)

func (*IndexContext) ExitRule

func (s *IndexContext) ExitRule(listener antlr.ParseTreeListener)

func (*IndexContext) Expression

func (s *IndexContext) Expression() IExpressionContext

func (*IndexContext) GetParser

func (s *IndexContext) GetParser() antlr.Parser

func (*IndexContext) GetRuleContext

func (s *IndexContext) GetRuleContext() antlr.RuleContext

func (*IndexContext) IsIndexContext

func (*IndexContext) IsIndexContext()

func (*IndexContext) ToStringTree

func (s *IndexContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Inline_indexContext

type Inline_indexContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyInline_indexContext

func NewEmptyInline_indexContext() *Inline_indexContext

func NewInline_indexContext

func NewInline_indexContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Inline_indexContext

func (*Inline_indexContext) EnterRule

func (s *Inline_indexContext) EnterRule(listener antlr.ParseTreeListener)

func (*Inline_indexContext) ExitRule

func (s *Inline_indexContext) ExitRule(listener antlr.ParseTreeListener)

func (*Inline_indexContext) GetParser

func (s *Inline_indexContext) GetParser() antlr.Parser

func (*Inline_indexContext) GetRuleContext

func (s *Inline_indexContext) GetRuleContext() antlr.RuleContext

func (*Inline_indexContext) IsInline_indexContext

func (*Inline_indexContext) IsInline_indexContext()

func (*Inline_indexContext) NATURAL_NUMBER

func (s *Inline_indexContext) NATURAL_NUMBER() antlr.TerminalNode

func (*Inline_indexContext) ToStringTree

func (s *Inline_indexContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type LabelContext

type LabelContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyLabelContext

func NewEmptyLabelContext() *LabelContext

func NewLabelContext

func NewLabelContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LabelContext

func (*LabelContext) EnterRule

func (s *LabelContext) EnterRule(listener antlr.ParseTreeListener)

func (*LabelContext) ExitRule

func (s *LabelContext) ExitRule(listener antlr.ParseTreeListener)

func (*LabelContext) GetParser

func (s *LabelContext) GetParser() antlr.Parser

func (*LabelContext) GetRuleContext

func (s *LabelContext) GetRuleContext() antlr.RuleContext

func (*LabelContext) IsLabelContext

func (*LabelContext) IsLabelContext()

func (*LabelContext) STRING

func (s *LabelContext) STRING() antlr.TerminalNode

func (*LabelContext) ToStringTree

func (s *LabelContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type List_Context

type List_Context struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyList_Context

func NewEmptyList_Context() *List_Context

func NewList_Context

func NewList_Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *List_Context

func (*List_Context) AllExpression

func (s *List_Context) AllExpression() []IExpressionContext

func (*List_Context) EnterRule

func (s *List_Context) EnterRule(listener antlr.ParseTreeListener)

func (*List_Context) ExitRule

func (s *List_Context) ExitRule(listener antlr.ParseTreeListener)

func (*List_Context) Expression

func (s *List_Context) Expression(i int) IExpressionContext

func (*List_Context) GetParser

func (s *List_Context) GetParser() antlr.Parser

func (*List_Context) GetRuleContext

func (s *List_Context) GetRuleContext() antlr.RuleContext

func (*List_Context) IsList_Context

func (*List_Context) IsList_Context()

func (*List_Context) ToStringTree

func (s *List_Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type LocalContext

type LocalContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyLocalContext

func NewEmptyLocalContext() *LocalContext

func NewLocalContext

func NewLocalContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LocalContext

func (*LocalContext) Blockbody

func (s *LocalContext) Blockbody() IBlockbodyContext

func (*LocalContext) EnterRule

func (s *LocalContext) EnterRule(listener antlr.ParseTreeListener)

func (*LocalContext) ExitRule

func (s *LocalContext) ExitRule(listener antlr.ParseTreeListener)

func (*LocalContext) GetParser

func (s *LocalContext) GetParser() antlr.Parser

func (*LocalContext) GetRuleContext

func (s *LocalContext) GetRuleContext() antlr.RuleContext

func (*LocalContext) IsLocalContext

func (*LocalContext) IsLocalContext()

func (*LocalContext) ToStringTree

func (s *LocalContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Map_Context

type Map_Context struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyMap_Context

func NewEmptyMap_Context() *Map_Context

func NewMap_Context

func NewMap_Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Map_Context

func (*Map_Context) AllArgument

func (s *Map_Context) AllArgument() []IArgumentContext

func (*Map_Context) Argument

func (s *Map_Context) Argument(i int) IArgumentContext

func (*Map_Context) EnterRule

func (s *Map_Context) EnterRule(listener antlr.ParseTreeListener)

func (*Map_Context) ExitRule

func (s *Map_Context) ExitRule(listener antlr.ParseTreeListener)

func (*Map_Context) GetParser

func (s *Map_Context) GetParser() antlr.Parser

func (*Map_Context) GetRuleContext

func (s *Map_Context) GetRuleContext() antlr.RuleContext

func (*Map_Context) IsMap_Context

func (*Map_Context) IsMap_Context()

func (*Map_Context) LCURL

func (s *Map_Context) LCURL() antlr.TerminalNode

func (*Map_Context) RCURL

func (s *Map_Context) RCURL() antlr.TerminalNode

func (*Map_Context) ToStringTree

func (s *Map_Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ModuleContext

type ModuleContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyModuleContext

func NewEmptyModuleContext() *ModuleContext

func NewModuleContext

func NewModuleContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ModuleContext

func (*ModuleContext) Blockbody

func (s *ModuleContext) Blockbody() IBlockbodyContext

func (*ModuleContext) EnterRule

func (s *ModuleContext) EnterRule(listener antlr.ParseTreeListener)

func (*ModuleContext) ExitRule

func (s *ModuleContext) ExitRule(listener antlr.ParseTreeListener)

func (*ModuleContext) GetParser

func (s *ModuleContext) GetParser() antlr.Parser

func (*ModuleContext) GetRuleContext

func (s *ModuleContext) GetRuleContext() antlr.RuleContext

func (*ModuleContext) IsModuleContext

func (*ModuleContext) IsModuleContext()

func (*ModuleContext) Name

func (s *ModuleContext) Name() INameContext

func (*ModuleContext) ToStringTree

func (s *ModuleContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type NameContext

type NameContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyNameContext

func NewEmptyNameContext() *NameContext

func NewNameContext

func NewNameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NameContext

func (*NameContext) EnterRule

func (s *NameContext) EnterRule(listener antlr.ParseTreeListener)

func (*NameContext) ExitRule

func (s *NameContext) ExitRule(listener antlr.ParseTreeListener)

func (*NameContext) GetParser

func (s *NameContext) GetParser() antlr.Parser

func (*NameContext) GetRuleContext

func (s *NameContext) GetRuleContext() antlr.RuleContext

func (*NameContext) IsNameContext

func (*NameContext) IsNameContext()

func (*NameContext) STRING

func (s *NameContext) STRING() antlr.TerminalNode

func (*NameContext) ToStringTree

func (s *NameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type NumberContext

type NumberContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyNumberContext

func NewEmptyNumberContext() *NumberContext

func NewNumberContext

func NewNumberContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NumberContext

func (*NumberContext) AllNATURAL_NUMBER

func (s *NumberContext) AllNATURAL_NUMBER() []antlr.TerminalNode

func (*NumberContext) DOT

func (s *NumberContext) DOT() antlr.TerminalNode

func (*NumberContext) EnterRule

func (s *NumberContext) EnterRule(listener antlr.ParseTreeListener)

func (*NumberContext) ExitRule

func (s *NumberContext) ExitRule(listener antlr.ParseTreeListener)

func (*NumberContext) GetParser

func (s *NumberContext) GetParser() antlr.Parser

func (*NumberContext) GetRuleContext

func (s *NumberContext) GetRuleContext() antlr.RuleContext

func (*NumberContext) IsNumberContext

func (*NumberContext) IsNumberContext()

func (*NumberContext) NATURAL_NUMBER

func (s *NumberContext) NATURAL_NUMBER(i int) antlr.TerminalNode

func (*NumberContext) ToStringTree

func (s *NumberContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Operator_Context

type Operator_Context struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyOperator_Context

func NewEmptyOperator_Context() *Operator_Context

func NewOperator_Context

func NewOperator_Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Operator_Context

func (*Operator_Context) EnterRule

func (s *Operator_Context) EnterRule(listener antlr.ParseTreeListener)

func (*Operator_Context) ExitRule

func (s *Operator_Context) ExitRule(listener antlr.ParseTreeListener)

func (*Operator_Context) GetParser

func (s *Operator_Context) GetParser() antlr.Parser

func (*Operator_Context) GetRuleContext

func (s *Operator_Context) GetRuleContext() antlr.RuleContext

func (*Operator_Context) IsOperator_Context

func (*Operator_Context) IsOperator_Context()

func (*Operator_Context) STAR

func (s *Operator_Context) STAR() antlr.TerminalNode

func (*Operator_Context) ToStringTree

func (s *Operator_Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type OutputContext

type OutputContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyOutputContext

func NewEmptyOutputContext() *OutputContext

func NewOutputContext

func NewOutputContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *OutputContext

func (*OutputContext) Blockbody

func (s *OutputContext) Blockbody() IBlockbodyContext

func (*OutputContext) EnterRule

func (s *OutputContext) EnterRule(listener antlr.ParseTreeListener)

func (*OutputContext) ExitRule

func (s *OutputContext) ExitRule(listener antlr.ParseTreeListener)

func (*OutputContext) GetParser

func (s *OutputContext) GetParser() antlr.Parser

func (*OutputContext) GetRuleContext

func (s *OutputContext) GetRuleContext() antlr.RuleContext

func (*OutputContext) IsOutputContext

func (*OutputContext) IsOutputContext()

func (*OutputContext) Name

func (s *OutputContext) Name() INameContext

func (*OutputContext) ToStringTree

func (s *OutputContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ProviderContext

type ProviderContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyProviderContext

func NewEmptyProviderContext() *ProviderContext

func NewProviderContext

func NewProviderContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProviderContext

func (*ProviderContext) Blockbody

func (s *ProviderContext) Blockbody() IBlockbodyContext

func (*ProviderContext) EnterRule

func (s *ProviderContext) EnterRule(listener antlr.ParseTreeListener)

func (*ProviderContext) ExitRule

func (s *ProviderContext) ExitRule(listener antlr.ParseTreeListener)

func (*ProviderContext) GetParser

func (s *ProviderContext) GetParser() antlr.Parser

func (*ProviderContext) GetRuleContext

func (s *ProviderContext) GetRuleContext() antlr.RuleContext

func (*ProviderContext) IsProviderContext

func (*ProviderContext) IsProviderContext()

func (*ProviderContext) PROVIDER

func (s *ProviderContext) PROVIDER() antlr.TerminalNode

func (*ProviderContext) Resourcetype

func (s *ProviderContext) Resourcetype() IResourcetypeContext

func (*ProviderContext) ToStringTree

func (s *ProviderContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ResourceContext

type ResourceContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyResourceContext

func NewEmptyResourceContext() *ResourceContext

func NewResourceContext

func NewResourceContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ResourceContext

func (*ResourceContext) Blockbody

func (s *ResourceContext) Blockbody() IBlockbodyContext

func (*ResourceContext) EnterRule

func (s *ResourceContext) EnterRule(listener antlr.ParseTreeListener)

func (*ResourceContext) ExitRule

func (s *ResourceContext) ExitRule(listener antlr.ParseTreeListener)

func (*ResourceContext) GetParser

func (s *ResourceContext) GetParser() antlr.Parser

func (*ResourceContext) GetRuleContext

func (s *ResourceContext) GetRuleContext() antlr.RuleContext

func (*ResourceContext) IsResourceContext

func (*ResourceContext) IsResourceContext()

func (*ResourceContext) Name

func (s *ResourceContext) Name() INameContext

func (*ResourceContext) Resourcetype

func (s *ResourceContext) Resourcetype() IResourcetypeContext

func (*ResourceContext) ToStringTree

func (s *ResourceContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ResourcetypeContext

type ResourcetypeContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyResourcetypeContext

func NewEmptyResourcetypeContext() *ResourcetypeContext

func NewResourcetypeContext

func NewResourcetypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ResourcetypeContext

func (*ResourcetypeContext) EnterRule

func (s *ResourcetypeContext) EnterRule(listener antlr.ParseTreeListener)

func (*ResourcetypeContext) ExitRule

func (s *ResourcetypeContext) ExitRule(listener antlr.ParseTreeListener)

func (*ResourcetypeContext) GetParser

func (s *ResourcetypeContext) GetParser() antlr.Parser

func (*ResourcetypeContext) GetRuleContext

func (s *ResourcetypeContext) GetRuleContext() antlr.RuleContext

func (*ResourcetypeContext) IsResourcetypeContext

func (*ResourcetypeContext) IsResourcetypeContext()

func (*ResourcetypeContext) STRING

func (s *ResourcetypeContext) STRING() antlr.TerminalNode

func (*ResourcetypeContext) ToStringTree

func (s *ResourcetypeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type SectionContext

type SectionContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptySectionContext

func NewEmptySectionContext() *SectionContext

func NewSectionContext

func NewSectionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SectionContext

func (*SectionContext) EnterRule

func (s *SectionContext) EnterRule(listener antlr.ParseTreeListener)

func (*SectionContext) ExitRule

func (s *SectionContext) ExitRule(listener antlr.ParseTreeListener)

func (*SectionContext) GetParser

func (s *SectionContext) GetParser() antlr.Parser

func (*SectionContext) GetRuleContext

func (s *SectionContext) GetRuleContext() antlr.RuleContext

func (*SectionContext) IsSectionContext

func (*SectionContext) IsSectionContext()

func (*SectionContext) List_

func (s *SectionContext) List_() IList_Context

func (*SectionContext) Map_

func (s *SectionContext) Map_() IMap_Context

func (*SectionContext) ToStringTree

func (s *SectionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*SectionContext) Val

func (s *SectionContext) Val() IValContext

type Signed_numberContext

type Signed_numberContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptySigned_numberContext

func NewEmptySigned_numberContext() *Signed_numberContext

func NewSigned_numberContext

func NewSigned_numberContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Signed_numberContext

func (*Signed_numberContext) EnterRule

func (s *Signed_numberContext) EnterRule(listener antlr.ParseTreeListener)

func (*Signed_numberContext) ExitRule

func (s *Signed_numberContext) ExitRule(listener antlr.ParseTreeListener)

func (*Signed_numberContext) GetParser

func (s *Signed_numberContext) GetParser() antlr.Parser

func (*Signed_numberContext) GetRuleContext

func (s *Signed_numberContext) GetRuleContext() antlr.RuleContext

func (*Signed_numberContext) IsSigned_numberContext

func (*Signed_numberContext) IsSigned_numberContext()

func (*Signed_numberContext) Number

func (*Signed_numberContext) ToStringTree

func (s *Signed_numberContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type StringContext

type StringContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyStringContext

func NewEmptyStringContext() *StringContext

func NewStringContext

func NewStringContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StringContext

func (*StringContext) EnterRule

func (s *StringContext) EnterRule(listener antlr.ParseTreeListener)

func (*StringContext) ExitRule

func (s *StringContext) ExitRule(listener antlr.ParseTreeListener)

func (*StringContext) GetParser

func (s *StringContext) GetParser() antlr.Parser

func (*StringContext) GetRuleContext

func (s *StringContext) GetRuleContext() antlr.RuleContext

func (*StringContext) IsStringContext

func (*StringContext) IsStringContext()

func (*StringContext) MULTILINESTRING

func (s *StringContext) MULTILINESTRING() antlr.TerminalNode

func (*StringContext) STRING

func (s *StringContext) STRING() antlr.TerminalNode

func (*StringContext) ToStringTree

func (s *StringContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Terraform

type Terraform struct {
}

func NewTerraform

func NewTerraform() *Terraform

New creates a new instance of the Taralizer engine.

func (*Terraform) ImportFromFile

func (svc *Terraform) ImportFromFile(terraformFile string) taralizer.Report

convertMapToRisk converts an untyped instance Risk into a typed one.

type TerraformContext

type TerraformContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyTerraformContext

func NewEmptyTerraformContext() *TerraformContext

func NewTerraformContext

func NewTerraformContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TerraformContext

func (*TerraformContext) Blockbody

func (s *TerraformContext) Blockbody() IBlockbodyContext

func (*TerraformContext) EnterRule

func (s *TerraformContext) EnterRule(listener antlr.ParseTreeListener)

func (*TerraformContext) ExitRule

func (s *TerraformContext) ExitRule(listener antlr.ParseTreeListener)

func (*TerraformContext) GetParser

func (s *TerraformContext) GetParser() antlr.Parser

func (*TerraformContext) GetRuleContext

func (s *TerraformContext) GetRuleContext() antlr.RuleContext

func (*TerraformContext) IsTerraformContext

func (*TerraformContext) IsTerraformContext()

func (*TerraformContext) ToStringTree

func (s *TerraformContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type TerraformLexer

type TerraformLexer struct {
	*antlr.BaseLexer
	// contains filtered or unexported fields
}

func NewTerraformLexer

func NewTerraformLexer(input antlr.CharStream) *TerraformLexer

NewTerraformLexer produces a new lexer instance for the optional input antlr.CharStream.

type TerraformListener

type TerraformListener interface {
	antlr.ParseTreeListener

	// EnterFile_ is called when entering the file_ production.
	EnterFile_(c *File_Context)

	// EnterTerraform is called when entering the terraform production.
	EnterTerraform(c *TerraformContext)

	// EnterResource is called when entering the resource production.
	EnterResource(c *ResourceContext)

	// EnterData is called when entering the data production.
	EnterData(c *DataContext)

	// EnterProvider is called when entering the provider production.
	EnterProvider(c *ProviderContext)

	// EnterOutput is called when entering the output production.
	EnterOutput(c *OutputContext)

	// EnterLocal is called when entering the local production.
	EnterLocal(c *LocalContext)

	// EnterModule is called when entering the module production.
	EnterModule(c *ModuleContext)

	// EnterVariable is called when entering the variable production.
	EnterVariable(c *VariableContext)

	// EnterBlock is called when entering the block production.
	EnterBlock(c *BlockContext)

	// EnterBlocktype is called when entering the blocktype production.
	EnterBlocktype(c *BlocktypeContext)

	// EnterResourcetype is called when entering the resourcetype production.
	EnterResourcetype(c *ResourcetypeContext)

	// EnterName is called when entering the name production.
	EnterName(c *NameContext)

	// EnterLabel is called when entering the label production.
	EnterLabel(c *LabelContext)

	// EnterBlockbody is called when entering the blockbody production.
	EnterBlockbody(c *BlockbodyContext)

	// EnterArgument is called when entering the argument production.
	EnterArgument(c *ArgumentContext)

	// EnterIdentifier is called when entering the identifier production.
	EnterIdentifier(c *IdentifierContext)

	// EnterIdentifierchain is called when entering the identifierchain production.
	EnterIdentifierchain(c *IdentifierchainContext)

	// EnterInline_index is called when entering the inline_index production.
	EnterInline_index(c *Inline_indexContext)

	// EnterExpression is called when entering the expression production.
	EnterExpression(c *ExpressionContext)

	// EnterForloop is called when entering the forloop production.
	EnterForloop(c *ForloopContext)

	// EnterSection is called when entering the section production.
	EnterSection(c *SectionContext)

	// EnterVal is called when entering the val production.
	EnterVal(c *ValContext)

	// EnterFunctioncall is called when entering the functioncall production.
	EnterFunctioncall(c *FunctioncallContext)

	// EnterFunctionname is called when entering the functionname production.
	EnterFunctionname(c *FunctionnameContext)

	// EnterFunctionarguments is called when entering the functionarguments production.
	EnterFunctionarguments(c *FunctionargumentsContext)

	// EnterIndex is called when entering the index production.
	EnterIndex(c *IndexContext)

	// EnterFiledecl is called when entering the filedecl production.
	EnterFiledecl(c *FiledeclContext)

	// EnterList_ is called when entering the list_ production.
	EnterList_(c *List_Context)

	// EnterMap_ is called when entering the map_ production.
	EnterMap_(c *Map_Context)

	// EnterString is called when entering the string production.
	EnterString(c *StringContext)

	// EnterSigned_number is called when entering the signed_number production.
	EnterSigned_number(c *Signed_numberContext)

	// EnterOperator_ is called when entering the operator_ production.
	EnterOperator_(c *Operator_Context)

	// EnterNumber is called when entering the number production.
	EnterNumber(c *NumberContext)

	// ExitFile_ is called when exiting the file_ production.
	ExitFile_(c *File_Context)

	// ExitTerraform is called when exiting the terraform production.
	ExitTerraform(c *TerraformContext)

	// ExitResource is called when exiting the resource production.
	ExitResource(c *ResourceContext)

	// ExitData is called when exiting the data production.
	ExitData(c *DataContext)

	// ExitProvider is called when exiting the provider production.
	ExitProvider(c *ProviderContext)

	// ExitOutput is called when exiting the output production.
	ExitOutput(c *OutputContext)

	// ExitLocal is called when exiting the local production.
	ExitLocal(c *LocalContext)

	// ExitModule is called when exiting the module production.
	ExitModule(c *ModuleContext)

	// ExitVariable is called when exiting the variable production.
	ExitVariable(c *VariableContext)

	// ExitBlock is called when exiting the block production.
	ExitBlock(c *BlockContext)

	// ExitBlocktype is called when exiting the blocktype production.
	ExitBlocktype(c *BlocktypeContext)

	// ExitResourcetype is called when exiting the resourcetype production.
	ExitResourcetype(c *ResourcetypeContext)

	// ExitName is called when exiting the name production.
	ExitName(c *NameContext)

	// ExitLabel is called when exiting the label production.
	ExitLabel(c *LabelContext)

	// ExitBlockbody is called when exiting the blockbody production.
	ExitBlockbody(c *BlockbodyContext)

	// ExitArgument is called when exiting the argument production.
	ExitArgument(c *ArgumentContext)

	// ExitIdentifier is called when exiting the identifier production.
	ExitIdentifier(c *IdentifierContext)

	// ExitIdentifierchain is called when exiting the identifierchain production.
	ExitIdentifierchain(c *IdentifierchainContext)

	// ExitInline_index is called when exiting the inline_index production.
	ExitInline_index(c *Inline_indexContext)

	// ExitExpression is called when exiting the expression production.
	ExitExpression(c *ExpressionContext)

	// ExitForloop is called when exiting the forloop production.
	ExitForloop(c *ForloopContext)

	// ExitSection is called when exiting the section production.
	ExitSection(c *SectionContext)

	// ExitVal is called when exiting the val production.
	ExitVal(c *ValContext)

	// ExitFunctioncall is called when exiting the functioncall production.
	ExitFunctioncall(c *FunctioncallContext)

	// ExitFunctionname is called when exiting the functionname production.
	ExitFunctionname(c *FunctionnameContext)

	// ExitFunctionarguments is called when exiting the functionarguments production.
	ExitFunctionarguments(c *FunctionargumentsContext)

	// ExitIndex is called when exiting the index production.
	ExitIndex(c *IndexContext)

	// ExitFiledecl is called when exiting the filedecl production.
	ExitFiledecl(c *FiledeclContext)

	// ExitList_ is called when exiting the list_ production.
	ExitList_(c *List_Context)

	// ExitMap_ is called when exiting the map_ production.
	ExitMap_(c *Map_Context)

	// ExitString is called when exiting the string production.
	ExitString(c *StringContext)

	// ExitSigned_number is called when exiting the signed_number production.
	ExitSigned_number(c *Signed_numberContext)

	// ExitOperator_ is called when exiting the operator_ production.
	ExitOperator_(c *Operator_Context)

	// ExitNumber is called when exiting the number production.
	ExitNumber(c *NumberContext)
}

TerraformListener is a complete listener for a parse tree produced by TerraformParser.

type TerraformParser

type TerraformParser struct {
	*antlr.BaseParser
}

func NewTerraformParser

func NewTerraformParser(input antlr.TokenStream) *TerraformParser

NewTerraformParser produces a new parser instance for the optional input antlr.TokenStream.

func (*TerraformParser) Argument

func (p *TerraformParser) Argument() (localctx IArgumentContext)

func (*TerraformParser) Block

func (p *TerraformParser) Block() (localctx IBlockContext)

func (*TerraformParser) Blockbody

func (p *TerraformParser) Blockbody() (localctx IBlockbodyContext)

func (*TerraformParser) Blocktype

func (p *TerraformParser) Blocktype() (localctx IBlocktypeContext)

func (*TerraformParser) Data

func (p *TerraformParser) Data() (localctx IDataContext)

func (*TerraformParser) Expression

func (p *TerraformParser) Expression() (localctx IExpressionContext)

func (*TerraformParser) Expression_Sempred

func (p *TerraformParser) Expression_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*TerraformParser) File_

func (p *TerraformParser) File_() (localctx IFile_Context)

func (*TerraformParser) Filedecl

func (p *TerraformParser) Filedecl() (localctx IFiledeclContext)

func (*TerraformParser) Forloop

func (p *TerraformParser) Forloop() (localctx IForloopContext)

func (*TerraformParser) Functionarguments

func (p *TerraformParser) Functionarguments() (localctx IFunctionargumentsContext)

func (*TerraformParser) Functioncall

func (p *TerraformParser) Functioncall() (localctx IFunctioncallContext)

func (*TerraformParser) Functionname

func (p *TerraformParser) Functionname() (localctx IFunctionnameContext)

func (*TerraformParser) Identifier

func (p *TerraformParser) Identifier() (localctx IIdentifierContext)

func (*TerraformParser) Identifierchain

func (p *TerraformParser) Identifierchain() (localctx IIdentifierchainContext)

func (*TerraformParser) Index

func (p *TerraformParser) Index() (localctx IIndexContext)

func (*TerraformParser) Inline_index

func (p *TerraformParser) Inline_index() (localctx IInline_indexContext)

func (*TerraformParser) Label

func (p *TerraformParser) Label() (localctx ILabelContext)

func (*TerraformParser) List_

func (p *TerraformParser) List_() (localctx IList_Context)

func (*TerraformParser) Local

func (p *TerraformParser) Local() (localctx ILocalContext)

func (*TerraformParser) Map_

func (p *TerraformParser) Map_() (localctx IMap_Context)

func (*TerraformParser) Module

func (p *TerraformParser) Module() (localctx IModuleContext)

func (*TerraformParser) Name

func (p *TerraformParser) Name() (localctx INameContext)

func (*TerraformParser) Number

func (p *TerraformParser) Number() (localctx INumberContext)

func (*TerraformParser) Operator_

func (p *TerraformParser) Operator_() (localctx IOperator_Context)

func (*TerraformParser) Output

func (p *TerraformParser) Output() (localctx IOutputContext)

func (*TerraformParser) Provider

func (p *TerraformParser) Provider() (localctx IProviderContext)

func (*TerraformParser) Resource

func (p *TerraformParser) Resource() (localctx IResourceContext)

func (*TerraformParser) Resourcetype

func (p *TerraformParser) Resourcetype() (localctx IResourcetypeContext)

func (*TerraformParser) Section

func (p *TerraformParser) Section() (localctx ISectionContext)

func (*TerraformParser) Sempred

func (p *TerraformParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool

func (*TerraformParser) Signed_number

func (p *TerraformParser) Signed_number() (localctx ISigned_numberContext)

func (*TerraformParser) String_

func (p *TerraformParser) String_() (localctx IStringContext)

func (*TerraformParser) Terraform

func (p *TerraformParser) Terraform() (localctx ITerraformContext)

func (*TerraformParser) Val

func (p *TerraformParser) Val() (localctx IValContext)

func (*TerraformParser) Variable

func (p *TerraformParser) Variable() (localctx IVariableContext)

type TreeShapeListener

type TreeShapeListener struct {
	*BaseTerraformListener
	// contains filtered or unexported fields
}

func NewTreeShapeListener

func NewTreeShapeListener(report *taralizer.Report) *TreeShapeListener

func (*TreeShapeListener) ExitName

func (listener *TreeShapeListener) ExitName(ctx *NameContext)

func (*TreeShapeListener) ExitProvider

func (listener *TreeShapeListener) ExitProvider(ctx *ProviderContext)

func (*TreeShapeListener) ExitResource

func (listener *TreeShapeListener) ExitResource(ctx *ResourceContext)

func (*TreeShapeListener) ExitResourcetype

func (listener *TreeShapeListener) ExitResourcetype(ctx *ResourcetypeContext)

type ValContext

type ValContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyValContext

func NewEmptyValContext() *ValContext

func NewValContext

func NewValContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ValContext

func (*ValContext) BOOL

func (s *ValContext) BOOL() antlr.TerminalNode

func (*ValContext) DESCRIPTION

func (s *ValContext) DESCRIPTION() antlr.TerminalNode

func (*ValContext) EOF_

func (s *ValContext) EOF_() antlr.TerminalNode

func (*ValContext) EnterRule

func (s *ValContext) EnterRule(listener antlr.ParseTreeListener)

func (*ValContext) ExitRule

func (s *ValContext) ExitRule(listener antlr.ParseTreeListener)

func (*ValContext) Filedecl

func (s *ValContext) Filedecl() IFiledeclContext

func (*ValContext) Functioncall

func (s *ValContext) Functioncall() IFunctioncallContext

func (*ValContext) GetParser

func (s *ValContext) GetParser() antlr.Parser

func (*ValContext) GetRuleContext

func (s *ValContext) GetRuleContext() antlr.RuleContext

func (*ValContext) Identifier

func (s *ValContext) Identifier() IIdentifierContext

func (*ValContext) IsValContext

func (*ValContext) IsValContext()

func (*ValContext) NULL_

func (s *ValContext) NULL_() antlr.TerminalNode

func (*ValContext) Signed_number

func (s *ValContext) Signed_number() ISigned_numberContext

func (*ValContext) String_

func (s *ValContext) String_() IStringContext

func (*ValContext) ToStringTree

func (s *ValContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type VariableContext

type VariableContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyVariableContext

func NewEmptyVariableContext() *VariableContext

func NewVariableContext

func NewVariableContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *VariableContext

func (*VariableContext) Blockbody

func (s *VariableContext) Blockbody() IBlockbodyContext

func (*VariableContext) EnterRule

func (s *VariableContext) EnterRule(listener antlr.ParseTreeListener)

func (*VariableContext) ExitRule

func (s *VariableContext) ExitRule(listener antlr.ParseTreeListener)

func (*VariableContext) GetParser

func (s *VariableContext) GetParser() antlr.Parser

func (*VariableContext) GetRuleContext

func (s *VariableContext) GetRuleContext() antlr.RuleContext

func (*VariableContext) IsVariableContext

func (*VariableContext) IsVariableContext()

func (*VariableContext) Name

func (s *VariableContext) Name() INameContext

func (*VariableContext) ToStringTree

func (s *VariableContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*VariableContext) VARIABLE

func (s *VariableContext) VARIABLE() antlr.TerminalNode

Jump to

Keyboard shortcuts

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