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.
Afficher le fichier Open project: retailcoder/Rubberduck Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat Rubberduck.VBEditor

ToString() public méthode

Returns the comment text.
public ToString ( ) : string
Résultat string