Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RodgeFu committed May 31, 2024
1 parent 818485e commit 30acf47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
11 changes: 2 additions & 9 deletions packages/compiler/src/core/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1179,16 +1179,12 @@ function createParser(code: string | SourceFile, options: ParseOptions = {}): Pa
): EnumStatementNode {
parseExpected(Token.EnumKeyword);
const id = parseIdentifier();
const { items: members, range: bodyRange } = parseList(
ListKind.EnumMembers,
parseEnumMemberOrSpread
);
const { items: members } = parseList(ListKind.EnumMembers, parseEnumMemberOrSpread);
return {
kind: SyntaxKind.EnumStatement,
id,
decorators,
members,
bodyRange,
...finishNode(pos),
};
}
Expand Down Expand Up @@ -1502,10 +1498,7 @@ function createParser(code: string | SourceFile, options: ParseOptions = {}): Pa
// `@<missing identifier>` applied to `model Foo`, and not as `@model`
// applied to invalid statement `Foo`.
const target = parseIdentifierOrMemberExpression(undefined, false);
const { items: args, range: argRange } = parseOptionalList(
ListKind.DecoratorArguments,
parseExpression
);
const { items: args } = parseOptionalList(ListKind.DecoratorArguments, parseExpression);
if (args.length === 0) {
error({ code: "augment-decorator-target" });
const emptyList = createEmptyList<TemplateArgumentNode>();
Expand Down
1 change: 0 additions & 1 deletion packages/compiler/src/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,6 @@ export interface UnionVariantNode extends BaseNode {
export interface EnumStatementNode extends BaseNode, DeclarationNode {
readonly kind: SyntaxKind.EnumStatement;
readonly members: readonly (EnumMemberNode | EnumSpreadMemberNode)[];
readonly bodyRange: TextRange;
readonly decorators: readonly DecoratorExpressionNode[];
readonly parent?: TypeSpecScriptNode | NamespaceStatementNode;
}
Expand Down

0 comments on commit 30acf47

Please sign in to comment.