Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Unified Diff: src/parsing/preparser.h

Issue 1841093002: Add optional types to function/method declarations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@types-1817353007-typ-mod
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index 8ccba7373adbaac9370257322b975128f2885387..2051ab100f3948a30c5925020bef9bd133f6753f 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -1200,7 +1200,7 @@ class PreParserTraits {
PreParserIdentifier name, Scanner::Location function_name_location,
FunctionNameValidity function_name_validity, FunctionKind kind,
int function_token_position, FunctionLiteral::FunctionType type,
- LanguageMode language_mode, bool* ok);
+ LanguageMode language_mode, typesystem::TypeFlags type_flags, bool* ok);
PreParserExpression ParseClassLiteral(PreParserIdentifier name,
Scanner::Location class_name_location,
@@ -1378,11 +1378,13 @@ class PreParser : public ParserBase<PreParserTraits> {
const PreParserFormalParameters& parameters, FunctionKind kind,
FunctionLiteral::FunctionType function_type, bool* ok);
- Expression ParseFunctionLiteral(
- Identifier name, Scanner::Location function_name_location,
- FunctionNameValidity function_name_validity, FunctionKind kind,
- int function_token_pos, FunctionLiteral::FunctionType function_type,
- LanguageMode language_mode, bool* ok);
+ Expression ParseFunctionLiteral(Identifier name,
+ Scanner::Location function_name_location,
+ FunctionNameValidity function_name_validity,
+ FunctionKind kind, int function_token_pos,
+ FunctionLiteral::FunctionType function_type,
+ LanguageMode language_mode,
+ typesystem::TypeFlags type_flags, bool* ok);
void ParseLazyFunctionLiteralBody(bool* ok,
Scanner::BookmarkScope* bookmark = nullptr);

Powered by Google App Engine
This is Rietveld 408576698