Lines Matching full:bool
133 bool isPrivateIdent {};
134 bool hasSuperClass {};
135 bool isGenerator {};
136 bool invalidComputedProperty {};
137 bool isComputed {};
138 bool isIndexSignature {};
139 bool classMethod {};
140 bool classField {};
193 bool IsStartOfMappedType() const;
194 bool IsStartOfTsTypePredicate() const;
195 bool IsStartOfAbstractConstructorType() const;
197 bool CurrentTokenIsModifier(char32_t nextCp) const;
234 bool CurrentIsBasicType();
235 bool CurrentLiteralIsBasicType();
236 static bool CheckTypeNameIsReserved(const util::StringView ¶mName);
237 static bool IsPropertyKeysAreSame(const ir::Expression *exp1, const ir::Expression *exp2);
238 …static bool IsMemberExpressionsAreSame(const ir::MemberExpression *mExp1, const ir::MemberExpressi…
239 …static bool IsMethodDefinitionsAreSame(const ir::MethodDefinition *property, ir::MethodDefinition …
244 …ir::TSIntersectionType *ParseTsIntersectionType(ir::Expression *type, bool inUnion, bool restrictE…
245 ir::TSUnionType *ParseTsUnionType(ir::Expression *type, bool restrictExtends);
246 …ir::Expression *ParseTsParenthesizedOrFunctionType(ir::Expression *typeAnnotation, bool throwError…
248 …pression *ParseTsFunctionType(lexer::SourcePosition startLoc, bool isConstructionType, bool throwE…
249 bool abstractConstructor = false);
254 …ir::Expression *ParseTsTypeLiteralOrInterfaceKey(bool *computed, bool *signature, bool *isIndexSig…
255 ir::Expression *ParseTsConditionalType(ir::Expression *checkType, bool restrictExtends);
258 ir::Expression *ParseTsThisType(bool throwError);
261 ir::Expression *ParseTsTypeReferenceOrQuery(bool parseQuery = false);
262 bool IsTSNamedTupleMember();
263 ir::Expression *ParseTsTupleElement(ir::TSTupleKind *kind, bool *seenOptional);
265 … ir::TSImportType *ParseTsImportType(const lexer::SourcePosition &startLoc, bool isTypeof = false);
268 …ir::Expression *ParseTsTypeReferenceOrTsTypePredicate(ir::Expression *typeAnnotation, bool canBeTs…
269 …ir::Expression *ParseTsThisTypeOrTsTypePredicate(ir::Expression *typeAnnotation, bool canBeTsTypeP…
270 bool throwError);
276 void ValidateClassKey(ClassElmentDescriptor *desc, bool isDeclare);
279 ir::Expression *ParseClassKey(ClassElmentDescriptor *desc, bool isDeclare);
282 ir::Expression *propName, ir::ScriptFunction *func, bool hasDecorator,
285 ir::Expression *propName, ir::ScriptFunction *func, bool hasDecorator,
289 … ArenaVector<ir::Decorator *> &&decorators, bool isDeclare);
292 ArenaVector<ir::Decorator *> &&decorators, bool isDeclare);
300 … ArenaVector<ir::TSIndexSignature *> *indexSignatures, bool hasSuperClass,
301 bool isDeclare, bool isAbstractClass);
302 ir::MethodDefinition *CreateImplicitConstructor(bool hasSuperClass, bool isDeclare = false);
303 …ion *CheckClassMethodOverload(ir::Statement *property, ir::MethodDefinition **ctor, bool isDeclare,
305 bool implExists, bool isAbstract = false);
307 …ir::ClassDefinition *ParseClassDefinition(bool isDeclaration, bool idRequired = true, bool isDecla…
308 bool isAbstract = false);
314 …bool ParsePropertyModifiers(ExpressionParseFlags flags, ir::PropertyKind *propertyKind, ParserStat…
318 bool ParsePropertyEnd();
321 ir::TSTypeParameter *ParseTsTypeParameter(bool throwError, bool addBinding = false);
322 ir::TSTypeParameterDeclaration *ParseTsTypeParameterDeclaration(bool throwError = true);
323 ir::TSTypeParameterInstantiation *ParseTsTypeParameterInstantiation(bool throwError = true);
324 …ir::ScriptFunction *ParseFunction(ParserStatus newStatus = ParserStatus::NO_OPTS, bool isDeclare =…
326 bool *seenOptional);
329 … ir::MethodDefinitionKind methodKind, ir::ModifierFlags access, bool hasDecorator,
331 ArenaVector<ir::Expression *> ParseFunctionParams(bool isDeclare = false);
334 ir::Expression *ParseFunctionParameter(bool isDeclare);
349 ArrowFunctionDescriptor ConvertToArrowParameter(ir::Expression *expr, bool isAsync,
358 … ir::Expression *returnTypeAnnotation, bool isAsync);
362 …allExpression *ParseCallExpression(ir::Expression *callee, bool isOptionalChain = false, bool isAs…
366 void ValidateUpdateExpression(ir::Expression *returnExpression, bool isChainExpression);
367 …bool ParsePotentialTsGenericFunctionCall(ir::Expression **returnExpression, const lexer::SourcePos…
368 bool ignoreCallExpression);
370 bool ignoreCallExpression, bool *isChainExpression);
371 ir::Expression *ParseMemberExpression(bool ignoreCallExpression = false,
374 …ir::SequenceExpression *ParseSequenceExpression(ir::Expression *startExpr, bool acceptRest = false,
375 bool acceptTsParam = false);
386 bool isDeclare = false);
388 bool allowDefault = true, bool isDeclare = false);
396 ir::StringLiteral *ParseFromClause(bool requireFrom = true);
407 bool isExportEquals = false);
423 bool IsLabelFollowedByIterationStatement();
430 void AddExportLocalEntryItem(const ir::Statement *declNode, bool isTsModule);
433 bool ParseDirective(ArenaVector<ir::Statement *> *statements);
437 ir::TSModuleDeclaration *ParseTsModuleDeclaration(bool isDeclare, bool isExport = false);
439 bool isDeclare);
441 bool isDeclare,
442 bool isExport);
445 bool isExport = false);
455 ir::Statement *ParsePotentialExpressionStatement(StatementParsingFlags flags, bool isDeclare);
456 ir::Statement *ParseVarStatement(bool isDeclare);
457 ir::Statement *ParseLetStatement(StatementParsingFlags flags, bool isDeclare);
458 ir::Statement *ParseConstStatement(StatementParsingFlags flags, bool isDeclare);
460 ir::Statement *ParseFunctionStatement(StatementParsingFlags flags, bool isDeclare);
461 ir::FunctionDeclaration *ParseFunctionDeclaration(bool canBeAnonymous = false,
463 bool isDeclare = false);
466 ir::Expression *leftNode, ExpressionParseFlags exprFlags, bool isAwait);
469 bool isAwait);
470 std::tuple<ir::Expression *, ir::Expression *> ParseForUpdate(bool isAwait);
477 ir::ClassDeclaration *ParseClassStatement(StatementParsingFlags flags, bool isDeclare,
478 … ArenaVector<ir::Decorator *> &&decorators, bool isAbstract = false);
479 …ir::ClassDeclaration *ParseClassDeclaration(bool idRequired, ArenaVector<ir::Decorator *> &&decora…
480 bool isDeclare = false, bool isAbstract = false,
481 bool isExported = false);
482 ir::TSTypeAliasDeclaration *ParseTsTypeAliasDeclaration(bool isDeclare);
483 …ation *ParseEnumMembers(ir::Identifier *key, const lexer::SourcePosition &enumStart, bool isConst);
484 ir::TSEnumDeclaration *ParseEnumDeclaration(bool isConst = false);
486 ir::SwitchCaseStatement *ParseSwitchCaseStatement(bool *seenDefault);
494 … const lexer::SourcePosition &startLoc, bool isDeclare);
495 ir::VariableDeclarator *ParseVariableDeclarator(VariableParsingFlags flags, bool isDeclare);
497 bool isDeclare = false);
501 bool isDeclare = false);
662 explicit ArrowFunctionContext(ParserImpl *parser, bool isAsync) in ArrowFunctionContext()