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

Side by Side Diff: src/parsing/parser.h

Issue 1839393002: Add parsing for type aliases (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@types-1841093002-fun-decl
Patch Set: More tests and allow type as an indentifier 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
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 typedef v8::internal::Expression* Expression; 347 typedef v8::internal::Expression* Expression;
348 typedef Yield* YieldExpression; 348 typedef Yield* YieldExpression;
349 typedef v8::internal::FunctionLiteral* FunctionLiteral; 349 typedef v8::internal::FunctionLiteral* FunctionLiteral;
350 typedef v8::internal::ClassLiteral* ClassLiteral; 350 typedef v8::internal::ClassLiteral* ClassLiteral;
351 typedef v8::internal::Literal* Literal; 351 typedef v8::internal::Literal* Literal;
352 typedef ObjectLiteral::Property* ObjectLiteralProperty; 352 typedef ObjectLiteral::Property* ObjectLiteralProperty;
353 typedef ZoneList<v8::internal::Expression*>* ExpressionList; 353 typedef ZoneList<v8::internal::Expression*>* ExpressionList;
354 typedef ZoneList<ObjectLiteral::Property*>* PropertyList; 354 typedef ZoneList<ObjectLiteral::Property*>* PropertyList;
355 typedef ParserFormalParameters::Parameter FormalParameter; 355 typedef ParserFormalParameters::Parameter FormalParameter;
356 typedef ParserFormalParameters FormalParameters; 356 typedef ParserFormalParameters FormalParameters;
357 typedef v8::internal::Statement* Statement;
357 typedef ZoneList<v8::internal::Statement*>* StatementList; 358 typedef ZoneList<v8::internal::Statement*>* StatementList;
358 359
359 struct TypeSystem { 360 struct TypeSystem {
360 typedef v8::internal::typesystem::Type* Type; 361 typedef v8::internal::typesystem::Type* Type;
361 typedef ZoneList<v8::internal::typesystem::Type*>* TypeList; 362 typedef ZoneList<v8::internal::typesystem::Type*>* TypeList;
362 typedef v8::internal::typesystem::TypeParameter* TypeParameter; 363 typedef v8::internal::typesystem::TypeParameter* TypeParameter;
363 typedef ZoneList<v8::internal::typesystem::TypeParameter*>* 364 typedef ZoneList<v8::internal::typesystem::TypeParameter*>*
364 TypeParameters; 365 TypeParameters;
365 typedef v8::internal::typesystem::FormalParameter* FormalParameter; 366 typedef v8::internal::typesystem::FormalParameter* FormalParameter;
366 typedef ZoneList<v8::internal::typesystem::FormalParameter*>* 367 typedef ZoneList<v8::internal::typesystem::FormalParameter*>*
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 1321
1321 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1322 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1322 return parser_->ParseDoExpression(ok); 1323 return parser_->ParseDoExpression(ok);
1323 } 1324 }
1324 1325
1325 1326
1326 } // namespace internal 1327 } // namespace internal
1327 } // namespace v8 1328 } // namespace v8
1328 1329
1329 #endif // V8_PARSING_PARSER_H_ 1330 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698