Skip to content

Commit

Permalink
Mark invalid fields in Function types to be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
nene committed Mar 27, 2024
1 parent e746998 commit b384e03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/syntax/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { isAsClause } from "../node_utils";
import { CstToDocMap } from "../CstToDocMap";

export const functionMap: CstToDocMap<AllFunctionNodes> = {
/** cst-ignore: behaviorKw */
create_function_stmt: (print, node) => [
print.spaced([
"createKw",
Expand Down Expand Up @@ -61,6 +62,7 @@ export const functionMap: CstToDocMap<AllFunctionNodes> = {
node.behaviorKw ? [print.dynamicLine(), print("behaviorKw")] : [],
]),
reset_parameter_clause: (print) => print.spaced(["resetKw", "name"]),
/** cst-ignore: name */
reset_all_parameters_clause: (print) => print.spaced("resetAllKw"),
};

Expand Down

0 comments on commit b384e03

Please sign in to comment.