19a0100a96
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>
28 lines
477 B
Dart
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*/
|
|
}
|
|
}
|