You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/advanced/faq.md
+23-1Lines changed: 23 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -201,4 +201,26 @@ pattern:
201
201
selector: field_definition # select the effective pattern
202
202
```
203
203
204
-
Note the rule above is one single pattern rule, instead of two. The `context` field provides the full unambiguous code snippet of `class`. So the `a = 123` will be parsed as `field_definition`. The `selector` field then selects the `field_definition` node as the [effective pattern](/advanced/pattern-parse.html#steps-to-create-a-pattern) matcher.
204
+
Note the rule above is one single pattern rule, instead of two. The `context` field provides the full unambiguous code snippet of `class`. So the `a = 123` will be parsed as `field_definition`. The `selector` field then selects the `field_definition` node as the [effective pattern](/advanced/pattern-parse.html#steps-to-create-a-pattern) matcher.
205
+
206
+
## Does ast-grep support some advanced static analysis?
207
+
208
+
Short answer: **NO**.
209
+
210
+
Long answer: ast-grep at the moment does not support the following information:
Copy file name to clipboardExpand all lines: website/advanced/tool-comparison.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,12 @@ The author is grateful to these predecessor tools for inspiring ast-grep! The re
17
17
**Cons**:
18
18
* It is still young and under development. It may have some bugs or limitations that need to be fixed or improved.
19
19
* It does not have deep semantic information or comparison equivalence. It only operates on the syntactic level of the code, which may miss some matches or may be too cumbersome to match certain code.
20
+
* More specifically, ast-grep at the moment does not support the following information:
0 commit comments