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

Unified Diff: src/messages.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
Index: src/messages.h
diff --git a/src/messages.h b/src/messages.h
index a5c4f677b24b14fd36333870e26d340fd29f9139..968d53081c5b642f26c1b1d5e6c5ac41c9c73ba5 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -481,6 +481,11 @@ class CallSite {
T(BadFunctionOrConstructorType, \
"Expecting '=>' in function or constructor type.") \
T(BadIndexType, "Invalid index type: expected 'number' or 'string'") \
+ T(BadAmbientDeclaration, \
+ "Invalid ambient: expected variable, function or class declaration") \
+ T(IllegalDeclare, \
+ "Unexpected 'declare', ambient declaration not allowed here") \
+ T(AmbientGetOrSet, "Unexpected 'get' or 'set' in ambient class declaration") \
/* EvalError */ \
T(CodeGenFromStrings, "%") \
/* URIError */ \
« no previous file with comments | « src/ast/scopes.h ('k') | src/parsing/parser.h » ('j') | src/parsing/preparser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698