Attributes (ref) - vilinski/nemerle GitHub Wiki

[<< Back to Reference Manual.](Reference Manual)

The semantics of attributes is the same as in C#, except for the mutable attribute, meaning lack of readonly on fields.

attributes = 
  { attribute }

attribute = 
 'new' 
 | ’volatile’ 
 | ’public’ 
 | ’protected’ 
 | ’internal’ 
 | ’private’ 
 | ’abstract’ 
 | ’sealed’ 
 | ’override’ 
 | ’static’ 
 | ’mutable’ 
 | ’extern’ 
 | custom\_attribute

custom\_attribute = 
'[' [ attribute\_target ’:’ ] Expressions\_(ref):expr { ',' expr } ']'

attribute\_target =  
'assembly' 
| ’field’ 
| ’event’ 
| ’method’ 
| ’module’ 
| ’param’ 
| ’property’
| ’return’ 
| ’type’