Lines Matching full:expression
60 class Expression; variable
147 …explicit ArrowFunctionDescriptor(ArenaVector<ir::Expression *> &&p, binder::FunctionParamScope *ps, in ArrowFunctionDescriptor()
153 ArenaVector<ir::Expression *> params;
207 ir::Expression* SetupChainExpr(ir::Expression *const top, lexer::SourcePosition startLoc); in DEFINE_BITOPS()
241 void AddCommonjsParams(ArenaVector<ir::Expression *> ¶ms); in DEFINE_BITOPS()
242 void AddReflectApplyArgs(ArenaVector<ir::Expression *> &args, ir::FunctionExpression *wrapper); in DEFINE_BITOPS()
251 static bool IsPropertyKeysAreSame(const ir::Expression *exp1, const ir::Expression *exp2); in DEFINE_BITOPS()
255 ir::Expression *ParseTsTypeOperatorOrTypeReference(bool throwError); in DEFINE_BITOPS()
256 ir::Expression *ParseTsTypeOperator(); in DEFINE_BITOPS()
257 ir::Expression *ParseTsInferType(); in DEFINE_BITOPS()
258 ir::Expression *ParseTsIdentifierReference(TypeAnnotationParsingOptions options); in DEFINE_BITOPS()
259 ir::Expression *ParseTsBasicType(TypeAnnotationParsingOptions options); in DEFINE_BITOPS()
260 …ir::TSIntersectionType *ParseTsIntersectionType(ir::Expression *type, bool inUnion, bool restrictE… in DEFINE_BITOPS()
262 ir::TSUnionType *ParseTsUnionType(ir::Expression *type, bool restrictExtends, bool throwError); in DEFINE_BITOPS()
263 …ir::Expression *ParseTsParenthesizedOrFunctionType(ir::Expression *typeAnnotation, bool throwError… in DEFINE_BITOPS()
264 ir::TSArrayType *ParseTsArrayType(ir::Expression *elementType); in DEFINE_BITOPS()
266 …ir::Expression *ParseTsFunctionType(lexer::SourcePosition startLoc, bool isConstructionType, bool … in DEFINE_BITOPS()
273 …ir::Expression *ParseTsTypeLiteralOrInterfaceKey(bool *computed, bool *signature, bool *isIndexSig… in DEFINE_BITOPS()
274 void ValidateIndexSignatureParameterType(ir::Expression *typeAnnotation); in DEFINE_BITOPS()
275 ir::Expression *ParseTsConditionalType(ir::Expression *checkType, bool restrictExtends); in DEFINE_BITOPS()
276 ir::Expression *ParseTsTypeLiteralOrInterfaceMember(); in DEFINE_BITOPS()
277 ArenaVector<ir::Expression *> ParseTsTypeLiteralOrInterface(); in DEFINE_BITOPS()
278 ir::Expression *ParseTsThisType(bool throwError); in DEFINE_BITOPS()
279 ir::Expression *ParseTsIndexAccessType(ir::Expression *typeName, bool throwError); in DEFINE_BITOPS()
280 ir::Expression *ParseTsQualifiedReference(ir::Expression *typeName); in DEFINE_BITOPS()
281 …ir::Expression *ParseTsTypeReferenceOrQuery(TypeAnnotationParsingOptions options, bool parseQuery … in DEFINE_BITOPS()
284 … ir::Expression *ParseTsTupleElement(ir::TSTupleKind *kind, bool *seenOptional, bool *hasRestType); in DEFINE_BITOPS()
287 ir::Expression *ParseTsTypeAnnotation(TypeAnnotationParsingOptions *options); in DEFINE_BITOPS()
288 ir::Expression *ParseTsTypeLiteralOrTsMappedType(ir::Expression *typeAnnotation); in DEFINE_BITOPS()
289 …ir::Expression *ParseTsTypeReferenceOrTsTypePredicate(ir::Expression *typeAnnotation, bool canBeTs… in DEFINE_BITOPS()
291 …ir::Expression *ParseTsThisTypeOrTsTypePredicate(ir::Expression *typeAnnotation, bool canBeTsTypeP… in DEFINE_BITOPS()
293 ir::Expression *ParseTsTemplateLiteralType(bool throwError); in DEFINE_BITOPS()
294 …ir::Expression *ParseTsTypeAnnotationElement(ir::Expression *typeAnnotation, TypeAnnotationParsing… in DEFINE_BITOPS()
300 void ValidateClassMethodStart(ClassElmentDescriptor *desc, ir::Expression *typeAnnotation); in DEFINE_BITOPS()
301 ir::Expression *ParseClassKey(ClassElmentDescriptor *desc, bool isDeclare); in DEFINE_BITOPS()
304 ir::Expression *propName, ir::ScriptFunction *func, bool hasDecorator, in DEFINE_BITOPS()
307 ir::Expression *propName, ir::ScriptFunction *func, bool hasDecorator, in DEFINE_BITOPS()
312 ir::Expression *propName, lexer::SourcePosition *propEnd, in DEFINE_BITOPS()
317 ir::Expression *propName, ir::Expression *typeAnnotation, in DEFINE_BITOPS()
324 void CheckFieldKey(ir::Expression *propName); in DEFINE_BITOPS()
325 ir::Expression *ParseClassKeyAnnotation(); in DEFINE_BITOPS()
333 ir::MethodDefinition *CreateImplicitMethod(ir::Expression *superClass, bool hasSuperClass, in DEFINE_BITOPS()
341 ir::Expression *ParseSuperClass(bool isDeclare, bool *hasSuperClass, bool *isExtendsFromNull); in DEFINE_BITOPS()
358 ir::Expression *ParsePropertyKey(ExpressionParseFlags flags); in DEFINE_BITOPS()
359 …ir::Expression *ParsePropertyValue(const ir::PropertyKind *propertyKind, const ParserStatus *metho… in DEFINE_BITOPS()
363 …ir::Expression *ParsePostfixTypeOrHigher(ir::Expression *typeAnnotation, TypeAnnotationParsingOpti… in DEFINE_BITOPS()
364 ir::Expression *TryParseConstraintOfInferType(TypeAnnotationParsingOptions *options); in DEFINE_BITOPS()
365 …ir::Expression *ParsePropertyDefinition(ExpressionParseFlags flags = ExpressionParseFlags::NO_OPTS… in DEFINE_BITOPS()
374 …void ValidateFunctionParam(const ArenaVector<ir::Expression *> ¶ms, const ir::Expression *para… in DEFINE_BITOPS()
376 void ValidateTsFunctionOverloadParams(const ArenaVector<ir::Expression *> ¶ms); in DEFINE_BITOPS()
377 …void CheckAccessorPair(const ArenaVector<ir::Statement *> &properties, const ir::Expression *propN… in DEFINE_BITOPS()
380 ArenaVector<ir::Expression *> ParseFunctionParams(bool isDeclare = false, in DEFINE_BITOPS()
383 …ir::TSParameterProperty *CreateTsParameterProperty(ir::Expression *parameter, ir::ModifierFlags mo… in DEFINE_BITOPS()
384 ir::Expression *ParseFunctionParameter(bool isDeclare); in DEFINE_BITOPS()
385 …void CreateTSVariableForProperty(ir::AstNode *node, const ir::Expression *key, binder::VariableFla… in DEFINE_BITOPS()
386 …void CheckObjectTypeForDuplicatedProperties(ir::Expression *member, ArenaVector<ir::Expression *> … in DEFINE_BITOPS()
390 ir::Expression *ParseExpression(ExpressionParseFlags flags = ExpressionParseFlags::NO_OPTS); in DEFINE_BITOPS()
393 ir::TSAsExpression *ParseTsAsExpression(ir::Expression *expr, ExpressionParseFlags flags); in DEFINE_BITOPS()
394 ir::TSSatisfiesExpression *ParseTsSatisfiesExpression(ir::Expression *expr); in DEFINE_BITOPS()
395 … ir::Expression *ParseArrayExpression(ExpressionParseFlags flags = ExpressionParseFlags::NO_OPTS); in DEFINE_BITOPS()
397 …ir::Expression *ParsePotentialExpressionSequence(ir::Expression *expr, ExpressionParseFlags flags); in DEFINE_BITOPS()
398 ParserStatus ValidateArrowParameter(ir::Expression *expr); in DEFINE_BITOPS()
400 ArrowFunctionDescriptor ConvertToArrowParameter(ir::Expression *expr, bool isAsync, in DEFINE_BITOPS()
406 … ir::Expression *returnTypeAnnotation); in DEFINE_BITOPS()
407 ir::ArrowFunctionExpression *ParseArrowFunctionExpression(ir::Expression *expr, in DEFINE_BITOPS()
409 … ir::Expression *returnTypeAnnotation, bool isAsync); in DEFINE_BITOPS()
410 ir::Expression *ParseCoverParenthesizedExpressionAndArrowParameterList(); in DEFINE_BITOPS()
411 ir::Expression *ParseKeywordExpression(); in DEFINE_BITOPS()
412 ir::Expression *ParseBinaryExpression(ir::Expression *left); in DEFINE_BITOPS()
413 …ir::CallExpression *ParseCallExpression(ir::Expression *callee, bool isOptionalChain = false, bool… in DEFINE_BITOPS()
414 ir::ArrowFunctionExpression *ParsePotentialArrowExpression(ir::Expression **returnExpression, in DEFINE_BITOPS()
418 void ValidateUpdateExpression(ir::Expression *returnExpression, bool isChainExpression); in DEFINE_BITOPS()
420 …bool ParsePotentialTsGenericFunctionCall(ir::Expression **returnExpression, const lexer::SourcePos… in DEFINE_BITOPS()
422 …ir::Expression *ParsePostPrimaryExpression(ir::Expression *primaryExpr, lexer::SourcePosition star… in DEFINE_BITOPS()
424 ir::Expression *ParseMemberExpression(bool ignoreCallExpression = false, in DEFINE_BITOPS()
427 …ir::SequenceExpression *ParseSequenceExpression(ir::Expression *startExpr, bool acceptRest = false, in DEFINE_BITOPS()
429 …ir::Expression *ParseUnaryOrPrefixUpdateExpression(ExpressionParseFlags flags = ExpressionParseFla… in DEFINE_BITOPS()
430 …ir::Expression *ParseLeftHandSideExpression(ExpressionParseFlags flags = ExpressionParseFlags::NO_… in DEFINE_BITOPS()
433 void ValidateParenthesizedExpression(ir::Expression *lhsExpression); in DEFINE_BITOPS()
434 ir::Expression *ParseAssignmentExpression(ir::Expression *lhsExpression, in DEFINE_BITOPS()
436 …ir::Expression *ParsePrimaryExpression(ExpressionParseFlags flags = ExpressionParseFlags::NO_OPTS); in DEFINE_BITOPS()
438 void ParsePotentialTsFunctionParameter(ExpressionParseFlags flags, ir::Expression *returnNode, in DEFINE_BITOPS()
440 ir::Expression *ParsePatternElement(ExpressionParseFlags flags = ExpressionParseFlags::NO_OPTS, in DEFINE_BITOPS()
443 ir::Expression *ParseImportExpression(); in DEFINE_BITOPS()
449 ir::Expression *ParseOptionalChain(ir::Expression *leftSideExpr); in DEFINE_BITOPS()
450 ir::Expression *ParseOptionalMemberExpression(ir::Expression *object); in DEFINE_BITOPS()
461 ir::Expression *ParseModuleReference(); in DEFINE_BITOPS()
464 void ValidateAssignmentTarget(ExpressionParseFlags flags, ir::Expression *node); in DEFINE_BITOPS()
465 void ValidateLvalueAssignmentTarget(ir::Expression *node) const; in DEFINE_BITOPS()
466 void ValidateArrowParameterBindings(const ir::Expression *node); in DEFINE_BITOPS()
483 ir::Expression *DoOutsideOfDisallowConditinalTypesContext(Function func, Args &&... args); in DEFINE_BITOPS()
487 ir::Expression *DoInsideOfDisallowConditinalTypesContext(Function func, Args &&... args); in DEFINE_BITOPS()
560 std::tuple<ForStatementKind, ir::AstNode *, ir::Expression *, ir::Expression *> ParseForInOf( in DEFINE_BITOPS()
561 ir::Expression *leftNode, ExpressionParseFlags exprFlags, bool isAwait); in DEFINE_BITOPS()
562 …std::tuple<ForStatementKind, ir::Expression *, ir::Expression *> ParseForInOf(ir::AstNode *initNod… in DEFINE_BITOPS()
565 std::tuple<ir::Expression *, ir::Expression *> ParseForUpdate(bool isAwait); in DEFINE_BITOPS()
580 …ir::Expression *ParseEnumComputedPropertyKey(binder::EnumDecl *&decl, const lexer::SourcePosition … in DEFINE_BITOPS()
591 ir::Expression *ParseCatchParam(); in DEFINE_BITOPS()
595 …ir::VariableDeclarator *ParseVariableDeclaratorInitializer(ir::Expression *init, VariableParsingFl… in DEFINE_BITOPS()
598 …ir::Expression *ParseVariableDeclaratorKey(VariableParsingFlags flags, bool isDeclare, bool *isDef… in DEFINE_BITOPS()