9394b30b77
Bug: b/286184681 Change-Id: I903528c4adfbc576644aec7541903df6b9633e26 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325523 Reviewed-by: Jonas Termansen <sortie@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com> Commit-Queue: Alexander Thomas <athom@google.com>
75 lines
2.2 KiB
YAML
75 lines
2.2 KiB
YAML
# Copyright (c) 2020, 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.
|
|
|
|
type: newworld
|
|
target: dartdevc
|
|
trackWidgetCreation: true
|
|
worlds:
|
|
- entry: main.dart
|
|
sources:
|
|
main.dart: |
|
|
import 'package:flutter/src/widgets/framework.dart';
|
|
import 'package:flutter/src/widgets/widget_inspector.dart';
|
|
|
|
class Foo extends Widget {}
|
|
flutter/lib/src/widgets/framework.dart: |
|
|
abstract class Bar {}
|
|
|
|
abstract class Widget extends Bar {}
|
|
flutter/lib/src/widgets/widget_inspector.dart: |
|
|
abstract class _HasCreationLocation {
|
|
_Location get _location;
|
|
}
|
|
|
|
/// A tuple with file, line, and column number, for displaying human-readable
|
|
/// file locations.
|
|
class _Location {
|
|
const _Location({
|
|
required this.file,
|
|
required this.line,
|
|
required this.column,
|
|
required this.name,
|
|
required this.parameterLocations,
|
|
});
|
|
|
|
/// File path of the location.
|
|
final String file;
|
|
|
|
/// 1-based line number.
|
|
final int line;
|
|
|
|
/// 1-based column number.
|
|
final int column;
|
|
|
|
/// Optional name of the parameter or function at this location.
|
|
final String name;
|
|
|
|
/// Optional locations of the parameters of the member at this location.
|
|
final List<_Location> parameterLocations;
|
|
}
|
|
.dart_tool/package_config.json: |
|
|
{
|
|
"configVersion": 2,
|
|
"packages": [
|
|
{
|
|
"name": "flutter",
|
|
"rootUri": "../flutter/lib"
|
|
}
|
|
]
|
|
}
|
|
expectedLibraryCount: 3
|
|
- entry: main.dart
|
|
worldType: updated
|
|
invalidate:
|
|
- main.dart
|
|
expectInitializeFromDill: false
|
|
sources:
|
|
main.dart: |
|
|
import 'package:flutter/src/widgets/framework.dart';
|
|
import 'package:flutter/src/widgets/widget_inspector.dart';
|
|
|
|
class Foo extends Widget {}
|
|
expectedLibraryCount: 3
|
|
advancedInvalidation: bodiesOnly
|