Method | Description | |
---|---|---|
AddComment ( Comment comment ) : void |
Add a comment to the comment set. Add a comment to the comment set. |
|
AstRoot ( ) : System | ||
AstRoot ( int pos ) : System | ||
CheckParentLinks ( ) : void |
Debugging function to check that the parser has set the parent link for every node in the tree. Debugging function to check that the parser has set the parent link for every node in the tree. |
|
DebugPrint ( ) : string |
A debug-printer that includes comments (at the end). A debug-printer that includes comments (at the end). |
|
GetComments ( ) : ICollection |
Returns comment set
|
|
IsInStrictMode ( ) : bool | ||
SetComments ( ICollection |
Sets comment list, and updates the parent of each entry to point to this node. Sets comment list, and updates the parent of each entry to point to this node. Replaces any existing comments. |
|
SetInStrictMode ( bool inStrictMode ) : void | ||
ToSource ( int depth ) : string | ||
VisitAll ( NodeVisitor visitor ) : void |
Visits the AST nodes, then the comment nodes. Visits the AST nodes, then the comment nodes. This method is equivalent to calling |
|
VisitComments ( NodeVisitor visitor ) : void |
Visits the comment nodes in the order they appear in the source code. Visits the comment nodes in the order they appear in the source code. The comments are not visited by the |
public AddComment ( Comment comment ) : void | ||
comment | Comment | the comment node. |
return | void |
public SetComments ( ICollection |
||
comments | ICollection |
/// comment list. can be
/// null
/// .
/// |
return | void |
public SetInStrictMode ( bool inStrictMode ) : void | ||
inStrictMode | bool | |
return | void |
public VisitAll ( NodeVisitor visitor ) : void | ||
visitor | NodeVisitor | the callback object. |
return | void |
public VisitComments ( NodeVisitor visitor ) : void | ||
visitor | NodeVisitor | /// the callback object. It is passed each comment node. /// The return value is ignored. /// |
return | void |