Searched refs:parseCompilationUnit (Results 1 – 5 of 5) sorted by relevance
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/ |
D | TypeDeclarationTest.java | 8 import static com.github.javaparser.utils.TestParser.parseCompilationUnit; 15 assertFQN("X", parseCompilationUnit("class X{ }")); in qualifiedNameOfClassInDefaultPackage() 20 assertFQN("a.b.c.X", parseCompilationUnit("package a.b.c; class X{}")); in qualifiedNameOfClassInAPackage() 25 assertFQN("a.b.c.X", parseCompilationUnit("package a.b.c; interface X{}")); in qualifiedNameOfInterfaceInAPackage() 30 assertFQN("a.b.c.X", parseCompilationUnit("package a.b.c; enum X{}")); in qualifiedNameOfEnumInAPackage() 35 assertFQN("a.b.c.X", parseCompilationUnit("package a.b.c; @interface X{}")); in qualifiedNameOfAnnotationInAPackage() 40 …assertFQN("a.b.c.Outer,a.b.c.Outer.Nested", parseCompilationUnit("package a.b.c; class Outer{ clas… in qualifiedNameOfNestedClassInAPackage() 45 assertFQN("X", parseCompilationUnit("class X{ int aaa() {new Object(){};} }")); in qualifiedNameOfAnonymousClassCantBeQueried() 50 assertFQN("X,?", parseCompilationUnit("class X{ int aaa() {class Local {}} }")); in qualifiedNameOfLocalClassIsEmpty()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/utils/ |
D | TestParser.java | 18 public static CompilationUnit parseCompilationUnit(String stmt) { in parseCompilationUnit() method in TestParser
|
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/ |
D | Formatter.java | 145 unit = parser.parseCompilationUnit(); in format()
|
D | RemoveUnusedImports.java | 225 unit = parser.parseCompilationUnit(); in parse()
|
D | StringWrapper.java | 396 unit = parser.parseCompilationUnit(); in parse()
|