C# Class Rubberduck.Parsing.VBA.Nodes.Node

The base class for all nodes in a Rubberduck code tree. todo: delete this obsolete class.
Inheritance: INode
Exibir arquivo Open project: retailcoder/Rubberduck Class Usage Examples

Public Methods

Method Description
AddChild ( Node node ) : void

Adds a child context.

Protected Methods

Method Description
Node ( ParserRuleContext context, string parentScope, string localScope = null, ICollection childNodes = null ) : System

Represents a context in the code tree.

Specifying a localScope ensures child nodes can be added, regardless of

Method Details

AddChild() public method

Adds a child context.
Thrown if context cannot have child nodes.
public AddChild ( Node node ) : void
node Node The child context to be added.
return void

Node() protected method

Represents a context in the code tree.
Specifying a localScope ensures child nodes can be added, regardless of
protected Node ( ParserRuleContext context, string parentScope, string localScope = null, ICollection childNodes = null ) : System
context ParserRuleContext The parser rule context, obtained from an ANTLR-generated parser method.
parentScope string The scope this context belongs to. null for the root context.
localScope string The scope this context defines, if any. null if omitted.
childNodes ICollection The child nodes.
return System