@@ -104,7 +104,7 @@ pub enum KeywordParsing {
104104 /// Function keyword: `sizeof`, `static_assert`, ...
105105 Func ( Func ) ,
106106 /// `NULL` constant
107- Nullptr ,
107+ Null ,
108108 /// Keywords that need to be pushed in an existing control flow block
109109 Pushable ( PushableKeyword ) ,
110110 /// Boolean constant `true`
@@ -117,7 +117,7 @@ impl PushInNode for KeywordParsing {
117117 Self :: Func ( func) => func. push_in_node ( node) ,
118118 Self :: Attr ( attr) => attr. push_in_node ( node) ,
119119 Self :: CtrlFlow ( ctrl) => ctrl. push_in_node ( node) ,
120- Self :: Nullptr => node. push_block_as_leaf ( Ast :: Leaf ( Literal :: Nullptr ) ) ,
120+ Self :: Null => node. push_block_as_leaf ( Ast :: Leaf ( Literal :: Null ) ) ,
121121 Self :: True => node. push_block_as_leaf ( Ast :: Leaf ( Literal :: ConstantBool ( true ) ) ) ,
122122 Self :: False => node. push_block_as_leaf ( Ast :: Leaf ( Literal :: ConstantBool ( false ) ) ) ,
123123 Self :: Pushable ( pushable) => pushable. push_in_node ( node) ,
@@ -132,11 +132,9 @@ impl TryFrom<(Keyword, Context)> for KeywordParsing {
132132 // constants
133133 Keyword :: True => Self :: True ,
134134 Keyword :: False => Self :: False ,
135- Keyword :: Null | Keyword :: Nullptr => Self :: Nullptr ,
135+ Keyword :: Null => Self :: Null ,
136136 // functions
137137 Keyword :: Sizeof => Self :: Func ( Func :: Sizeof ) ,
138- Keyword :: Typeof => Self :: Func ( Func :: Typeof ) ,
139- Keyword :: TypeofUnqual => Self :: Func ( Func :: TypeofUnqual ) ,
140138 Keyword :: Alignof | Keyword :: UAlignof => Self :: Func ( Func :: Alignof ) ,
141139 Keyword :: StaticAssert | Keyword :: UStaticAssert => Self :: Func ( Func :: StaticAssert ) ,
142140 // pushable
0 commit comments