public interface IASParserASDocDelegate
| Modifier and Type | Method and Description |
|---|---|
IASDocComment |
afterDefinition(IDocumentableDefinitionNode definitionNode)
Called by the
ASParser after an IDocumentableDefinitionNode has been constructed
and fully parsed. |
void |
afterVariable() |
void |
beforeVariable()
Called by the
ASParser before a variable is parsed. |
IMetadataParserASDocDelegate |
getMetadataParserASDocDelegate()
Called by the
ASParser to get an implementation of
IMetadataParserASDocDelegate that will be used by the
MetadataParser to record information about ASDoc comments
encountered while parsing ActionScript meta-data. |
void |
setCurrentASDocToken(antlr.Token asDocToken)
Called by the
ASParser whenever a Token containing an ASDoc
comment is encountered. |
void beforeVariable()
ASParser before a variable is parsed.
This is here to handle cases like this:
/**
* Documentation for variable a.
*/
var a:*,b:* = function () {
var var_that_is_not_documented : *;
}
The easiest way to handle the above case is to push the current ASDoc state on to a
stack and pop it off that stack when afterVariable() is called.
void afterVariable()
beforeVariable()void setCurrentASDocToken(antlr.Token asDocToken)
ASParser whenever a Token containing an ASDoc
comment is encountered.asDocToken - A Token containing an ASDoc comment.IASDocComment afterDefinition(IDocumentableDefinitionNode definitionNode)
ASParser after an IDocumentableDefinitionNode has been constructed
and fully parsed.definitionNode - IDocumentableDefinitionNode that has been parsed.IASDocComment that should be attached to the IDocumentableDefinitionNode.IMetadataParserASDocDelegate getMetadataParserASDocDelegate()
ASParser to get an implementation of
IMetadataParserASDocDelegate that will be used by the
MetadataParser to record information about ASDoc comments
encountered while parsing ActionScript meta-data.
Implementations of the IMetadataParserASDocDelegate interface
that record ASDoc data are stateful and can not be shared between
MetadataParser instances.
IMetadataParserASDocDelegate that
will be used by the MetadataParser to record information about
ASDoc comments encountered while parsing ActionScript meta-data.Copyright © 2016 The Apache Software Foundation. All rights reserved.