Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lsproxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ serde_json = "1.0"
strum = "0.25"
strum_macros = "0.25"
tokio = { version = "1.0", features = ["full", "process"] }
utoipa = { version = "5.0", features = ["actix_extras"] }
utoipa-swagger-ui = { version = "9.0.1", features = ["actix-web"] }
utoipa = { git = "https://github.com/juhaku/utoipa.git", rev = "cecda0531bf7d90800af66b186055932ee730526", features = ["actix_extras"] }
utoipa-swagger-ui = { git = "https://github.com/juhaku/utoipa.git", rev = "cecda0531bf7d90800af66b186055932ee730526", features = ["actix-web"] }
rand = "0.8"
async-trait = "0.1"
futures = "0.3"
Expand Down
4 changes: 3 additions & 1 deletion lsproxy/src/ast_grep/symbol/rules/javascript/function.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ rule:
inside:
kind: pair
has:
kind: arrow_function
any:
- kind: function_expression
- kind: arrow_function
pattern: $CONTEXT
15 changes: 10 additions & 5 deletions lsproxy/src/ast_grep/symbol/rules/javascript/method.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
id: method
language: javascript
rule:
kind: identifier
pattern: $NAME
inside:
kind: method_definition
pattern: $CONTEXT
pattern: $NAME
any:
- kind: identifier
inside:
kind: method_definition
pattern: $CONTEXT
- kind: property_identifier
inside:
kind: method_definition
pattern: $CONTEXT
Loading