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

Unified Diff: src/ast/ast.h

Issue 1853763002: Allow constructor and method signatures in classes (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@types-1849803002-intf-decl
Patch Set: Fix method type annotations in the preparser 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') | test/cctest/test-parsing.cc » ('J')
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 c3c2d887597c8b0f42f22113e9c0639db85e2d4a..9e5208150c5eb9e35b57235dd11facf449e84120 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -2936,7 +2936,7 @@ class EmptyParentheses final : public Expression {
// Nodes for the optional type system.
namespace typesystem {
-enum TypeFlags {
+enum TypeFlagsEnum {
kNormalTypes = 0,
kDisallowTypeParameters = 1 << 0,
kDisallowTypeAnnotation = 1 << 1,
@@ -2944,6 +2944,8 @@ enum TypeFlags {
kConstructorTypes = kDisallowTypeParameters | kDisallowTypeAnnotation
};
+typedef base::Flags<TypeFlagsEnum> TypeFlags;
+
class FormalParameter;
« no previous file with comments | « no previous file | src/parsing/parser.h » ('j') | test/cctest/test-parsing.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698