nullable: type, compile and test 'isset _attr'
[nit.git] / src / parser / parser_nodes.nit
index b135bfc..6e2f6ac 100644 (file)
@@ -162,6 +162,12 @@ end
 class TKwwith
 special Token
 end
+class TKwnullable
+special Token
+end
+class TKwisset
+special Token
+end
 class TOpar
 special Token
 end
@@ -538,6 +544,7 @@ special PClosureDecl
 end
 class AType
 special PType
+    readable writable attr _n_kwnullable: TKwnullable = null
     readable writable attr _n_id: TClassid = null
     readable writable attr _n_types: List[PType] = null
 end
@@ -878,6 +885,17 @@ special PExpr
     readable writable attr _n_kwas: TKwas = null
     readable writable attr _n_type: PType = null
 end
+class AAsNotnullExpr
+special PExpr
+    readable writable attr _n_expr: PExpr = null
+    readable writable attr _n_kwas: TKwas = null
+    readable writable attr _n_kwnot: TKwnot = null
+    readable writable attr _n_kwnull: TKwnull = null
+end
+class AIssetAttrExpr
+special AAttrFormExpr
+    readable writable attr _n_kwisset: TKwisset = null
+end
 class APlusAssignOp
 special PAssignOp
     readable writable attr _n_pluseq: TPluseq = null