C# Class Rubberduck.Parsing.Nodes.CommentNode

Represents a comment.
This is working around the limitations of the .g4 grammar file in use, which ignores comments. Ideally comments would be part of the grammar, and parsed along with the rest of the language syntax into an IParseTree.
Datei anzeigen Open project: retailcoder/Rubberduck Class Usage Examples

Public Methods

Method Description
CommentNode ( string comment, string marker, QualifiedSelection qualifiedSelection ) : Rubberduck.VBEditor

Creates a new comment node.

ToString ( ) : string

Returns the comment text.

Method Details

CommentNode() public method

Creates a new comment node.
public CommentNode ( string comment, string marker, QualifiedSelection qualifiedSelection ) : Rubberduck.VBEditor
comment string The comment line text, without the comment marker.
marker string
qualifiedSelection Rubberduck.VBEditor.QualifiedSelection The information required to locate and select this node in its VBE code pane.
return Rubberduck.VBEditor

ToString() public method

Returns the comment text.
public ToString ( ) : string
return string