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

Side by Side Diff: frog/leg/apiimpl.dart

Issue 9845043: Rename client/{dom,html} to lib/{dom,html} . (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | « dart.gyp ('k') | frog/leg/scanner/source_list.dart » ('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) 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 #library('leg_apiimpl'); 5 #library('leg_apiimpl');
6 6
7 #import('leg.dart', prefix: 'leg'); 7 #import('leg.dart', prefix: 'leg');
8 #import('elements/elements.dart', prefix: 'leg'); 8 #import('elements/elements.dart', prefix: 'leg');
9 #import('tree/tree.dart', prefix: 'leg'); 9 #import('tree/tree.dart', prefix: 'leg');
10 #import('ssa/tracer.dart', prefix: 'ssa'); 10 #import('ssa/tracer.dart', prefix: 'ssa');
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 frog.SourceFile sourceFile = new frog.SourceFile(uri.toString(), text); 47 frog.SourceFile sourceFile = new frog.SourceFile(uri.toString(), text);
48 return new leg.Script(uri, sourceFile); 48 return new leg.Script(uri, sourceFile);
49 } 49 }
50 50
51 translateDartUri(Uri uri, leg.ScriptTag node) { 51 translateDartUri(Uri uri, leg.ScriptTag node) {
52 String uriName = uri.toString(); 52 String uriName = uri.toString();
53 // TODO(ahe): Clean this up. 53 // TODO(ahe): Clean this up.
54 if (uriName == 'dart:dom') { 54 if (uriName == 'dart:dom') {
55 mockableLibraryUsed = true; 55 mockableLibraryUsed = true;
56 return libraryRoot.resolve('../../../client/dom/frog/dom_frog.dart'); 56 return libraryRoot.resolve('../../../lib/dom/frog/dom_frog.dart');
57 } else if (uriName == 'dart:html') { 57 } else if (uriName == 'dart:html') {
58 mockableLibraryUsed = true; 58 mockableLibraryUsed = true;
59 return libraryRoot.resolve('../../../client/html/frog/html_frog.dart'); 59 return libraryRoot.resolve('../../../lib/html/frog/html_frog.dart');
60 } else if (uriName == 'dart:json') { 60 } else if (uriName == 'dart:json') {
61 return libraryRoot.resolve('../../../lib/json/json.dart'); 61 return libraryRoot.resolve('../../../lib/json/json.dart');
62 } else if (uriName == 'dart:isolate') { 62 } else if (uriName == 'dart:isolate') {
63 return libraryRoot.resolve('../../../lib/isolate/isolate_leg.dart'); 63 return libraryRoot.resolve('../../../lib/isolate/isolate_leg.dart');
64 } else if (uriName == 'dart:io') { 64 } else if (uriName == 'dart:io') {
65 mockableLibraryUsed = true; 65 mockableLibraryUsed = true;
66 return libraryRoot.resolve('io.dart'); 66 return libraryRoot.resolve('io.dart');
67 } else if (uriName == 'dart:utf') { 67 } else if (uriName == 'dart:utf') {
68 return libraryRoot.resolve('../../../lib/utf/utf.dart'); 68 return libraryRoot.resolve('../../../lib/utf/utf.dart');
69 } else if (uriName == 'dart:uri') { 69 } else if (uriName == 'dart:uri') {
(...skipping 16 matching lines...) Expand all
86 } else { 86 } else {
87 handler(span.uri, span.begin, span.end, message, fatal); 87 handler(span.uri, span.begin, span.end, message, fatal);
88 } 88 }
89 } 89 }
90 90
91 bool get isMockCompilation() { 91 bool get isMockCompilation() {
92 return mockableLibraryUsed 92 return mockableLibraryUsed
93 && (options.indexOf('--allow-mock-compilation') !== -1); 93 && (options.indexOf('--allow-mock-compilation') !== -1);
94 } 94 }
95 } 95 }
OLDNEW
« no previous file with comments | « dart.gyp ('k') | frog/leg/scanner/source_list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698