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

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

Issue 57663003: - Remove support for the non-used Dart_kLibraryTag in the C API. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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/include/dart_api.h ('k') | no next file » | 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 #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
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
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
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698