Home
last modified time | relevance | path

Searched full:statement (Results 1 – 25 of 5724) sorted by relevance

12345678910>>...229

/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DControlFlowLogic.java37 …* A break statement with no label attempts to transfer control to the innermost enclosing switch, …
38 …* for statement of the immediately enclosing method or initializer; this statement, which is calle…
42 …* A break statement with label Identifier attempts to transfer control to the enclosing labeled st…
43 …* that has the same Identifier as its label; this statement, which is called the break target, the…
44 …mpletes normally. In this case, the break target need not be a switch, while, do, or for statement.
46 public Statement breakTarget(BreakStmt breakStmt) { in breakTarget()
51 …* A reachable break statement exits a statement if, within the break target, either there are no t…
52 …* whose try blocks contain the break statement, or there are try statements whose try blocks conta…
53 * statement and all finally clauses of those try statements can complete normally.
59 Statement breakTarget = breakTarget(breakStmt); in exitTheStatement()
[all …]
/external/aws-sdk-java-v2/test/test-utils/src/main/java/software/amazon/awssdk/core/auth/policy/
DStatement.java24 * A statement is the formal description of a single permission, and is always
27 * A statement describes a rule for allowing or denying access to a specific AWS
30 * conditions that specify when a statement is to be honored.
32 * For example, consider a statement that:
60 public class Statement { class
70 * Constructs a new access control policy statement with the specified
73 * Before a statement is valid and can be sent to AWS, callers must set the
75 * involved in the statement.
78 * The effect this statement has (allowing access or denying
82 public Statement(Effect effect) { in Statement() method in Statement
[all …]
/external/aws-sdk-java-v2/test/test-utils/src/test/java/software/amazon/awssdk/core/auth/policy/
DPolicyTest.java29 import software.amazon.awssdk.core.auth.policy.Statement.Effect;
44 policy.withStatements(new Statement(Effect.Allow) in testPrincipals()
51 JsonNode statementArray = jsonPolicyNode.get("Statement"); in testPrincipals()
56 JsonNode statement = statementArray.get(0); in testPrincipals() local
57 assertTrue(statement.has("Resource")); in testPrincipals()
58 assertTrue(statement.has("Principal")); in testPrincipals()
59 assertTrue(statement.has("Action")); in testPrincipals()
60 assertTrue(statement.has("Effect")); in testPrincipals()
62 JsonNode users = statement.get("Principal").get("AWS"); in testPrincipals()
68 policy.withStatements(new Statement(Effect.Allow) in testPrincipals()
[all …]
/external/cronet/base/test/
Dgtest_util.h19 // EXPECT/ASSERT_DEBUG_DEATH however, it doesn't execute the statement in non-
21 // happen and as such executing the statement results in undefined behavior
22 // (|statement| is compiled in unsupported configurations nonetheless).
34 #define EXPECT_DCHECK_DEATH(statement) EXPECT_DEATH(statement, "Check failed") argument
35 #define EXPECT_DCHECK_DEATH_WITH(statement, msg) EXPECT_DEATH(statement, msg) argument
36 #define ASSERT_DCHECK_DEATH(statement) ASSERT_DEATH(statement, "Check failed") argument
37 #define ASSERT_DCHECK_DEATH_WITH(statement, msg) ASSERT_DEATH(statement, msg) argument
41 #define EXPECT_DCHECK_DEATH(statement) \ argument
42 GTEST_UNSUPPORTED_DEATH_TEST(statement, "Check failed", )
43 #define EXPECT_DCHECK_DEATH_WITH(statement, msg) \ argument
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithStatements.java30 import com.github.javaparser.ast.stmt.Statement;
38 NodeList<Statement> getStatements(); in getStatements()
40 default Statement getStatement(int i) { in getStatement()
45 default N setStatement(int i, Statement statement) { in setStatement() argument
46 getStatements().set(i, statement); in setStatement()
50 N setStatements(final NodeList<Statement> statements); in setStatements()
53 default N addStatement(Statement statement) { in addStatement() argument
54 getStatements().add(statement); in addStatement()
59 default N addStatement(int index, final Statement statement) { in addStatement() argument
60 getStatements().add(index, statement); in addStatement()
[all …]
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/validator/
DJava10ValidatorTest.java7 import com.github.javaparser.ast.stmt.Statement;
12 import static com.github.javaparser.ParseStart.STATEMENT;
23 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("var a = 5;")); in varAllowedInLocalVariableDeclaration()
29 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("for(var a : as){}")); in varAllowedInForEach()
35 … ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("for(var a = 5;a<9;a++){}")); in varAllowedInOldFor()
41 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("int a = (var)20;")); in varNotAllowedInCast()
47 …ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("try(var f = new FileReader(\… in varNotAllowedInTryWithResources()
59 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("new X<var>();")); in varNotAllowedInTypeArguments()
65 … ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("x((var x) -> null);")); in varNotAllowedInLambdaParameters()
71 ParseResult<Statement> result = javaParser.parse(STATEMENT, provider("var a;")); in emptyInitializerNotAllowed()
[all …]
/external/aws-sdk-java-v2/services-custom/iam-policy-builder/src/test/java/software/amazon/awssdk/policybuilder/iam/
DIamStatementTest.java91 assertThat(statement(s -> s.effect(ALLOW)).effect()).isEqualTo(ALLOW); in effectGettersSettersWork()
92 assertThat(statement(s -> s.effect("Allow")).effect()).isEqualTo(ALLOW); in effectGettersSettersWork()
97 assertThat(statement(s -> s.principals(asList(PRINCIPAL_1, PRINCIPAL_2))).principals()) in principalGettersSettersWork()
99 assertThat(statement(s -> s.addPrincipal(PRINCIPAL_1) in principalGettersSettersWork()
102 assertThat(statement(s -> s.addPrincipal(p -> p.type("1").id("*")) in principalGettersSettersWork()
105 assertThat(statement(s -> s.addPrincipal("1", "*") in principalGettersSettersWork()
108 assertThat(statement(s -> s.addPrincipal(IamPrincipalType.create("1"), "*") in principalGettersSettersWork()
111 …assertThat(statement(s -> s.addPrincipals(IamPrincipalType.create("1"), asList("x", "y"))).princip… in principalGettersSettersWork()
114 assertThat(statement(s -> s.addPrincipals("1", asList("x", "y"))).principals()) in principalGettersSettersWork()
121 assertThat(statement(s -> s.principals(asList(PRINCIPAL_1, PRINCIPAL_2)) in principalsCollectionSettersResetsList()
[all …]
/external/skia/src/sksl/ir/
DSkSLForStatement.h37 * A 'for' statement.
39 class ForStatement final : public Statement {
45 std::unique_ptr<Statement> initializer, in ForStatement()
48 std::unique_ptr<Statement> statement, in ForStatement() argument
57 , fStatement(std::move(statement)) in ForStatement()
61 static std::unique_ptr<Statement> Convert(const Context& context,
64 std::unique_ptr<Statement> initializer,
67 std::unique_ptr<Statement> statement,
71 static std::unique_ptr<Statement> ConvertWhile(const Context& context,
74 std::unique_ptr<Statement> statement);
[all …]
DSkSLIfStatement.h25 * An 'if' statement.
27 class IfStatement final : public Statement {
32 std::unique_ptr<Statement> ifTrue, std::unique_ptr<Statement> ifFalse) in IfStatement()
38 // Creates a potentially-simplified form of the if-statement. Typechecks and coerces the test
40 static std::unique_ptr<Statement> Convert(const Context& context,
43 std::unique_ptr<Statement> ifTrue,
44 std::unique_ptr<Statement> ifFalse);
46 // Creates a potentially-simplified form of the if-statement; reports errors via ASSERT.
47 static std::unique_ptr<Statement> Make(const Context& context,
50 std::unique_ptr<Statement> ifTrue,
[all …]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/
DLabeledStmt.java39 * A statement that is labeled, like <code>label123: println("continuing");</code>
43 public class LabeledStmt extends Statement {
47 private Statement statement; field in LabeledStmt
53 public LabeledStmt(final String label, final Statement statement) { in LabeledStmt() argument
54 this(null, new SimpleName(label), statement); in LabeledStmt()
58 public LabeledStmt(final SimpleName label, final Statement statement) { in LabeledStmt() argument
59 this(null, label, statement); in LabeledStmt()
66 public LabeledStmt(TokenRange tokenRange, SimpleName label, Statement statement) { in LabeledStmt() argument
69 setStatement(statement); in LabeledStmt()
86 public Statement getStatement() { in getStatement()
[all …]
/external/aws-sdk-java-v2/services-custom/iam-policy-builder/src/main/java/software/amazon/awssdk/policybuilder/iam/
DIamStatement.java28 * A statement is the formal description of a single permission, and is always
31 * A statement describes a rule for allowing or denying access to a specific AWS
34 * conditions that specify when a statement is to be honored.
36 * For example, consider a statement that:
73 * statement</a> that allows a role to write items to an Amazon DynamoDB table.</b>
75 * IamStatement statement =
87 * </a> statement that denies access to all users.</b>
89 * IamStatement statement =
97 …docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_statement.html">Statement user
161 * Sid}</a> element of the policy, specifying an identifier for the statement.
[all …]
/external/grpc-grpc-java/testing/src/test/java/io/grpc/testing/
DGrpcCleanupRuleTest.java44 import org.junit.runners.model.Statement;
96 Statement statement = mock(Statement.class); in singleChannelCleanup() local
97 InOrder inOrder = inOrder(statement, channel); in singleChannelCleanup()
106 grpcCleanup.apply(statement, null /* description*/).evaluate(); in singleChannelCleanup()
113 inOrder.verify(statement).evaluate(); in singleChannelCleanup()
123 Statement statement = mock(Statement.class); in singleServerCleanup() local
124 InOrder inOrder = inOrder(statement, server); in singleServerCleanup()
133 grpcCleanup.apply(statement, null /* description*/).evaluate(); in singleServerCleanup()
140 inOrder.verify(statement).evaluate(); in singleServerCleanup()
156 Statement statement = mock(Statement.class); in multiResource_cleanupGracefully() local
[all …]
/external/cronet/net/extras/sqlite/
Dsqlite_persistent_shared_dictionary_store.cc19 #include "sql/statement.h"
134 // There is no `sql::Statement::ColumnUint64()` method. So we cast to in ToUnguessableToken()
444 sql::Statement statement(db()->GetCachedStatement(SQL_FROM_HERE, kQuery)); in CommitDictionaryLastUsedTimeUpdate() local
445 statement.BindTime(0, last_used_time); in CommitDictionaryLastUsedTimeUpdate()
446 statement.BindInt64(1, primary_key_in_database); in CommitDictionaryLastUsedTimeUpdate()
447 if (!statement.Run()) { in CommitDictionaryLastUsedTimeUpdate()
466 // There is no `sql::Statement::ColumnUint64()` method. So we cast to in GetTotalDictionarySizeImpl()
527 sql::Statement statement(db()->GetCachedStatement(SQL_FROM_HERE, kQuery)); in RegisterDictionaryImpl() local
528 statement.BindString(0, isolation_key.frame_origin().Serialize()); in RegisterDictionaryImpl()
529 statement.BindString(1, isolation_key.top_frame_site().Serialize()); in RegisterDictionaryImpl()
[all …]
/external/perfetto/src/trace_processor/perfetto_sql/engine/
Dperfetto_sql_parser_unittest.cc32 using Result = PerfettoSqlParser::Statement;
33 using Statement = PerfettoSqlParser::Statement; typedef
45 base::StatusOr<std::vector<PerfettoSqlParser::Statement>> Parse( in Parse()
48 std::vector<PerfettoSqlParser::Statement> results; in Parse()
50 results.push_back(std::move(parser.statement())); in Parse()
69 ASSERT_EQ(parser.statement(), Statement{SqliteSql{}}); in TEST_F()
78 ASSERT_EQ(parser.statement(), Statement{SqliteSql{}}); in TEST_F()
82 ASSERT_EQ(parser.statement(), Statement{SqliteSql{}}); in TEST_F()
91 ASSERT_EQ(parser.statement(), Statement{SqliteSql{}}); in TEST_F()
163 ASSERT_EQ(parser.statement(), Statement{fn}); in TEST_F()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/nodeTypes/
DNodeWithStatements.java9 import com.github.javaparser.ast.stmt.Statement;
12 public List<Statement> getStmts(); in getStmts()
14 public T setStmts(final List<Statement> stmts); in setStmts()
17 public default T addStatement(Statement statement) { in addStatement() argument
18 getStmts().add(statement); in addStatement()
19 statement.setParentNode((Node) this); in addStatement()
24 public default T addStatement(int index, final Statement statement) { in addStatement() argument
25 getStmts().add(index, statement); in addStatement()
26 statement.setParentNode((Node) this); in addStatement()
31 ExpressionStmt statement = new ExpressionStmt(expr); in addStatement() local
[all …]
/external/clang/test/OpenMP/
Datomic_messages.cpp7 …// expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', … in foo()
8 // expected-note@+1 {{expected an expression statement}} in foo()
15 …// expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', … in foo()
16 // expected-note@+1 {{expected an expression statement}} in foo()
43 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
44 // expected-note@+1 {{expected an expression statement}} in read()
47 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
51 …// expected-error@+2 2 {{the statement for 'atomic read' must be an expression statement of form '… in read()
55 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
59 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in read()
[all …]
Datomic_messages.c7 …// expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', … in foo()
8 // expected-note@+1 {{expected an expression statement}} in foo()
15 …// expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', … in foo()
16 // expected-note@+1 {{expected an expression statement}} in foo()
34 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in readint()
35 // expected-note@+1 {{expected an expression statement}} in readint()
38 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in readint()
42 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in readint()
46 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in readint()
62 …// expected-error@+2 {{the statement for 'atomic read' must be an expression statement of form 'v … in readS()
[all …]
/external/javasqlite/src/main/java/SQLite/
DStmt.java4 * Class to represent compiled SQLite3 statement.
15 * Internal handle for the SQLite3 statement.
27 * Prepare the next SQL statement for the Stmt instance.
28 * @return true when the next piece of the SQL statement sequence
29 * has been prepared, false on end of statement sequence.
35 * Perform one step of compiled SQLite3 statement.
72 * Close the compiled SQLite3 statement.
78 * Reset the compiled SQLite3 statement without
85 * Clear all bound parameters of the compiled SQLite3 statement.
91 * Bind positional integer value to compiled SQLite3 statement.
[all …]
/external/cronet/net/test/
Dgtest_util.h73 #define GTEST_DFATAL_(statement, severity, matcher, fail) \ argument
84 { statement; } \
96 // execute the given statement in the current process, not a forked
103 #define EXPECT_DFATAL_WITH(statement, matcher) \ argument
104 GTEST_DFATAL_(statement, DFATAL, matcher, GTEST_NONFATAL_FAILURE_)
106 #define ASSERT_DFATAL_WITH(statement, matcher) \ argument
107 GTEST_DFATAL_(statement, DFATAL, matcher, GTEST_FATAL_FAILURE_)
109 #define EXPECT_DFATAL(statement, regex) \ argument
110 EXPECT_DFATAL_WITH(statement, ::testing::ContainsRegex(regex))
112 #define ASSERT_DFATAL(statement, regex) \ argument
[all …]
/external/python/cpython2/Doc/reference/
Dcompound_stmts.rst7 .. index:: pair: compound; statement
12 statement may be contained in one line.
24 header and a 'suite.' The clause headers of a particular compound statement are
53 suite: `stmt_list` NEWLINE | NEWLINE INDENT `statement`+ DEDENT
54 statement: `stmt_list` NEWLINE | `compound_stmt`
64 keyword that cannot start a statement, thus there are no ambiguities (the
76 The :keyword:`if` statement
80 statement: if
84 The :keyword:`if` statement is used for conditional execution:
94 :keyword:`if` statement is executed or evaluated). If all expressions are
[all …]
/external/sdv/vsomeip/third_party/boost/phoenix/doc/modules/
Dstatement.qbk10 [section Statement]
46 [section Block Statement]
48 [/ #include <boost/phoenix/statement/sequence.hpp>]
52 statement,
53 statement,
55 statement
62 statement,
63 statement,
64 statement, // ERROR!
66 Is an error. The last statement should not have a comma. Block statements can be
[all …]
/external/fmtlib/test/
Dgtest-extra.h18 #define FMT_TEST_THROW_(statement, expected_exception, expected_message, fail) \ argument
24 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
27 gtest_ar << #statement \
35 gtest_ar << "Expected: " #statement \
41 gtest_ar << "Expected: " #statement \
50 // Tests that the statement throws the expected exception and the exception's
52 #define EXPECT_THROW_MSG(statement, expected_exception, expected_message) \ argument
53 FMT_TEST_THROW_(statement, expected_exception, expected_message, \
62 #define EXPECT_SYSTEM_ERROR(statement, error_code, message) \ argument
63 EXPECT_THROW_MSG(statement, std::system_error, \
[all …]
/external/junit/src/main/java/org/junit/runners/
DParentRunner.java48 import org.junit.runners.model.Statement;
188 * Constructs a {@code Statement} to run all of the tests in the test class.
195 * construct a statement that will:
210 * @return {@code Statement}
212 protected Statement classBlock(final RunNotifier notifier) { in classBlock()
213 Statement statement = childrenInvoker(notifier); in classBlock() local
215 statement = withBeforeClasses(statement); in classBlock()
216 statement = withAfterClasses(statement); in classBlock()
217 statement = withClassRules(statement); in classBlock()
218 statement = withInterruptIsolation(statement); in classBlock()
[all …]
DBlockJUnit4ClassRunner.java34 import org.junit.runners.model.Statement;
49 * <li>It has a much simpler implementation based on {@link Statement}s,
97 Statement statement = new Statement() { in runChild() local
103 runLeaf(statement, description, notifier); in runChild()
272 * Returns a Statement that, when executed, either returns normally if
301 * or the implementations creating each sub-statement.
303 protected Statement methodBlock(final FrameworkMethod method) { in methodBlock()
316 Statement statement = methodInvoker(method, test); in methodBlock() local
317 statement = possiblyExpectingExceptions(method, test, statement); in methodBlock()
318 statement = withPotentialTimeout(method, test, statement); in methodBlock()
[all …]
/external/python/cpython3/Doc/reference/
Dsimple_stmts.rst8 .. index:: pair: simple; statement
10 A simple statement is comprised within a single logical line. Several simple
39 pair: expression; statement
47 expression statement is:
52 An expression statement evaluates the expression list (which may be a single
75 single: = (equals); assignment statement
76 pair: assignment; statement
99 An assignment statement evaluates the expression list (remember that this can be
146 statement in the current code block: the name is bound to the object in the
264 single: statement; assignment, augmented
[all …]

12345678910>>...229