OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:forStmt
(Results
1 - 6
of
6
) sorted by null
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/
JavaParserTest.java
227
ForStmt
forStmt
= JavaParser.parseStatement("for(int a,b=0;;){}").asForStmt();
228
assertEquals(1,
forStmt
.getInitialization().size());
229
assertEquals(true,
forStmt
.getInitialization().get(0).isVariableDeclarationExpr());
230
assertEquals(2,
forStmt
.getInitialization().get(0).asVariableDeclarationExpr().getVariables().size());
231
assertEquals("a",
forStmt
.getInitialization().get(0).asVariableDeclarationExpr().getVariables().get(0).getNameAsString());
232
assertEquals("b",
forStmt
.getInitialization().get(0).asVariableDeclarationExpr().getVariables().get(1).getNameAsString());
233
assertEquals(false,
forStmt
.getInitialization().get(0).asVariableDeclarationExpr().getVariables().get(0).getInitializer().isPresent());
234
assertEquals(true,
forStmt
.getInitialization().get(0).asVariableDeclarationExpr().getVariables().get(1).getInitializer().isPresent());
240
ForStmt
forStmt = JavaParser.parseStatement("for(int i, j = array2.length - 1;;){}").asForStmt()
[
all
...]
/external/clang/unittests/ASTMatchers/
ASTMatchersTraversalTest.cpp
[
all
...]
ASTMatchersNodeTest.cpp
831
EXPECT_TRUE(matches("void f() { for(;;); }",
forStmt
()));
832
EXPECT_TRUE(matches("void f() { if(true) for(;;); }",
forStmt
()));
835
forStmt
()));
839
EXPECT_TRUE(notMatches("void f() { ; }",
forStmt
()));
840
EXPECT_TRUE(notMatches("void f() { if(true); }",
forStmt
()));
[
all
...]
ASTMatchersNarrowingTest.cpp
277
forEach(fieldDecl(hasAncestor(
forStmt
()))));
[
all
...]
/external/clang/lib/ASTMatchers/Dynamic/
Registry.cpp
189
REGISTER_MATCHER(
forStmt
);
/external/clang/include/clang/ASTMatchers/
ASTMatchers.h
[
all
...]
Completed in 449 milliseconds