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

Unified Diff: src/ast/ast.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: More tests, disallow optional setter parameter Created 4 years, 8 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
« no previous file with comments | « no previous file | src/parsing/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.h
diff --git a/src/ast/ast.h b/src/ast/ast.h
index 374d250447ca919075f72dbc38a6bdff81e7413d..c3c2d887597c8b0f42f22113e9c0639db85e2d4a 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -2936,6 +2936,14 @@ class EmptyParentheses final : public Expression {
// Nodes for the optional type system.
namespace typesystem {
+enum TypeFlags {
+ kNormalTypes = 0,
+ kDisallowTypeParameters = 1 << 0,
+ kDisallowTypeAnnotation = 1 << 1,
+ kAllowSignature = 1 << 2,
+ kConstructorTypes = kDisallowTypeParameters | kDisallowTypeAnnotation
+};
+
class FormalParameter;
« no previous file with comments | « no previous file | src/parsing/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698