Skip to content

Commit 227e748

Browse files
authored
Update parser-en.md
1 parent 891ff93 commit 227e748

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

docs/parser-en.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ Since UniAST is not completely equivalent to LSP, some language-specific behavio
2828
- GetDefaultLSP(): Map user input language to specific lsp.Language and corresponding LSP name
2929
- CheckRepo(): Check user repository status, handle toolchain issues according to language specifications, and return the first file to open by default (for triggering LSP server) and the waiting time for server initialization (determined by repository size)
3030
- **LanguageSpec interface**: Core module for handling non-LSP generic syntax information, such as determining if a token is a standard library symbol, function signature parsing, etc.
31-
- ModulePatcher: Post-processing module for handling language-specific information collection. For example, rust's use symbol collection (not collected by LSP). Can be left unimplemented
3231

3332
### LanguageSpec
3433

@@ -83,15 +82,3 @@ type LanguageSpec interface {
8382
```
8483

8584
- Rust-parser implementation location: [RustSpec](/lang/rust/spec.go)
86-
87-
### ModulePatcher
88-
89-
```go
90-
// ModulePatcher supplements some information for module
91-
type ModulePatcher interface {
92-
// Patch is called after collect all symbols
93-
Patch(ast *parse.Module)
94-
}
95-
```
96-
97-
- Rust-parser implementation: [RustModulePatcher](/lang/rust/patch.go)

0 commit comments

Comments
 (0)