Lines Matching full:bool
134 bool isPrivateIdent {};
135 bool hasSuperClass {};
136 bool isGenerator {};
137 bool invalidComputedProperty {};
138 bool isComputed {};
139 bool isIndexSignature {};
140 bool classMethod {};
141 bool classField {};
192 bool IsDtsFile() const;
193 void SetDebug(bool isDebug)
199 bool IsStartOfMappedType() const;
200 bool IsStartOfTsTypePredicate() const;
201 bool IsStartOfAbstractConstructorType() const;
203 bool CurrentTokenIsModifier(char32_t nextCp) const;
238 bool CheckTopStatementsForRequiredDeclare(const ArenaVector<ir::Statement *> &statements);
242 bool CurrentIsBasicType();
243 bool CurrentLiteralIsBasicType();
244 static bool CheckTypeNameIsReserved(const util::StringView ¶mName);
245 static bool IsPropertyKeysAreSame(const ir::Expression *exp1, const ir::Expression *exp2);
246 …static bool IsMemberExpressionsAreSame(const ir::MemberExpression *mExp1, const ir::MemberExpressi…
247 …static bool IsMethodDefinitionsAreSame(const ir::MethodDefinition *property, ir::MethodDefinition …
249 ir::Expression *ParseTsTypeOperatorOrTypeReference(bool throwError);
252 …ir::TSIntersectionType *ParseTsIntersectionType(ir::Expression *type, bool inUnion, bool restrictE…
253 ir::TSUnionType *ParseTsUnionType(ir::Expression *type, bool restrictExtends);
254 …ir::Expression *ParseTsParenthesizedOrFunctionType(ir::Expression *typeAnnotation, bool throwError…
256 bool IsTsFunctionType();
257 …pression *ParseTsFunctionType(lexer::SourcePosition startLoc, bool isConstructionType, bool throwE…
258 bool abstractConstructor = false);
263 …ir::Expression *ParseTsTypeLiteralOrInterfaceKey(bool *computed, bool *signature, bool *isIndexSig…
264 ir::Expression *ParseTsConditionalType(ir::Expression *checkType, bool restrictExtends);
267 ir::Expression *ParseTsThisType(bool throwError);
268 ir::Expression *ParseTsIndexAccessType(ir::Expression *typeName, bool throwError);
270 …ir::Expression *ParseTsTypeReferenceOrQuery(TypeAnnotationParsingOptions options, bool parseQuery …
271 bool IsTSNamedTupleMember();
272 void HandleRestType(ir::AstNodeType elementType, bool *hasRestType) const;
273 … ir::Expression *ParseTsTupleElement(ir::TSTupleKind *kind, bool *seenOptional, bool *hasRestType);
275 … ir::TSImportType *ParseTsImportType(const lexer::SourcePosition &startLoc, bool isTypeof = false);
278 …ir::Expression *ParseTsTypeReferenceOrTsTypePredicate(ir::Expression *typeAnnotation, bool canBeTs…
279 bool throwError);
280 …ir::Expression *ParseTsThisTypeOrTsTypePredicate(ir::Expression *typeAnnotation, bool canBeTsTypeP…
281 bool throwError);
282 ir::Expression *ParseTsTemplateLiteralType(bool throwError);
287 void ValidateClassKey(ClassElmentDescriptor *desc, bool isDeclare);
290 ir::Expression *ParseClassKey(ClassElmentDescriptor *desc, bool isDeclare);
293 ir::Expression *propName, ir::ScriptFunction *func, bool hasDecorator,
296 ir::Expression *propName, ir::ScriptFunction *func, bool hasDecorator,
300 … ArenaVector<ir::Decorator *> &&decorators, bool isDeclare);
303 ArenaVector<ir::Decorator *> &&decorators, bool isDeclare);
311 … ArenaVector<ir::TSIndexSignature *> *indexSignatures, bool hasSuperClass,
312 bool isDeclare, bool isAbstractClass);
314 bool hasSuperClass, bool isDeclare = false);
315 …ion *CheckClassMethodOverload(ir::Statement *property, ir::MethodDefinition **ctor, bool isDeclare,
317 bool implExists, bool isAbstract = false);
318 ir::Identifier *SetIdentNodeInClassDefinition(bool isDeclare, binder::ConstDecl **decl);
319 …ir::ClassDefinition *ParseClassDefinition(bool isDeclaration, bool idRequired = true, bool isDecla…
320 bool isAbstract = false);
325 bool isDeclare, bool hasConstructorFuncBody, bool hasSuperClass);
326 void FindSuperCallInConstructor(const ir::AstNode *parent, bool *hasSuperCall);
327 void FindSuperCallInConstructorChildNode(const ir::AstNode *childNode, bool *hasSuperCall);
328 … bool SuperCallShouldBeFirst(ir::MethodDefinition *ctor, ArenaVector<ir::Statement *> &properties);
333 …bool ParsePropertyModifiers(ExpressionParseFlags flags, ir::PropertyKind *propertyKind, ParserStat…
337 bool ParsePropertyEnd();
340 ir::TSTypeParameter *ParseTsTypeParameter(bool throwError, bool addBinding = false);
341 ir::TSTypeParameterDeclaration *ParseTsTypeParameterDeclaration(bool throwError = true);
342 ir::TSTypeParameterInstantiation *ParseTsTypeParameterInstantiation(bool throwError = true);
344 bool isDeclare = false,
347 bool *seenOptional);
350 … ir::MethodDefinitionKind methodKind, ir::ModifierFlags access, bool hasDecorator,
352 ArenaVector<ir::Expression *> ParseFunctionParams(bool isDeclare = false,
356 ir::Expression *ParseFunctionParameter(bool isDeclare);
371 ArrowFunctionDescriptor ConvertToArrowParameter(ir::Expression *expr, bool isAsync,
380 … ir::Expression *returnTypeAnnotation, bool isAsync);
384 …allExpression *ParseCallExpression(ir::Expression *callee, bool isOptionalChain = false, bool isAs…
387 bool ignoreCallExpression);
389 void ValidateUpdateExpression(ir::Expression *returnExpression, bool isChainExpression);
390 …bool ParsePotentialTsGenericFunctionCall(ir::Expression **returnExpression, const lexer::SourcePos…
391 bool ignoreCallExpression);
393 bool ignoreCallExpression, bool *isChainExpression);
394 ir::Expression *ParseMemberExpression(bool ignoreCallExpression = false,
397 …ir::SequenceExpression *ParseSequenceExpression(ir::Expression *startExpr, bool acceptRest = false,
398 bool acceptTsParam = false);
409 bool isDeclare = false);
411 bool allowDefault = true, bool isDeclare = false);
416 void ParseNameSpaceImport(ArenaVector<ir::AstNode *> *specifiers, bool isType);
418 binder::Decl *AddImportDecl(bool isType,
423 ir::StringLiteral *ParseFromClause(bool requireFrom = true);
424 void ParseNamedImportSpecifiers(ArenaVector<ir::AstNode *> *specifiers, bool isType);
426 ir::AstNode *ParseImportDefaultSpecifier(ArenaVector<ir::AstNode *> *specifiers, bool isType);
427 ir::AstNode *ParseImportSpecifiers(ArenaVector<ir::AstNode *> *specifiers, bool isType);
434 bool isExportEquals = false);
436 …rtNamedDeclaration *ParseExportNamedSpecifiers(const lexer::SourcePosition &startLoc, bool isType);
448 bool CheckDeclare();
450 bool IsLabelFollowedByIterationStatement();
452 …ryItem(const ir::StringLiteral *source, const ArenaVector<ir::AstNode *> *specifiers, bool isType);
454 const ir::StringLiteral *source, bool isType);
458 void AddExportLocalEntryItem(const ir::Statement *declNode, bool isTsModule);
459 void AddTsTypeExportLocalEntryItem(const ir::Statement *declNode, bool isTsModule,
464 bool ParseDirective(ArenaVector<ir::Statement *> *statements);
467 bool IsTsDeclarationStatement() const;
469 ir::TSModuleDeclaration *ParseTsModuleDeclaration(bool isDeclare, bool isExport = false);
471 bool isDeclare);
473 bool isDeclare,
474 bool isExport);
477 bool isExport = false);
488 ir::Statement *ParsePotentialExpressionStatement(StatementParsingFlags flags, bool isDeclare);
489 ir::Statement *ParseVarStatement(bool isDeclare);
490 ir::Statement *ParseLetStatement(StatementParsingFlags flags, bool isDeclare);
491 ir::Statement *ParseConstStatement(StatementParsingFlags flags, bool isDeclare);
493 ir::Statement *ParseFunctionStatement(StatementParsingFlags flags, bool isDeclare);
494 ir::FunctionDeclaration *ParseFunctionDeclaration(bool canBeAnonymous = false,
496 bool isDeclare = false);
501 ir::Expression *leftNode, ExpressionParseFlags exprFlags, bool isAwait);
504 bool isAwait);
505 std::tuple<ir::Expression *, ir::Expression *> ParseForUpdate(bool isAwait);
512 ir::ClassDeclaration *ParseClassStatement(StatementParsingFlags flags, bool isDeclare,
513 … ArenaVector<ir::Decorator *> &&decorators, bool isAbstract = false);
514 …ir::ClassDeclaration *ParseClassDeclaration(bool idRequired, ArenaVector<ir::Decorator *> &&decora…
515 bool isDeclare = false, bool isAbstract = false,
516 bool isExported = false);
517 ir::TSTypeAliasDeclaration *ParseTsTypeAliasDeclaration(bool isDeclare);
519 bool isExport, bool isDeclare, bool isConst);
520 …ir::TSEnumDeclaration *ParseEnumDeclaration(bool isExport = false, bool isDeclare = false, bool is…
521 ir::TSInterfaceDeclaration *ParseTsInterfaceDeclaration(bool isDeclare);
522 ir::SwitchCaseStatement *ParseSwitchCaseStatement(bool *seenDefault);
530 … const lexer::SourcePosition &startLoc, bool isDeclare);
531 ir::VariableDeclarator *ParseVariableDeclarator(VariableParsingFlags flags, bool isDeclare);
533 bool isDeclare = false, bool isExport = false);
537 bool isDeclare = false);
698 explicit ArrowFunctionContext(ParserImpl *parser, bool isAsync) in ArrowFunctionContext()