Files
sdk/pkg/dev_compiler/test/sourcemap/testfiles/hello_class_call.dart
T
Jens Johansen 19a0100a96 [DDC-kernel] Add source mapping to classes
This CL adds (initial) source mapping to classes and adds (some) tests
of wanted behaviour.

Bug:
Change-Id: I07a38930963b9d93e3bae5206b9eceda69643f7d
Reviewed-on: https://dart-review.googlesource.com/23300
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2017-11-24 14:05:20 +00:00

28 lines
477 B
Dart

// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
main() {
/*bl*/
Foo foo = new Foo();
foo.foo();
/*nbb:0:1*/
}
class Foo {
foo() {
return /*bc:1*/ bar() + /*bc:2*/ baz /*nbc*/ ();
/*nbb:0:1*/
}
bar() {
return 42;
/*nbb:0:1*/
}
baz() {
return 42;
/*nbb:0:1*/
}
}