Skip to content

Commit 8a9593b

Browse files
authored
Update parser-en.md
1 parent 0936cc6 commit 8a9593b

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

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)