| OLD | NEW |
| 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 "vm/ast.h" | 10 #include "vm/ast.h" |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 bool IsInstantiatorRequired() const; | 383 bool IsInstantiatorRequired() const; |
| 384 bool IsDefinedInLexicalScope(const String& ident); | 384 bool IsDefinedInLexicalScope(const String& ident); |
| 385 bool ResolveIdentInLocalScope(intptr_t ident_pos, | 385 bool ResolveIdentInLocalScope(intptr_t ident_pos, |
| 386 const String &ident, | 386 const String &ident, |
| 387 AstNode** node); | 387 AstNode** node); |
| 388 static const bool kResolveLocally = true; | 388 static const bool kResolveLocally = true; |
| 389 static const bool kResolveIncludingImports = false; | 389 static const bool kResolveIncludingImports = false; |
| 390 AstNode* ResolveIdentInLibraryScope(const Library& lib, | 390 AstNode* ResolveIdentInLibraryScope(const Library& lib, |
| 391 const QualIdent& qual_ident, | 391 const QualIdent& qual_ident, |
| 392 bool resolve_locally); | 392 bool resolve_locally); |
| 393 AstNode* ResolveIdentInLibraryPrefixScope(const LibraryPrefix& lib_prefix, |
| 394 const QualIdent& qual_ident); |
| 393 AstNode* ResolveVarOrField(intptr_t ident_pos, const String& ident); | 395 AstNode* ResolveVarOrField(intptr_t ident_pos, const String& ident); |
| 394 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); | 396 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); |
| 395 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, | 397 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, |
| 396 Token::Kind binary_op, | 398 Token::Kind binary_op, |
| 397 AstNode* lhs, | 399 AstNode* lhs, |
| 398 AstNode* rhs); | 400 AstNode* rhs); |
| 399 AstNode* ExpandAssignableOp(intptr_t op_pos, | 401 AstNode* ExpandAssignableOp(intptr_t op_pos, |
| 400 Token::Kind assignment_op, | 402 Token::Kind assignment_op, |
| 401 AstNode* lhs, | 403 AstNode* lhs, |
| 402 AstNode* rhs); | 404 AstNode* rhs); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 // code at all points in the try block where an exit from the block is | 456 // code at all points in the try block where an exit from the block is |
| 455 // done using 'return', 'break' or 'continue' statements. | 457 // done using 'return', 'break' or 'continue' statements. |
| 456 TryBlocks* try_blocks_list_; | 458 TryBlocks* try_blocks_list_; |
| 457 | 459 |
| 458 DISALLOW_COPY_AND_ASSIGN(Parser); | 460 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 459 }; | 461 }; |
| 460 | 462 |
| 461 } // namespace dart | 463 } // namespace dart |
| 462 | 464 |
| 463 #endif // VM_PARSER_H_ | 465 #endif // VM_PARSER_H_ |
| OLD | NEW |