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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/source_map_builder.dart

Issue 11361118: Use new library/import syntax in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
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('source_map_builder'); 5 library source_map_builder;
6 6
7 #import('dart:json'); 7 import 'dart:json';
8 8
9 #import('scanner/scannerlib.dart'); 9 import 'scanner/scannerlib.dart';
10 #import('source_file.dart'); 10 import 'source_file.dart';
11 11
12 class SourceMapBuilder { 12 class SourceMapBuilder {
13 static const int VLQ_BASE_SHIFT = 5; 13 static const int VLQ_BASE_SHIFT = 5;
14 static const int VLQ_BASE_MASK = (1 << 5) - 1; 14 static const int VLQ_BASE_MASK = (1 << 5) - 1;
15 static const int VLQ_CONTINUATION_BIT = 1 << 5; 15 static const int VLQ_CONTINUATION_BIT = 1 << 5;
16 static const int VLQ_CONTINUATION_MASK = 1 << 5; 16 static const int VLQ_CONTINUATION_MASK = 1 << 5;
17 static const String BASE64_DIGITS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn' 17 static const String BASE64_DIGITS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn'
18 'opqrstuvwxyz0123456789+/'; 18 'opqrstuvwxyz0123456789+/';
19 19
20 List<SourceMapEntry> entries; 20 List<SourceMapEntry> entries;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 int getColumn() => sourceFile.getColumn(getLine(), token.charOffset); 168 int getColumn() => sourceFile.getColumn(getLine(), token.charOffset);
169 169
170 String getSourceName() { 170 String getSourceName() {
171 if (token.isIdentifier()) return token.slowToString(); 171 if (token.isIdentifier()) return token.slowToString();
172 return null; 172 return null;
173 } 173 }
174 174
175 bool isValid() => token.charOffset < sourceFile.text.length; 175 bool isValid() => token.charOffset < sourceFile.text.length;
176 } 176 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698