Skip to content

Commit

Permalink
Improve SemanticTokensCommandTest
Browse files Browse the repository at this point in the history
Signed-off-by: 0dinD <zerodind@gmail.com>
  • Loading branch information
0dinD authored and fbricon committed Jul 22, 2020
1 parent 1c08ae6 commit b7f6cef
Show file tree
Hide file tree
Showing 12 changed files with 208 additions and 185 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="lib" path="foo.jar" sourcepath="foo-sources.jar"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
17 changes: 17 additions & 0 deletions org.eclipse.jdt.ls.tests/projects/eclipse/semantic-tokens/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>semantic-tokens</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package foo;

public class Annotations {

@SuppressWarnings
public void foo() {}

@SuppressWarnings("all")
public void bar() {}

@SuppressWarnings(value = "all")
public void baz() {}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package foo;

public class Constructors {

private Constructors() {
Constructors c = new Constructors();
Constructors.InnerClass i1 = new Constructors.InnerClass();
Constructors.InnerClass i2 = new @SomeAnnotation Constructors.InnerClass();
Constructors.InnerClass<String> i3 = new Constructors.InnerClass<String>();
}

protected class InnerClass<T> {}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package foo;

public class Methods {

public void foo1() {}
private void foo2() {}
protected void foo3() {}
static void foo4() {}
@Deprecated
void foo5() {}
public static void main(String args[]) {}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package foo;

import static java.lang.Math.PI;
import java.util.List;
import java.NonExistentClass;
import java.nio.*;
import java.*;

public class Packages {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package foo;

public class Properties {

public String bar1;
private int bar2;
protected boolean bar3;
final String bar4;
static int bar5;
public static final int bar6 = 1;

enum SomeEnum {
FIRST,
SECOND
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package foo;

public class Types {

public String // comments
s1 = happy,
s2, s3;
class SomeClass<T> {}
interface SomeInterface {}
enum SomeEnum {}
@interface SomeAnnotation {}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package foo;

public class Variables {

public static void foo(String string) {
String bar1 = string;
String bar2;
final String bar3 = "test";
}

}
Loading

0 comments on commit b7f6cef

Please sign in to comment.