summaryrefslogtreecommitdiff
path: root/src/test/incremental-compile
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-24 22:53:36 -0800
committerGeorge Fraser <george@fivetran.com>2019-03-31 10:49:44 -0700
commit31e0469b9ce63d39f8a732b32ae1afbc2e8e9d37 (patch)
tree4fb6a323f47710b33b1b50ca1f749d50e15e6995 /src/test/incremental-compile
parentf00234f1bc0949e21527c189ce7ceb33438ec932 (diff)
downloadjava-language-server-31e0469b9ce63d39f8a732b32ae1afbc2e8e9d37.zip
Demo how to re-use compiler
Diffstat (limited to 'src/test/incremental-compile')
-rw-r--r--src/test/incremental-compile/src/foo/bar/Bar.java7
-rw-r--r--src/test/incremental-compile/src/foo/bar/Foo.java7
2 files changed, 14 insertions, 0 deletions
diff --git a/src/test/incremental-compile/src/foo/bar/Bar.java b/src/test/incremental-compile/src/foo/bar/Bar.java
new file mode 100644
index 0000000..0f0829a
--- /dev/null
+++ b/src/test/incremental-compile/src/foo/bar/Bar.java
@@ -0,0 +1,7 @@
+package foo.bar;
+
+class Bar {
+ static int test() {
+ return 1;
+ }
+} \ No newline at end of file
diff --git a/src/test/incremental-compile/src/foo/bar/Foo.java b/src/test/incremental-compile/src/foo/bar/Foo.java
new file mode 100644
index 0000000..dea73d5
--- /dev/null
+++ b/src/test/incremental-compile/src/foo/bar/Foo.java
@@ -0,0 +1,7 @@
+package foo.bar;
+
+class Foo {
+ static void test() {
+ var x = Bar.test();
+ }
+} \ No newline at end of file