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

Unified Diff: src/typing.cc

Issue 561913002: Class syntax parsing (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add early error checks for static prototype and get/set constructor Created 6 years, 3 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/typing.cc
diff --git a/src/typing.cc b/src/typing.cc
index ee473ed6a655a7196e27e60c1b68a611e3978116..6ec8cb884cf7f30b48537aff530c13e331f08e84 100644
--- a/src/typing.cc
+++ b/src/typing.cc
@@ -352,6 +352,9 @@ void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) {
}
+void AstTyper::VisitClassLiteral(ClassLiteral* expr) {}
+
+
void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) {
}
@@ -743,6 +746,11 @@ void AstTyper::VisitFunctionDeclaration(FunctionDeclaration* declaration) {
}
+void AstTyper::VisitClassDeclaration(ClassDeclaration* declaration) {
+ RECURSE(Visit(declaration->classLiteral()));
+}
+
+
void AstTyper::VisitModuleDeclaration(ModuleDeclaration* declaration) {
RECURSE(Visit(declaration->module()));
}
« src/preparser.h ('K') | « src/token.h ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698