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

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

Issue 8318031: Interpolated strings are never considered compile time const (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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 | « no previous file | 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "vm/ast.h" 10 #include "vm/ast.h"
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 392
393 static SequenceNode* NodeAsSequenceNode(intptr_t sequence_pos, 393 static SequenceNode* NodeAsSequenceNode(intptr_t sequence_pos,
394 AstNode* node, 394 AstNode* node,
395 LocalScope* scope); 395 LocalScope* scope);
396 396
397 SequenceNode* MakeImplicitConstructor(const Function& func); 397 SequenceNode* MakeImplicitConstructor(const Function& func);
398 AstNode* MakeStaticCall(const char* class_name, 398 AstNode* MakeStaticCall(const char* class_name,
399 const char* function_name, 399 const char* function_name,
400 ArgumentListNode* arguments); 400 ArgumentListNode* arguments);
401 AstNode* MakeAssertCall(intptr_t begin, intptr_t end); 401 AstNode* MakeAssertCall(intptr_t begin, intptr_t end);
402 String& Interpolate(ArrayNode* strings);
403 402
404 void CheckFunctionIsCallable(intptr_t token_index, const Function& function); 403 void CheckFunctionIsCallable(intptr_t token_index, const Function& function);
405 404
406 const Script& script_; 405 const Script& script_;
407 const TokenStream& tokens_; 406 const TokenStream& tokens_;
408 intptr_t token_index_; 407 intptr_t token_index_;
409 Token::Kind token_kind_; // Cached token kind for the token_index_. 408 Token::Kind token_kind_; // Cached token kind for the token_index_.
410 Block* current_block_; 409 Block* current_block_;
411 410
412 // is_top_level_ is true if parsing the "top level" of a compilation unit, 411 // is_top_level_ is true if parsing the "top level" of a compilation unit,
(...skipping 24 matching lines...) Expand all
437 TryBlocks* try_blocks_list_; 436 TryBlocks* try_blocks_list_;
438 437
439 char error_msg_[kErrorBuflen]; 438 char error_msg_[kErrorBuflen];
440 439
441 DISALLOW_COPY_AND_ASSIGN(Parser); 440 DISALLOW_COPY_AND_ASSIGN(Parser);
442 }; 441 };
443 442
444 } // namespace dart 443 } // namespace dart
445 444
446 #endif // VM_PARSER_H_ 445 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698