| Index: lib/compiler/implementation/js_backend/emitter.dart
|
| diff --git a/lib/compiler/implementation/js_backend/emitter.dart b/lib/compiler/implementation/js_backend/emitter.dart
|
| index 68557551eabeaedf1eb02b1e7c558e8db6f76b43..046e4eb45748e8815f1e3c9e8b5883daa803afc4 100644
|
| --- a/lib/compiler/implementation/js_backend/emitter.dart
|
| +++ b/lib/compiler/implementation/js_backend/emitter.dart
|
| @@ -1286,19 +1286,7 @@ if (typeof document != 'undefined' && document.readyState != 'complete') {
|
|
|
| String buildSourceMap(CodeBuffer buffer, SourceFile compiledFile) {
|
| SourceMapBuilder sourceMapBuilder = new SourceMapBuilder();
|
| - buffer.forEachSourceLocation((Element element, Token token, int offset) {
|
| - if (element == null) {
|
| - sourceMapBuilder.addMapping(null, null, null, offset);
|
| - return;
|
| - }
|
| - SourceFile sourceFile = element.getCompilationUnit().script.file;
|
| - String sourceName = null;
|
| - if (token.kind === IDENTIFIER_TOKEN) {
|
| - sourceName = token.slowToString();
|
| - }
|
| - sourceMapBuilder.addMapping(
|
| - sourceFile, token.charOffset, sourceName, offset);
|
| - });
|
| + buffer.forEachSourceLocation(sourceMapBuilder.addMapping);
|
| return sourceMapBuilder.build(compiledFile);
|
| }
|
| }
|
|
|