| 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 #include "vm/parser.h" | 5 #include "vm/parser.h" |
| 6 | 6 |
| 7 #include "lib/invocation_mirror.h" | 7 #include "lib/invocation_mirror.h" |
| 8 #include "vm/bigint_operations.h" | 8 #include "vm/bigint_operations.h" |
| 9 #include "vm/bootstrap.h" | 9 #include "vm/bootstrap.h" |
| 10 #include "vm/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
| (...skipping 4821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4832 library_.ReplaceObject(func, accessor_name); | 4832 library_.ReplaceObject(func, accessor_name); |
| 4833 } | 4833 } |
| 4834 if (metadata_pos >= 0) { | 4834 if (metadata_pos >= 0) { |
| 4835 library_.AddFunctionMetadata(func, metadata_pos); | 4835 library_.AddFunctionMetadata(func, metadata_pos); |
| 4836 } | 4836 } |
| 4837 } | 4837 } |
| 4838 | 4838 |
| 4839 | 4839 |
| 4840 | 4840 |
| 4841 RawObject* Parser::CallLibraryTagHandler(Dart_LibraryTag tag, | 4841 RawObject* Parser::CallLibraryTagHandler(Dart_LibraryTag tag, |
| 4842 intptr_t token_pos, | 4842 intptr_t token_pos, |
| 4843 const String& url) { | 4843 const String& url) { |
| 4844 Dart_LibraryTagHandler handler = isolate()->library_tag_handler(); | 4844 Dart_LibraryTagHandler handler = isolate()->library_tag_handler(); |
| 4845 if (handler == NULL) { | 4845 if (handler == NULL) { |
| 4846 if (url.StartsWith(Symbols::DartScheme())) { | 4846 if (url.StartsWith(Symbols::DartScheme())) { |
| 4847 if (tag == Dart_kCanonicalizeUrl) { | 4847 if (tag == Dart_kCanonicalizeUrl) { |
| 4848 return url.raw(); | 4848 return url.raw(); |
| 4849 } | 4849 } |
| 4850 return Object::null(); | 4850 return Object::null(); |
| 4851 } | 4851 } |
| 4852 ErrorMsg(token_pos, "no library handler registered"); | 4852 ErrorMsg(token_pos, "no library handler registered"); |
| 4853 } | 4853 } |
| (...skipping 5901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10755 void Parser::SkipQualIdent() { | 10755 void Parser::SkipQualIdent() { |
| 10756 ASSERT(IsIdentifier()); | 10756 ASSERT(IsIdentifier()); |
| 10757 ConsumeToken(); | 10757 ConsumeToken(); |
| 10758 if (CurrentToken() == Token::kPERIOD) { | 10758 if (CurrentToken() == Token::kPERIOD) { |
| 10759 ConsumeToken(); // Consume the kPERIOD token. | 10759 ConsumeToken(); // Consume the kPERIOD token. |
| 10760 ExpectIdentifier("identifier expected after '.'"); | 10760 ExpectIdentifier("identifier expected after '.'"); |
| 10761 } | 10761 } |
| 10762 } | 10762 } |
| 10763 | 10763 |
| 10764 } // namespace dart | 10764 } // namespace dart |
| OLD | NEW |