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

Side by Side Diff: src/parsing/parser.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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSING_PARSER_H_ 5 #ifndef V8_PARSING_PARSER_H_
6 #define V8_PARSING_PARSER_H_ 6 #define V8_PARSING_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 const AstRawString* arg, 493 const AstRawString* arg,
494 ParseErrorType error_type = kSyntaxError); 494 ParseErrorType error_type = kSyntaxError);
495 495
496 // "null" return type creators. 496 // "null" return type creators.
497 static const AstRawString* EmptyIdentifier() { 497 static const AstRawString* EmptyIdentifier() {
498 return NULL; 498 return NULL;
499 } 499 }
500 static Expression* EmptyExpression() { 500 static Expression* EmptyExpression() {
501 return NULL; 501 return NULL;
502 } 502 }
503 static bool IsEmptyExpression(Expression* e) { return e == nullptr; }
503 static Literal* EmptyLiteral() { 504 static Literal* EmptyLiteral() {
504 return NULL; 505 return NULL;
505 } 506 }
506 static ObjectLiteralProperty* EmptyObjectLiteralProperty() { return NULL; } 507 static ObjectLiteralProperty* EmptyObjectLiteralProperty() { return NULL; }
507 static FunctionLiteral* EmptyFunctionLiteral() { return NULL; } 508 static FunctionLiteral* EmptyFunctionLiteral() { return NULL; }
508 509
509 static typesystem::Type* EmptyType() { return nullptr; } 510 static typesystem::Type* EmptyType() { return nullptr; }
510 static ZoneList<typesystem::Type*>* NullTypeList() { return nullptr; } 511 static ZoneList<typesystem::Type*>* NullTypeList() { return nullptr; }
511 V8_INLINE ZoneList<typesystem::Type*>* EmptyTypeList() const; 512 V8_INLINE ZoneList<typesystem::Type*>* EmptyTypeList() const;
512 static ZoneList<typesystem::TypeParameter*>* NullTypeParameters() { 513 static ZoneList<typesystem::TypeParameter*>* NullTypeParameters() {
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 1322
1322 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1323 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1323 return parser_->ParseDoExpression(ok); 1324 return parser_->ParseDoExpression(ok);
1324 } 1325 }
1325 1326
1326 1327
1327 } // namespace internal 1328 } // namespace internal
1328 } // namespace v8 1329 } // namespace v8
1329 1330
1330 #endif // V8_PARSING_PARSER_H_ 1331 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | src/parsing/parser-base.h » ('j') | test/cctest/test-parsing.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698