Skip to content

Commit

Permalink
fix: support abstract auto-accessors (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Apr 24, 2024
1 parent da9efd2 commit a9b147a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
36 changes: 18 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ harness = false

[dependencies]
anyhow = "1.0.64"
deno_ast = { version = "0.37.0", features = ["view"] }
deno_ast = { version = "0.38.0", features = ["view"] }
dprint-core = { version = "0.66.1", features = ["formatting"] }
dprint-core-macros = "0.1.0"
percent-encoding = "2.3.1"
Expand Down
2 changes: 1 addition & 1 deletion src/generation/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ fn gen_auto_accessor<'a>(node: &AutoAccessor<'a>, context: &mut Context<'a>) ->
is_auto_accessor: true,
is_declare: false,
accessibility: node.accessibility(),
is_abstract: false,
is_abstract: node.is_abstract(),
is_optional: false,
is_override: node.is_override(),
readonly: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Person {
accessor #test = 2;
accessor here!: string;
override accessor test4: string;
abstract accessor abstractAccessor: string;

constructor(name: string) {
this.name = name;
Expand All @@ -23,6 +24,7 @@ class Person {
accessor #test = 2;
accessor here!: string;
override accessor test4: string;
abstract accessor abstractAccessor: string;

constructor(name: string) {
this.name = name;
Expand Down

0 comments on commit a9b147a

Please sign in to comment.