• Home
  • Raw
  • Download

Lines Matching full:ir

22 namespace ark::es2panda::ir {
25 } // namespace ark::es2panda::ir
42ir::TypeNode *ParseTypeAnnotationElement(ir::TypeNode *typeAnnotation, TypeAnnotationParsingOption…
45 ir::TypeNode *ParseTypeOperatorOrTypeReference();
46 ir::TypeNode *ParseIdentifierReference();
48 ir::TypeNode *ParseBasicType();
49 ir::TSTypeReference *ParseConstExpression();
50ir::TSIntersectionType *ParseIntersectionType(ir::Expression *type, bool inUnion, bool restrictExt…
51 ir::TSUnionType *ParseUnionType(ir::TypeNode *type, bool restrictExtends);
52 ir::TypeNode *ParseParenthesizedOrFunctionType(ir::TypeNode *typeAnnotation, bool throwError);
53 ir::TSArrayType *ParseArrayType(ir::TypeNode *elementType);
54ir::TypeNode *ParseFunctionType(lexer::SourcePosition startLoc, bool isConstructionType, bool thro…
56 ir::TSTypeParameter *ParseMappedTypeParameter();
57 ir::MappedOption ParseMappedOption(lexer::TokenType tokenType);
58 ir::TSMappedType *ParseMappedType();
59 ir::TSTypePredicate *ParseTypePredicate();
60 ir::TypeNode *ParseConditionalType(ir::Expression *checkType, bool restrictExtends);
61 ir::TypeNode *ParseThisType(bool throwError);
62 ir::TypeNode *ParseIndexAccessType(ir::TypeNode *typeName);
63 ir::TypeNode *ParseTypeReferenceOrQuery(bool parseQuery = false);
64 ir::TypeNode *ParseTupleElement(ir::TSTupleKind *kind, bool *seenOptional);
65 ir::TSTupleType *ParseTupleType();
66 ir::TSImportType *ParseImportType(const lexer::SourcePosition &startLoc, bool isTypeof = false);
67 ir::TypeNode *ParseTypeLiteralOrMappedType(ir::TypeNode *typeAnnotation);
68ir::TypeNode *ParseTypeReferenceOrTypePredicate(ir::TypeNode *typeAnnotation, bool canBeTsTypePred…
69ir::TypeNode *ParseThisTypeOrTypePredicate(ir::TypeNode *typeAnnotation, bool canBeTsTypePredicate,
71 ir::TSSignatureDeclaration *ParseSignatureMember(bool isCallSignature);
73 …void CreateTSVariableForProperty(ir::AstNode *node, const ir::Expression *key, varbinder::Variable…
74 …void ValidateFunctionParam(const ArenaVector<ir::Expression *> &params, const ir::Expression *para…
76ir::TSParameterProperty *CreateParameterProperty(ir::Expression *parameter, ir::ModifierFlags modi…
77 void ValidateFunctionOverloadParams(const ArenaVector<ir::Expression *> &params);
78 ir::Expression *ParseModuleReference();
79ir::TSImportEqualsDeclaration *ParseTsImportEqualsDeclaration(const lexer::SourcePosition &startLo…
81 void ParseOptionalFunctionParameter(ir::AnnotatedExpression *returnNode, bool isRest = false);
84ir::Statement *ParseStatement(StatementParsingFlags flags = StatementParsingFlags::NONE) override;
85ir::AnnotatedExpression *ParsePatternElementGetReturnNode(ExpressionParseFlags &flags, bool &isOpt…
87 ir::Expression *ParsePatternElement(ExpressionParseFlags flags = ExpressionParseFlags::NO_OPTS,
90 ir::TypeNode *ParseTypeAnnotation(TypeAnnotationParsingOptions *options) override;
92ir::ObjectExpression *ParseObjectExpression(ExpressionParseFlags flags = ExpressionParseFlags::NO_…
94ir::ArrayExpression *ParseArrayExpression(ExpressionParseFlags flags = ExpressionParseFlags::NO_OP…
95 ir::ArrowFunctionExpression *ParsePotentialArrowExpression(ir::Expression **returnExpression,
97 …bool ParsePotentialGenericFunctionCall(ir::Expression *primaryExpr, ir::Expression **returnExpress…
99 …bool ParsePotentialNonNullExpression(ir::Expression **returnExpression, lexer::SourcePosition star…
101 ir::Identifier *ParsePrimaryExpressionIdent(ExpressionParseFlags flags) override;
102 bool ValidateArrowFunctionRestParameter(ir::SpreadElement *restElement) override;
103 ir::Decorator *ParseDecorator() override;
104 void AddDecorators(ir::AstNode *node, ArenaVector<ir::Decorator *> &decorators) override;
105 ir::TSTypeAliasDeclaration *ParseTypeAliasDeclaration() override;
106 ir::AstNode *ParseTypeLiteralOrInterfaceMember() override;
108ir::TSIndexSignature *ParseIndexSignature(const lexer::SourcePosition &startLoc, bool isReadonly =…
109ir::AstNode *ParsePropertyOrMethodSignature(const lexer::SourcePosition &startLoc, bool isReadonly…
110 std::tuple<ir::Expression *, bool> ParseInterfacePropertyKey() override;
111 ArenaVector<ir::Expression *> ParseFunctionParams() override;
112 ir::Expression *ParseFunctionParameter() override;
113 ir::TypeNode *ParseClassKeyAnnotation() override;
114 …void ValidateClassMethodStart(ClassElementDescriptor *desc, ir::TypeNode *typeAnnotation) override;
115ir::MethodDefinition *ParseClassMethod(ClassElementDescriptor *desc, const ArenaVector<ir::AstNode…
116ir::Expression *propName, lexer::SourcePosition *propEnd) override;
117 …void ValidateClassSetter(ClassElementDescriptor *desc, const ArenaVector<ir::AstNode *> &propertie…
118 ir::Expression *propName, ir::ScriptFunction *func) override;
119 …void ValidateClassGetter(ClassElementDescriptor *desc, const ArenaVector<ir::AstNode *> &propertie…
120 ir::Expression *propName, ir::ScriptFunction *func) override;
123 void CheckIfStaticConstructor(ir::ModifierFlags flags) override;
124 …std::tuple<bool, bool, bool> ParseComputedClassFieldOrIndexSignature(ir::Expression **propName) ov…
125 ir::TypeNode *ParseFunctionReturnType(ParserStatus status) override;
126 std::tuple<bool, ir::BlockStatement *, lexer::SourcePosition, bool> ParseFunctionBody(
127 …const ArenaVector<ir::Expression *> &params, ParserStatus newStatus, ParserStatus contextStatus) o…
128 ir::AstNode *ParseImportDefaultSpecifier(ArenaVector<ir::AstNode *> *specifiers) override;
129 ir::Statement *ParseExportDeclaration(StatementParsingFlags flags) override;
131 ir::Expression *ParseCoverParenthesizedExpressionAndArrowParameterList(
133 ir::Expression *ParseArrowFunctionRestParameter(lexer::SourcePosition start);
134 ir::Expression *ParseArrowFunctionNoParameter(lexer::SourcePosition start);
135 ir::Statement *ParseConstStatement(StatementParsingFlags flags) override;
136 ir::Statement *ParsePotentialConstEnum(VariableParsingFlags flags) override;
137 void ParseCatchParamTypeAnnotation(ir::AnnotatedExpression *param) override;
138 ir::AnnotatedExpression *ParseVariableDeclaratorKey(VariableParsingFlags flags) override;
142 void ReportIfBodyEmptyError(ir::Statement *consequent) override;
146ir::ExportDefaultDeclaration *ParseExportDefaultDeclaration(const lexer::SourcePosition &startLoc,
148ir::Statement *GetDeclarationForNamedExport(ir::ClassDefinitionModifiers &classModifiers, ir::Modi…
149 ir::Statement *ParseNamedExportDeclaration(const lexer::SourcePosition &startLoc) override;
150 ir::Statement *ParseImportDeclaration(StatementParsingFlags flags) override;
151 void ValidateIndexSignatureTypeAnnotation(ir::TypeNode *typeAnnotation) override;
152 ir::Expression *ParsePotentialAsExpression(ir::Expression *expr) override;