Add Decorator node (#7)
This commit is contained in:
committed by
Charlie Marsh
parent
8a415fa61e
commit
6f65c5cba7
@@ -1151,9 +1151,9 @@ ClassDef: ast::Stmt = {
|
||||
};
|
||||
|
||||
// Decorators:
|
||||
Decorator: ast::Expr = {
|
||||
<location:@L> "@" <p:NamedExpressionTest> "\n" => {
|
||||
p
|
||||
Decorator: ast::Decorator = {
|
||||
<location:@L> "@" <p:NamedExpressionTest> <end_location:@R> "\n" => {
|
||||
ast::Decorator { range: optional_range(location, end_location), expression: p }
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user