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

Side by Side Diff: lib/src/compiler/source_map_printer.dart

Issue 1948563002: allow 'super' in async and finally blocks (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « lib/src/compiler/code_generator.dart ('k') | test/codegen/language/super_in_async1_test.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2
3 // 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
4 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
5 4
6 import 'package:analyzer/dart/ast/ast.dart'; 5 import 'package:analyzer/dart/ast/ast.dart';
7 import 'package:source_maps/source_maps.dart' hide Printer; 6 import 'package:source_maps/source_maps.dart' hide Printer;
8 import 'package:source_span/source_span.dart' show SourceLocation; 7 import 'package:source_span/source_span.dart' show SourceLocation;
9 8
10 import '../js_ast/js_ast.dart' as JS; 9 import '../js_ast/js_ast.dart' as JS;
11 10
12 class SourceMapPrintingContext extends JS.SimpleJavaScriptPrintingContext { 11 class SourceMapPrintingContext extends JS.SimpleJavaScriptPrintingContext {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 sourceUrl: sourcePath, 79 sourceUrl: sourcePath,
81 line: loc.lineNumber - 1, 80 line: loc.lineNumber - 1,
82 column: loc.columnNumber - 1), 81 column: loc.columnNumber - 1),
83 new SourceLocation(buffer.length, line: _line, column: _column), 82 new SourceLocation(buffer.length, line: _line, column: _column),
84 identifier); 83 identifier);
85 } 84 }
86 } 85 }
87 86
88 const int _LF = 10; 87 const int _LF = 10;
89 const int _CR = 13; 88 const int _CR = 13;
OLDNEW
« no previous file with comments | « lib/src/compiler/code_generator.dart ('k') | test/codegen/language/super_in_async1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698