Neslib.ClangNeslib.Clang Units Class Hierarchy Classes, Interfaces, Objects and Records Types Variables Constants Functions and Procedures Identifiers License |
record TComment
Unit
Neslib.Clang
Declaration
type TComment = record
Description
A parsed comment.
Overview
Properties
Description
Properties
property ChildCount: Integer read GetChildCount; |
Number of comment children of this node
|
property Children[constAIndex:Integer]: TComment read GetChild; |
Comment children of this node
|
property IsWhitespace: Boolean read GetIsWhitespace; |
Whether this comment is whitespace. A Paragraph node is considered whitespace if it contains only Text nodes that are empty or whitespace.
Other AST nodes (except Paragraph and Text) are never considered whitespace.
|
property HasTrailingNewline: Boolean read GetHasTrailingNewline; |
Whether this is an inline content and has a newline immediately following it in the comment text. Newlines between paragraphs do not count.
|
property Text: String read GetText; |
For Text AST nodes, the text of the comment
|
property InlineCommandName: String read GetInlineCommandName; |
For InlineCommand AST nodes, the name of the command
|
property InlineCommandRenderKind: TCommentInlineCommandRenderKind read GetInlineCommandRenderKind; |
For InlineCommand AST nodes, the most appropriate rendering mode, chosen on command semantics in Doxygen.
|
property InlineCommandArgCount: Integer read GetInlineCommandArgCount; |
For InlineCommand AST nodes, the number of command arguments
|
property InlineCommandArgs[constAIndex:Integer]: String read GetInlineCommandArg; |
For InlineCommand AST nodes, the command arguments
|
property HtmlTagName: String read GetHtmlTagName; |
For HtmlStartTag and HtmlEndTag AST nodes, the tag name
|
property HtmlTagIsSelfClosing: Boolean read GetHtmlTagIsSelfClosing; |
For HtmlStartTag AST nodes, whether the tag is self-closing (for example <br /> )
|
property HtmlTagAttrCount: Integer read GetHtmlTagAttrCount; |
For HtmlStartTag AST nodes, the number of attributes (name-value pairs) attached to the tag.
|
property HtmlTagAttrNames[constAIndex:Integer]: String read GetHtmlTagAttrName; |
For HtmlStartTag AST nodes, the attribute names.
|
property HtmlTagAttrValues[constAIndex:Integer]: String read GetHtmlTagAttrValue; |
For HtmlStartTag AST nodes, the attribute values.
|
property BlockCommandName: String read GetBlockCommandName; |
For BlockCommand AST nodes, the name of the block command.
|
property BlockCommandArgCount: Integer read GetBlockCommandArgCount; |
For BlockCommand AST nodes, the number of word-like arguments
|
property BlockCommandArgs[constAIndex:Integer]: String read GetBlockCommandArg; |
For BlockCommand AST nodes, the word-like arguments
|
property BlockCommandParagraph: TComment read GetBlockCommandParagraph; |
For BlockCommand or VerbatimBlockCommand AST nodes, the paragraph argument of the block command
|
property ParamCommandParamName: String read GetParamCommandParamName; |
For ParamCommand AST nodes, the parameter name
|
property ParamCommandIsParamIndexValid: Boolean read GetParamCommandIsParamIndexValid; |
For ParamCommand AST nodes, whether the parameter that this AST node represents was found in the function prototype and ParamCommandParamIndex function will return a meaningful value.
|
property ParamCommandParamIndex: Integer read GetParamCommandParamIndex; |
For ParamCommand AST nodes, the zero-based parameter index in function prototype.
|
property ParamCommandIsDirectionExplicit: Boolean read GetParamCommandIsDirectionExplicit; |
For ParamCommand AST nodes, whether a parameter passing direction was specified explicitly in the comment.
|
property ParamCommandDirection: TCommentParamPassDirection read GetParamCommandDirection; |
For ParamCommand AST nodes, the parameter passing direction.
|
property TParamCommandParamName: String read GetTParamCommandParamName; |
For TParamCommand AST nodes, the template parameter name.
|
property TParamCommandIsParamPositionValied: Boolean read GetTParamCommandIsParamPositionValied; |
For TParamCommand AST nodes, whether the parameter that this AST node represents was found in the template parameter list and TParamCommandDepth and TParamCommandIndex functions will return meaningful values.
|
property TParamCommandDepth: Integer read GetTParamCommandDepth; |
For TParamCommand AST nodes, the zero-based nesting depth of this parameter in the template parameter list.
For example,
template<typename C, template<typename T> class TT>
void test(TT<int> aaa);
For C and TT nesting depth is 0, for T nesting depth is 1.
|
property TParamCommandIndex[constADepth:Integer]: Integer read GetTParamCommandIndex; |
For TParamCommand AST nodes, the zero-based parameter index in the template parameter list at a given nesting depth.
For example,
template<typename C, template<typename T> class TT>
void test(TT<int> aaa);
For C and TT nesting depth is 0, so we can ask for index at depth 0: at depth 0 C's index is 0, TT's index is 1.
For T nesting depth is 1, so we can ask for index at depth 0 and 1: at depth 0 T's index is 1 (same as TT's), at depth 1 T's index is 0.
|
property VerbatimBlockLineText: String read GetVerbatimBlockLineText; |
For VerbatimBlockLine AST nodes, the text contained in the AST node.
|
property VerbatimLineText: String read GetVerbatimLineText; |
For VerbatimLine AST nodes, the text contained in the AST node.
|
property HtmlTagAsString: String read GetHtmlTagAsString; |
For HtmlStartTag and HtmlEndTag AST nodes, the tag converted to a string
|
property FullCommentAsHtml: String read GetFullCommentAsHtml; |
For FullComment AST nodes, the full parsed comment as an HTML fragment.
Specific details of HTML layout are subject to change. Don't try to parse this HTML back into an AST, use other APIs instead.
Currently the following CSS classes are used:
"para-brief" for \brief paragraph and equivalent commands;
"para-returns" for \returns paragraph and equivalent commands;
"word-returns" for the "Returns" word in \returns paragraph.
Function argument documentation is rendered as a <dl\> list with arguments sorted in function prototype order. CSS classes used:
"param-name-index-NUMBER" for parameter name (<dt\>);
"param-descr-index-NUMBER" for parameter description (<dd\>);
"param-name-index-invalid" and "param-descr-index-invalid" are used if parameter index is invalid.
Template parameter documentation is rendered as a <dl\> list with parameters sorted in template parameter list order. CSS classes used:
"tparam-name-index-NUMBER" for parameter name (<dt\>);
"tparam-descr-index-NUMBER" for parameter description (<dd\>);
"tparam-name-index-other" and "tparam-descr-index-other" are used for names inside template template parameters;
"tparam-name-index-invalid" and "tparam-descr-index-invalid" are used if parameter position is invalid.
|
property FullCommentASXml: String read GetFullCommentASXml; |
For FullComment AST nodes, the full parsed comment as an XML document.
A Relax NG schema for the XML can be found in comment-xml-schema.rng file inside clang source tree.
|
property Handle: TCXComment read FHandle; |
Internal handle to C API
|
Generated by PasDocEx, based on PasDoc 0.14.0.
|