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

Side by Side Diff: runtime/vm/parser.h

Issue 22916006: Move the begin token of explicit functions to the start of the function declaration. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase + hoist out func check Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_PARSER_H_ 5 #ifndef VM_PARSER_H_
6 #define VM_PARSER_H_ 6 #define VM_PARSER_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "lib/invocation_mirror.h" 10 #include "lib/invocation_mirror.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 void SkipSelectors(); 280 void SkipSelectors();
281 void SkipPrimary(); 281 void SkipPrimary();
282 void SkipCompoundLiteral(); 282 void SkipCompoundLiteral();
283 void SkipNewOperator(); 283 void SkipNewOperator();
284 void SkipActualParameters(); 284 void SkipActualParameters();
285 void SkipMapLiteral(); 285 void SkipMapLiteral();
286 void SkipListLiteral(); 286 void SkipListLiteral();
287 void SkipFunctionLiteral(); 287 void SkipFunctionLiteral();
288 void SkipStringLiteral(); 288 void SkipStringLiteral();
289 void SkipQualIdent(); 289 void SkipQualIdent();
290 void SkipFunctionPreamble();
290 291
291 void CheckConstructorCallTypeArguments( 292 void CheckConstructorCallTypeArguments(
292 intptr_t pos, 293 intptr_t pos,
293 Function& constructor, 294 Function& constructor,
294 const AbstractTypeArguments& type_arguments); 295 const AbstractTypeArguments& type_arguments);
295 296
296 // A null script means no source and a negative token_pos means no position. 297 // A null script means no source and a negative token_pos means no position.
297 static RawString* FormatMessage(const Script& script, 298 static RawString* FormatMessage(const Script& script,
298 intptr_t token_pos, 299 intptr_t token_pos,
299 const char* message_header, 300 const char* message_header,
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 // Each try in this function gets its own try index. 692 // Each try in this function gets its own try index.
692 intptr_t AllocateTryIndex() { return ++last_used_try_index_; } 693 intptr_t AllocateTryIndex() { return ++last_used_try_index_; }
693 intptr_t last_used_try_index_; 694 intptr_t last_used_try_index_;
694 695
695 DISALLOW_COPY_AND_ASSIGN(Parser); 696 DISALLOW_COPY_AND_ASSIGN(Parser);
696 }; 697 };
697 698
698 } // namespace dart 699 } // namespace dart
699 700
700 #endif // VM_PARSER_H_ 701 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698