blob: 6443af1afdbb32b4edd8738ff9b0d4c4562d9daa [file] [log] [blame]
# Copyright (c) 2023, 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.
sources: |
//@dart=3.3
void main() {
Foo f = new Foo(42);
print(f);
print(f.value);
f.printValue();
f.printThis();
}
extension type Foo(int value) {
void printValue() {
print("This foos value is '$value'");
}
void printThis() {
print("This foos this value is '$this'");
}
}
definitions: ["f"]
# int
definition_types: ["dart:core", "int", "1", "0"]
type_definitions: []
type_bounds: []
type_defaults: []
method: "main"
static: true
offset: 64 # at the start of the 'print(f.value);' line.
scriptUri: main.dart
expression: |
f.value