A data class for storing parsed prototypes.
NaturalDocs:: | A data class for storing parsed prototypes. |
Functions | |
New | Creates and returns a new prototype object. |
BeforeParameters | Returns the part of the prototype before the parameter list. |
SetBeforeParameters | Replaces the part of the prototype before the parameter list. |
AfterParameters | Returns the part of the prototype after the parameter list, if any. |
SetAfterParameters | Replaces the part of the prototype after the parameter list. |
Parameters | Returns the parameter list as an arrayref of NaturalDocs::Languages::Prototype::Parameters, or undef if none. |
AddParameter | Adds a NaturalDocs::Languages::Prototype::Parameter to the list. |
OnlyBeforeParameters | Returns whether BeforeParameters() is the only thing set. |
sub New #( beforeParameters, afterParameters )
Creates and returns a new prototype object.
beforeParameters | The part of the prototype before the parameter list. |
afterParameters | The part of the prototype after the parameter list. |
You cannot set the parameters from here. Use AddParameter().
Returns the parameter list as an arrayref of NaturalDocs::Languages::Prototype::Parameters, or undef if none.
sub AddParameter #( parameter )
Adds a NaturalDocs::Languages::Prototype::Parameter to the list.
sub OnlyBeforeParameters
Returns whether BeforeParameters() is the only thing set.
Creates and returns a new prototype object.
sub New #( beforeParameters, afterParameters )
Adds a NaturalDocs::Languages::Prototype::Parameter to the list.
sub AddParameter #( parameter )
Returns whether BeforeParameters() is the only thing set.
sub OnlyBeforeParameters