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

Unified Diff: src/ast/ast.h

Issue 1871923003: Add parsing for ambient declarations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@types-devel
Patch Set: Minor fixes to address code review comments 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/ast/scopes.h » ('j') | src/parsing/preparser.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 9e5208150c5eb9e35b57235dd11facf449e84120..5259265a1abd039e3a0ebea1d4a5440b6951d95d 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -2941,7 +2941,9 @@ enum TypeFlagsEnum {
kDisallowTypeParameters = 1 << 0,
kDisallowTypeAnnotation = 1 << 1,
kAllowSignature = 1 << 2,
- kConstructorTypes = kDisallowTypeParameters | kDisallowTypeAnnotation
+ kDisallowBody = 1 << 3,
+ kConstructorTypes = kDisallowTypeParameters | kDisallowTypeAnnotation,
+ kAmbient = kAllowSignature | kDisallowBody
};
typedef base::Flags<TypeFlagsEnum> TypeFlags;
« no previous file with comments | « no previous file | src/ast/scopes.h » ('j') | src/parsing/preparser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698