Merge: More documentation in src
authorJean Privat <jean@pryen.org>
Sat, 20 Dec 2014 03:24:28 +0000 (22:24 -0500)
committerJean Privat <jean@pryen.org>
Sat, 20 Dec 2014 03:24:28 +0000 (22:24 -0500)
A lot a documentation, especially in the AST

Pull-Request: #1050
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

1  2 
src/frontend/check_annotation.nit
src/frontend/frontend.nit
src/literal.nit
src/parser/parser_nodes.nit
src/parser_util.nit

Simple merge
Simple merge
diff --cc src/literal.nit
Simple merge
  
  # A single annotation
  class AAnnotation
-       super Prod
-       var n_doc: nullable ADoc = null is writable
-       var n_kwredef: nullable TKwredef = null is writable
-       var n_visibility: nullable AVisibility is writable
+       super ADefinition
+       # The name of the annotation
        var n_atid: AAtid is writable, noinit
+       # The opening parenthesis of the arguments
        var n_opar: nullable TOpar = null is writable
+       # The list of arguments
        var n_args = new ANodes[AExpr](self)
+       # The closing parenthesis
        var n_cpar: nullable TCpar = null is writable
 +
 +      # The name of the annotation
 +      fun name: String
 +      do
 +              return n_atid.n_id.text
 +      end
  end
  
  # An annotation name
Simple merge