Parser.parseAttributes

Parses one or more attributes and a Declaration at the end.

$(BNF /Attributes := / (StorageAttribute | AlignAttribute | PragmaAttribute | ProtAttribute)* / DeclsBlock /StorageAttribute := extern | ExternLinkageType | override | abstract | / auto | synchronized | static | final | const | immutable | enum | scope /AlignAttribute := align ("(" Integer ")")? /PragmaAttribute := pragma "(" Identifier ("," ExpressionList)? ")" /ProtAttribute := private | public | package | protected | export)

class Parser
Declaration
parseAttributes
(
Declaration* pDecl = null
)

Parameters

pDecl
Type: Declaration*

Set to the non-attribute Declaration if non-null.

Meta