Home
last modified time | relevance | path

Searched refs:parseCompilationUnit (Results 1 – 5 of 5) sorted by relevance

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/
DTypeDeclarationTest.java8 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/
DTestParser.java18 public static CompilationUnit parseCompilationUnit(String stmt) { in parseCompilationUnit() method in TestParser
/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/
DFormatter.java145 unit = parser.parseCompilationUnit(); in format()
DRemoveUnusedImports.java225 unit = parser.parseCompilationUnit(); in parse()
DStringWrapper.java396 unit = parser.parseCompilationUnit(); in parse()