Lines Matching refs:Keywords

226                                          const AdditionalKeywords &Keywords,  in UnwrappedLineParser()  argument
231 CurrentLines(&Lines), Style(Style), Keywords(Keywords), in UnwrappedLineParser()
333 if (FormatTok->is(Keywords.kw_where)) { in parseCSharpGenericTypeConstraint()
507 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in, in calculateBraceTypes()
508 Keywords.kw_as)) || in calculateBraceTypes()
682 const AdditionalKeywords &Keywords) { in isIIFE() argument
693 if (I->Tok->isNot(Keywords.kw_function)) in isIIFE()
717 (isGoogScope(*Line) || isIIFE(*Line, Keywords))); in parseChildBlock()
954 static bool mustBeJSIdent(const AdditionalKeywords &Keywords, in mustBeJSIdent() argument
960 Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, Keywords.kw_async, in mustBeJSIdent()
961 Keywords.kw_await, Keywords.kw_yield, Keywords.kw_finally, in mustBeJSIdent()
962 Keywords.kw_function, Keywords.kw_import, Keywords.kw_is, in mustBeJSIdent()
963 Keywords.kw_let, Keywords.kw_var, tok::kw_const, in mustBeJSIdent()
964 Keywords.kw_abstract, Keywords.kw_extends, Keywords.kw_implements, in mustBeJSIdent()
965 Keywords.kw_instanceof, Keywords.kw_interface, Keywords.kw_throws, in mustBeJSIdent()
966 Keywords.kw_from)); in mustBeJSIdent()
969 static bool mustBeJSIdentOrValue(const AdditionalKeywords &Keywords, in mustBeJSIdentOrValue() argument
973 mustBeJSIdent(Keywords, FormatTok); in mustBeJSIdentOrValue()
978 static bool isJSDeclOrStmt(const AdditionalKeywords &Keywords, in isJSDeclOrStmt() argument
981 tok::kw_return, Keywords.kw_yield, in isJSDeclOrStmt()
989 tok::kw_throw, tok::kw_try, tok::kw_catch, Keywords.kw_finally, in isJSDeclOrStmt()
991 tok::kw_const, tok::kw_class, Keywords.kw_var, Keywords.kw_let, in isJSDeclOrStmt()
992 Keywords.kw_async, Keywords.kw_function, in isJSDeclOrStmt()
994 Keywords.kw_import, tok::kw_export); in isJSDeclOrStmt()
1061 bool PreviousMustBeValue = mustBeJSIdentOrValue(Keywords, Previous); in readTokenWithJavaScriptASI()
1076 bool NextMustBeValue = mustBeJSIdentOrValue(Keywords, Next); in readTokenWithJavaScriptASI()
1085 isJSDeclOrStmt(Keywords, Next)) in readTokenWithJavaScriptASI()
1225 if (FormatTok->is(Keywords.kw_import)) { in parseStructuralElement()
1244 FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals, in parseStructuralElement()
1245 Keywords.kw_slots, Keywords.kw_qslots)) { in parseStructuralElement()
1276 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1357 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS, in parseStructuralElement()
1358 Keywords.kw_CF_ENUM, Keywords.kw_CF_OPTIONS, in parseStructuralElement()
1359 Keywords.kw_CF_CLOSED_ENUM, in parseStructuralElement()
1360 Keywords.kw_NS_CLOSED_ENUM)) in parseStructuralElement()
1447 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where) && in parseStructuralElement()
1464 FormatTok->is(Keywords.kw_function) && in parseStructuralElement()
1466 Keywords.kw_async)))) { in parseStructuralElement()
1472 FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1481 if (Next && !mustBeJSIdent(Keywords, Next)) { in parseStructuralElement()
1491 if (FormatTok->is(Keywords.kw_interface)) { in parseStructuralElement()
1608 tok::kw_protected, Keywords.kw_internal, Keywords.kw_get, in tryToParsePropertyAccessor()
1609 Keywords.kw_set)) { in tryToParsePropertyAccessor()
1610 if (Tok->isOneOf(Keywords.kw_get, Keywords.kw_set)) in tryToParsePropertyAccessor()
1662 if (FormatTok->isOneOf(Keywords.kw_get, Keywords.kw_set) && in tryToParsePropertyAccessor()
1790 assert(FormatTok->is(Keywords.kw_function) || in tryToParseJSFunction()
1791 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)); in tryToParseJSFunction()
1792 if (FormatTok->is(Keywords.kw_async)) in tryToParseJSFunction()
1869 if (FormatTok->is(Keywords.kw_function) || in parseBracedList()
1870 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function)) { in parseBracedList()
2006 (FormatTok->is(Keywords.kw_function) || in parseParens()
2007 FormatTok->startsSequence(Keywords.kw_async, Keywords.kw_function))) in parseParens()
2169 if (!(FormatTok->isOneOf(tok::kw_catch, Keywords.kw___except, in parseTryCatch()
2173 FormatTok->is(Keywords.kw_finally)) || in parseTryCatch()
2296 FormatTok->is(Keywords.kw_await)) in parseForOrWhileLoop()
2411 if (FormatTok->isOneOf(Keywords.kw_slots, Keywords.kw_qslots)) in parseAccessSpecifier()
2742 FormatTok->isOneOf(Keywords.kw_extends, Keywords.kw_implements)) { in parseRecord()
2788 if (Style.isCSharp() && FormatTok->is(Keywords.kw_where)) { in parseRecord()
2966 bool IsImport = FormatTok->is(Keywords.kw_import); in parseJavaScriptEs6ImportExport()
2977 if (FormatTok->is(Keywords.kw_async)) in parseJavaScriptEs6ImportExport()
2979 if (FormatTok->is(Keywords.kw_function)) { in parseJavaScriptEs6ImportExport()