Skip to content

Commit 287e55f

Browse files
Denys Smirnovdennwc
authored andcommitted
assert empty attributes for now; none of the tests contain them
Signed-off-by: Denys Smirnov <denys@sourced.tech>
1 parent 4ceffe5 commit 287e55f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

driver/normalizer/normalizer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ var Normalizers = []Mapping{
540540
uast.KeyType: String(uast.TypeOf(uast.Identifier{})),
541541
"Name": String("__arglist"),
542542
}, Var("name")),
543-
"AttributeLists": Arr(),
543+
"AttributeLists": Arr(), // TODO(dennwc): any cases when it's not empty?
544544
"Default": Var("def_init"),
545545
"IsMissing": Bool(false),
546546
"IsStructuredTrivia": Bool(false),
@@ -563,7 +563,7 @@ var Normalizers = []Mapping{
563563
"Identifier": Check(Has{
564564
uast.KeyType: String(uast.TypeOf(uast.Identifier{})),
565565
}, Var("name")),
566-
"AttributeLists": Any(),
566+
"AttributeLists": Arr(), // TODO(dennwc): any cases when it's not empty?
567567
"Default": Var("def_init"),
568568
"IsMissing": Bool(false),
569569
"IsStructuredTrivia": Any(),

0 commit comments

Comments
 (0)