Fix dart analysis (flutter/engine#27367)
This commit is contained in:
@@ -62,7 +62,7 @@ function analyze() (
|
||||
echo "Analyzing dart:ui library..."
|
||||
analyze \
|
||||
--options "$FLUTTER_DIR/analysis_options.yaml" \
|
||||
"$SRC_DIR/out/host_debug_unopt/gen/sky/bindings/dart_ui/ui.dart"
|
||||
"$SRC_DIR/out/host_debug_unopt/gen/dart-pkg/sky_engine/lib/ui/ui.dart"
|
||||
|
||||
echo "Analyzing spirv library..."
|
||||
analyze \
|
||||
|
||||
@@ -8,13 +8,10 @@ import("//flutter/common/config.gni")
|
||||
import("//flutter/lib/ui/dart_ui.gni")
|
||||
import("//third_party/dart/utils/compile_platform.gni")
|
||||
|
||||
bindings_output_dir = "$root_gen_dir/sky/bindings"
|
||||
|
||||
copy("generate_dart_ui") {
|
||||
# TODO(dnfield): Remove this when recipes are updated to not use it.
|
||||
# https://flutter-review.googlesource.com/c/recipes/+/15420
|
||||
group("generate_dart_ui") {
|
||||
visibility = [ ":*" ]
|
||||
sources = dart_ui_files
|
||||
|
||||
outputs = [ "$bindings_output_dir/dart_ui/{{source_file_part}}" ]
|
||||
}
|
||||
|
||||
compiled_action("generate_snapshot_bin") {
|
||||
|
||||
@@ -662,10 +662,16 @@ abstract class StringAttribute extends NativeFieldWrapperClass1 {
|
||||
required this.range,
|
||||
});
|
||||
|
||||
// The range of the text to which this attribute applies.
|
||||
/// The range of the text to which this attribute applies.
|
||||
final TextRange range;
|
||||
|
||||
// Returns a copy of this atttribute with the given range.
|
||||
/// Creates a new attribute with all properties copied except for range, which
|
||||
/// is updated to the specified value.
|
||||
///
|
||||
/// For example, the [LocaleStringAttribute] specifies a [Locale] for its
|
||||
/// range of characters. Copying it will result in a new
|
||||
/// [LocaleStringAttribute] that has the same locale but an updated
|
||||
/// [TextRange].
|
||||
StringAttribute copy({required TextRange range});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user