Home
last modified time | relevance | path

Searched refs:expression (Results 1 – 25 of 2340) sorted by relevance

12345678910>>...94

/arkcompiler/ets_frontend/arkguard/src/transformers/layout/
DDisableConsoleTransformer.ts107 return factory.createCaseClause(node.expression, deletedStatements);
131 if (!node.expression || !isCallExpression(node.expression)) {
135 const expressionCalled: LeftHandSideExpression = node.expression.expression;
140 if (isPropertyAccessExpression(expressionCalled) && expressionCalled.expression) {
141 … if (isIdentifier(expressionCalled.expression) && expressionCalled.expression.text === 'console') {
146 if (isElementAccessExpression(expressionCalled) && expressionCalled.expression) {
147 … if (isIdentifier(expressionCalled.expression) && expressionCalled.expression.text === 'console') {
DDisableHilogTransformer.ts125 if (!node.expression || !isCallExpression(node.expression)) {
129 const expressionCalled: LeftHandSideExpression = node.expression.expression;
134 if (isPropertyAccessExpression(expressionCalled) && expressionCalled.expression) {
135 … if (isIdentifier(expressionCalled.expression) && expressionCalled.expression.text === 'hilog') {
140 if (isElementAccessExpression(expressionCalled) && expressionCalled.expression) {
141 … if (isIdentifier(expressionCalled.expression) && expressionCalled.expression.text === 'hilog') {
DSimplifyTransformer.ts172 (isExpressionStatement(child) && isStringLiteral(child.expression)) ||
194 if (isReturnStatement(child) && child.expression !== undefined) {
240 let expression: Expression = expressionStatements[0].expression;
243 expression = factory.createBinaryExpression(
244 expression,
246 expressionStatements[pos].expression
252 return factory.createReturnStatement(expression);
255 return factory.createExpressionStatement(expression);
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D7_expressions.rst28 expression
30 launch expression
31 await expression
35 expression:
71 of expression productions:
75 expression production
80 expression '?'?
95 | expression (',' expression)* (',' restArgument)? ','?
99 '...'? expression
102 The *potentiallyNullishExpression* introduces an expression that can be
[all …]
D8_statements.rst83 Any expression can be used as a statement.
88 expression
91 The execution of a statement leads to the execution of the expression. The
95 expression statement
96 expression
195 'if' '(' expression ')' statement1
199 If an expression, which represents a condition, is successfully evaluated
201 (if provided). A compile-time error occurs if the expression type is not
210 expression
275 A ``while`` statement and a ``do`` statement evaluate an *expression*, and
[all …]
D6_conversions.rst21 Every expression written in the |LANG| programming language has a type that
24 In most contexts, an expression must be *compatible* with a type expected in
27 If no target type is expected in the context, the expression
28 is called a *standalone expression*,
29 otherwise the expression is a *non-standalone expression*.
53 For some expressions its type cannot be inferred from the expression itself,
55 A compile-time error occurs if such expression is used as a *standalone expression*.
58 of the expression with its surrounding context:
61 target type (the expression types can be different in different
64 #. If the inferred expression type is different from the target type, then
[all …]
/arkcompiler/ets_frontend/arkguard/src/utils/
DOhsUtil.ts97 if (!isPropertyAccessExpression(initializer.left.expression)) {
101 if (!isIdentifier(initializer.left.expression.expression) ||
102 initializer.left.expression.expression.text !== 'globalThis') {
106 if (!isIdentifier(initializer.left.expression.name) ||
107 initializer.left.expression.name.text !== 'requireNapi') {
127 if (!isIdentifier(initializer.expression) ||
128 initializer.expression.text !== '_interopRequireDefault') {
137 if (!isIdentifier(arg.expression) || arg.expression.text !== 'requireModule') {
166 if (!typeExpression || !typeExpression.expression) {
170 const expression = typeExpression.expression; constant
[all …]
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/
DetsEnumType.cpp122 …ETSEnumInterface::LookupConstant(ETSChecker *const checker, const ir::Expression *const expression, in LookupConstant() argument
125 if (!IsEnumTypeExpression(expression)) { in LookupConstant()
146 …onType *ETSEnumInterface::LookupMethod(ETSChecker *checker, const ir::Expression *const expression, in LookupMethod() argument
149 if (IsEnumTypeExpression(expression)) { in LookupMethod()
153 ASSERT(IsEnumInstanceExpression(expression)); in LookupMethod()
168 bool ETSEnumInterface::IsEnumInstanceExpression(const ir::Expression *const expression) const noexc… in IsEnumInstanceExpression()
171 [enumType = expression->TsType()]() -> ETSEnumInterface const * { in IsEnumInstanceExpression()
183 return IsEnumLiteralExpression(expression) || !IsEnumTypeExpression(expression); in IsEnumInstanceExpression()
186 bool ETSEnumInterface::IsEnumLiteralExpression(const ir::Expression *const expression) const noexce… in IsEnumLiteralExpression()
189 [enumType = expression->TsType()]() -> ETSEnumInterface const * { in IsEnumLiteralExpression()
[all …]
/arkcompiler/ets_frontend/arkguard/src/common/
DApiExtractor.ts118 if (!mCurrentExportNameSet.has(astNode.expression.getText())) {
119 mCurrentExportNameSet.add(astNode.expression.getText());
120 mCurrentExportedPropertySet.add(astNode.expression.getText());
246 if (!isExpressionStatement(astNode) || !astNode.expression) {
250 const expression = astNode.expression; constant
251 if (!isBinaryExpression(expression)) {
255 const left = expression.left;
260 if ((left.expression.getText() !== 'exports' && !isModuleExports(left)) ||
261 expression.operatorToken.kind !== SyntaxKind.EqualsToken) {
277 if (isIdentifier(expression.right)) {
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dtest-numeric-separator-expected.txt6 "expression": {
33 "expression": {
60 "expression": {
87 "expression": {
114 "expression": {
141 "expression": {
Dtest-string-literal-expected.txt6 "expression": {
33 "expression": {
60 "expression": {
87 "expression": {
114 "expression": {
Dtest-assignment-expression-expected.txt6 "expression": {
89 "expression": {
144 "expression": {
199 "expression": {
254 "expression": {
309 "expression": {
364 "expression": {
419 "expression": {
474 "expression": {
529 "expression": {
[all …]
Dtest-binary-expression-expected.txt6 "expression": {
61 "expression": {
116 "expression": {
171 "expression": {
226 "expression": {
281 "expression": {
336 "expression": {
391 "expression": {
446 "expression": {
501 "expression": {
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/js/
Dtest-numeric-separator-expected.txt6 "expression": {
33 "expression": {
60 "expression": {
87 "expression": {
114 "expression": {
141 "expression": {
Dtest-string-literal-expected.txt6 "expression": {
33 "expression": {
60 "expression": {
87 "expression": {
114 "expression": {
Dtest-assignment-expression-expected.txt6 "expression": {
91 "expression": {
147 "expression": {
203 "expression": {
259 "expression": {
315 "expression": {
371 "expression": {
427 "expression": {
483 "expression": {
539 "expression": {
[all …]
Dtest-binary-expression-expected.txt6 "expression": {
63 "expression": {
120 "expression": {
177 "expression": {
234 "expression": {
291 "expression": {
348 "expression": {
405 "expression": {
462 "expression": {
519 "expression": {
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-ts-non-null-expression-expected.txt76 "expression": {
82 "expression": {
131 "expression": {
137 "expression": {
186 "expression": {
192 "expression": {
241 "expression": {
247 "expression": {
296 "expression": {
318 "expression": {
/arkcompiler/ets_frontend/ets2panda/test/parser/ts/
Dtest-ts-non-null-expression-expected.txt77 "expression": {
83 "expression": {
133 "expression": {
139 "expression": {
189 "expression": {
195 "expression": {
245 "expression": {
251 "expression": {
301 "expression": {
324 "expression": {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/18.null_coalescing_expression/
Dright_hand_side.ets18expression is equal to null and, if it is, the result of null-coalescing expression is the evaluat…
Dleft_hand_side.ets18expression is equal to null and, if it is, the result of null-coalescing expression is the evaluat…
/arkcompiler/ets_frontend/test262/
DdynamicImport_tests.txt3 nested-arrow-assignment-expression-not-extensible-args.js
4 nested-block-no-new-call-expression.js
5 invalid-assignmenttargettype-syntax-error-12-lhs-assignment-operator-assignment-expression.js
6 nested-async-gen-await-no-new-call-expression.js
12 nested-with-expression-no-new-call-expression.js
14 nested-async-arrow-function-await-no-new-call-expression.js
15 nested-else-braceless-no-new-call-expression.js
18 nested-async-function-return-await-no-new-call-expression.js
25 nested-else-no-new-call-expression.js
26 invalid-assignmenttargettype-syntax-error-10-lhs-assignment-operator-assignment-expression.js
[all …]
/arkcompiler/ets_frontend/ts2panda/src/expression/
DyieldExpression.ts34 if (expr.expression) {
35 compiler.compileExpression(expr.expression);
45 if (!expr.expression) {
48 compiler.compileExpression(expr.expression!);
DparenthesizedExpression.ts19 while (expr.expression.kind === ts.SyntaxKind.ParenthesizedExpression) {
20 expr = <ts.ParenthesizedExpression>expr.expression;
22 return expr.expression;
/arkcompiler/ets_frontend/ets2panda/ir/ts/
DtsClassImplements.h26 explicit TSClassImplements(Expression *expression, TSTypeParameterInstantiation *typeParameters) in TSClassImplements() argument
27 …: Expression(AstNodeType::TS_CLASS_IMPLEMENTS), expression_(expression), typeParameters_(typeParam… in TSClassImplements()
31 explicit TSClassImplements(Expression *expression) in TSClassImplements() argument
32 : Expression(AstNodeType::TS_CLASS_IMPLEMENTS), expression_(expression) in TSClassImplements()

12345678910>>...94