C# Class Antlr4.Codegen.Model.RuleFunction

Inheritance: OutputModelObject
Show file Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
ctxType string
hasLookaheadBlock bool
index int
modifiers IList
name string
rule Antlr4.Tool.Rule
ruleLabels ICollection
startState Antlr4.Runtime.Atn.ATNState
tokenLabels ICollection
variantOf string

Public Methods

Method Description
AddContextDecl ( string altLabel, Decl d ) : void
AddContextGetters ( OutputModelFactory factory, ICollection contextASTs ) : void
AddLocalDecl ( Decl d ) : void
FillNamedActions ( OutputModelFactory factory, Rule r ) : void
GetDeclForAltElement ( GrammarAST t, string refLabelName, bool needList, bool optional ) : IList
GetDeclsForAllElements ( IList altASTs ) : ISet
GetLabelName ( Grammar g, GrammarAST t ) : string
RuleFunction ( OutputModelFactory factory, Rule r ) : System.Collections.Generic

Protected Methods

Method Description
GetElementFrequenciesForAlt ( AltAST ast ) : FrequencySet>.System.Tuple

Method Details

AddContextDecl() public method

public AddContextDecl ( string altLabel, Decl d ) : void
altLabel string
d Antlr4.Codegen.Model.Decl.Decl
return void

AddContextGetters() public method

public AddContextGetters ( OutputModelFactory factory, ICollection contextASTs ) : void
factory OutputModelFactory
contextASTs ICollection
return void

AddLocalDecl() public method

public AddLocalDecl ( Decl d ) : void
d Antlr4.Codegen.Model.Decl.Decl
return void

FillNamedActions() public method

public FillNamedActions ( OutputModelFactory factory, Rule r ) : void
factory OutputModelFactory
r Antlr4.Tool.Rule
return void

GetDeclForAltElement() public method

public GetDeclForAltElement ( GrammarAST t, string refLabelName, bool needList, bool optional ) : IList
t Antlr4.Tool.Ast.GrammarAST
refLabelName string
needList bool
optional bool
return IList

GetDeclsForAllElements() public method

public GetDeclsForAllElements ( IList altASTs ) : ISet
altASTs IList
return ISet

GetElementFrequenciesForAlt() protected method

protected GetElementFrequenciesForAlt ( AltAST ast ) : FrequencySet>.System.Tuple
ast AltAST
return FrequencySet>.System.Tuple

GetLabelName() public static method

public static GetLabelName ( Grammar g, GrammarAST t ) : string
g Antlr4.Tool.Grammar
t Antlr4.Tool.Ast.GrammarAST
return string

RuleFunction() public method

public RuleFunction ( OutputModelFactory factory, Rule r ) : System.Collections.Generic
factory OutputModelFactory
r Antlr4.Tool.Rule
return System.Collections.Generic

Property Details

ctxType public property

public string ctxType
return string

hasLookaheadBlock public property

public bool hasLookaheadBlock
return bool

index public property

public int index
return int

modifiers public property

public IList modifiers
return IList

name public property

public string name
return string

rule public property

public Rule,Antlr4.Tool rule
return Antlr4.Tool.Rule

ruleLabels public property

public ICollection ruleLabels
return ICollection

startState public property

public ATNState,Antlr4.Runtime.Atn startState
return Antlr4.Runtime.Atn.ATNState

tokenLabels public property

public ICollection tokenLabels
return ICollection

variantOf public property

public string variantOf
return string