Skip to content

Commit ec4c0e4

Browse files
committed
Document when DataType.name can be an identifier.
1 parent d17386d commit ec4c0e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cst/DataType.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export type DataType =
1919

2020
export interface NamedDataType extends BaseNode {
2121
type: "named_data_type";
22+
// Note that the name can be an identifier, but only a quoted identifier.
2223
name: Keyword | Keyword[] | Identifier;
2324
params?: ParenExpr<ListExpr<Literal>> | GenericTypeParams;
2425
}

0 commit comments

Comments
 (0)