Skip to content

Commit 3b8aa37

Browse files
committed
Update link to CompiledFile in README
1 parent 427cfa7 commit 3b8aa37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Getting incremental compilation at the expression level is a bit more complicate
4040
- Find the smallest section the encompasses all the user changes
4141
- Get the `LexicalScope` encompassing this region from the `BindingContext` that was generated by the full-compile
4242
- Create a fake, in-memory .kt file with just the expression we want to re-compile
43-
- [Add space](server/src/main/kotlin/org/javacs/kt/CompiledFile.kt#L81) at the top of the file so the line numbers match up
43+
- [Add space](https://github.com/fwcd/kotlin-language-server/blob/427cfa7a688d6d2ff202625ebad1ea605e3b8c37/server/src/main/kotlin/org/javacs/kt/CompiledFile.kt#L125) at the top of the file so the line numbers match up
4444
- Re-compile this tiny fake file
4545

4646
The incremental expression compilation logic is all in [CompiledFile.kt](server/src/main/kotlin/org/javacs/kt/CompiledFile.kt). The Kotlin AST has a built-in repair API, which seems to be how IntelliJ works, but as far as I can tell this API does not work if the surrounding IntelliJ machinery is not present. Hence I created the "fake tiny file" incremental-compilation mechanism, which seems to be quite fast and predictable.

0 commit comments

Comments
 (0)