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

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: 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
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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 void SkipSelectors(); 278 void SkipSelectors();
279 void SkipPrimary(); 279 void SkipPrimary();
280 void SkipCompoundLiteral(); 280 void SkipCompoundLiteral();
281 void SkipNewOperator(); 281 void SkipNewOperator();
282 void SkipActualParameters(); 282 void SkipActualParameters();
283 void SkipMapLiteral(); 283 void SkipMapLiteral();
284 void SkipListLiteral(); 284 void SkipListLiteral();
285 void SkipFunctionLiteral(); 285 void SkipFunctionLiteral();
286 void SkipStringLiteral(); 286 void SkipStringLiteral();
287 void SkipQualIdent(); 287 void SkipQualIdent();
288 void SkipFunctionPreamble(const Function& func);
288 289
289 void CheckConstructorCallTypeArguments( 290 void CheckConstructorCallTypeArguments(
290 intptr_t pos, 291 intptr_t pos,
291 Function& constructor, 292 Function& constructor,
292 const AbstractTypeArguments& type_arguments); 293 const AbstractTypeArguments& type_arguments);
293 294
294 // A null script means no source and a negative token_pos means no position. 295 // A null script means no source and a negative token_pos means no position.
295 static RawString* FormatMessage(const Script& script, 296 static RawString* FormatMessage(const Script& script,
296 intptr_t token_pos, 297 intptr_t token_pos,
297 const char* message_header, 298 const char* message_header,
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 // Each try in this function gets its own try index. 690 // Each try in this function gets its own try index.
690 intptr_t AllocateTryIndex() { return ++last_used_try_index_; } 691 intptr_t AllocateTryIndex() { return ++last_used_try_index_; }
691 intptr_t last_used_try_index_; 692 intptr_t last_used_try_index_;
692 693
693 DISALLOW_COPY_AND_ASSIGN(Parser); 694 DISALLOW_COPY_AND_ASSIGN(Parser);
694 }; 695 };
695 696
696 } // namespace dart 697 } // namespace dart
697 698
698 #endif // VM_PARSER_H_ 699 #endif // VM_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698