Skip to content

Eliminate some regressions introduced by the new lookup code #85484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

jcollins-g
Copy link
Contributor

@jcollins-g jcollins-g commented Jun 28, 2021

This could not land until after #85549 as this references are not consistently allowed in the legacy lookup code.

While in general, the new lookup code is an improvement to resolution where it is different from the legacy code, in some cases this improvement leads to a change in how ambiguous references were resolved. This PR corrects those cases, reducing the change in resolved variables to 37 from ~50 and leaving only 1 (the Navigator reference, below) that is definitely not an improvement, caused by dart-lang/dartdoc#2693. The changes around WidgetBuilder are necessary to work around a different bug, dart-lang/dartdoc#2711.

Since (after this PR) there are 36 changes with the new lookup code that are either an improvement or ambiguous, one regression, and 1335 newly resolved references not previously recognized before (including field formal parameters!) I still think it is a win.

The list of differences in resolved items can be seen here (and generated yourself with --warnings reference-lookup-missing-with-new,reference-lookup-not-found-with-new --show-stats after dartdoc 1.0.0). You can add "reference-lookup-found-with-new" to get a dump of all newly recognized references, but I didn't do that here for space reasons.

/Users/jcollins/dart/all_sdks/current/bin/dart /Users/jcollins/dart/dartdoc/bin/dartdoc.dart --no-allow-tools --no-validate-links --link-to-source-excludes ../../bin/cache --link-to-source-root ../.. --link-to-source-uri-template https://github.com/flutter/flutter/blob/master/%f%#L%l% --inject-html --use-base-href --header styles.html --header analytics.html --header survey.html --header snippets.html --header opensearch.html --footer-text lib/footer.html --allow-warnings-in-packages Flutter,platform_integration,flutter_web_plugins,integration_test,flutter_goldens,flutter,flutter_localizations,fuchsia_remote_debug_protocol,flutter_driver,flutter_test --exclude-packages analyzer,args,barback,cli_util,csslib,flutter_goldens,flutter_goldens_client,front_end,fuchsia_remote_debug_protocol,glob,html,http_multi_server,io,isolate,js,kernel,logging,mime,mockito,node_preamble,plugin,shelf,shelf_packages_handler,shelf_static,shelf_web_socket,utf,watcher,yaml --exclude dart:io/network_policy.dart,package:Flutter/temp_doc.dart,package:http/browser_client.dart,package:intl/intl_browser.dart,package:matcher/mirror_matchers.dart,package:quiver/io.dart,package:quiver/mirrors.dart,package:vm_service_client/vm_service_client.dart,package:web_socket_channel/html.dart --favicon=favicon.ico --package-order flutter,Dart,platform_integration,flutter_test,flutter_driver --auto-include-dependencies --warnings reference-lookup-missing-with-new,reference-lookup-not-found-with-new --show-stats
Documenting Flutter...
Initialized dartdoc with 1103 libraries in 68.7 seconds
Generating docs for library material from package:flutter/material.dart...
  warning: reference lookup resolution differs between lookup implementations:  [begin] => new: element: [material.MaterialPointArcTween.begin] warn: true old: element: [animation.Tween.begin] warn: true
    from material.MaterialPointArcTween: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:32:7)
  warning: reference lookup resolution differs between lookup implementations:  [end] => new: element: [material.MaterialPointArcTween.end] warn: true old: element: [animation.Tween.end] warn: true
    from material.MaterialPointArcTween: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:32:7)
  warning: reference lookup resolution differs between lookup implementations:  [begin] => new: element: [material.MaterialRectCenterArcTween.begin] warn: true old: element: [animation.Tween.begin] warn: true
    from material.MaterialRectCenterArcTween: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:350:7)
  warning: reference lookup resolution differs between lookup implementations:  [end] => new: element: [material.MaterialRectCenterArcTween.end] warn: true old: element: [animation.Tween.end] warn: true
    from material.MaterialRectCenterArcTween: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:350:7)
  warning: reference lookup resolution differs between lookup implementations:  [Gradient] => new: element: [dart:ui.Gradient] warn: true old: element: [painting.Gradient] warn: true
    from material.Shader: (file:///Users/jcollins/dart/flutter/bin/cache/pkg/sky_engine/lib/ui/painting.dart:3410:7)
  warning: reference lookup resolution differs between lookup implementations:  [TextStyle.height] => new: element: [dart:ui.TextStyle.TextStyle.height] warn: true old: element: [painting.TextStyle.height] warn: true
    from material.TextHeightBehavior: (file:///Users/jcollins/dart/flutter/bin/cache/pkg/sky_engine/lib/ui/text.dart:1639:7)
  warning: reference lookup resolution differs between lookup implementations:  [Image] => new: element: [dart:ui.Image] warn: true old: element: [widgets.Image] warn: true
    from material.debugCaptureShaderWarmUpImage: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/painting/debug.dart:222:27)
    from documentation for symbol debug.debugCaptureShaderWarmUpImage: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/painting/debug.dart:222:27)
  warning: reference lookup resolution differs between lookup implementations:  [Image] => new: element: [dart:ui.Image] warn: true old: element: [widgets.Image] warn: true
    from material.debugOnPaintImage: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/painting/debug.dart:139:21)
    from documentation for symbol debug.debugOnPaintImage: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/painting/debug.dart:139:21)
  warning: reference lookup resolution differs between lookup implementations:  [Image] => new: element: [dart:ui.Image] warn: true old: element: [widgets.Image] warn: true
    from material.PaintImageCallback: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/painting/debug.dart:45:9)
  warning: reference lookup resolution differs between lookup implementations:  [begin] => new: element: [material.MaterialPointArcTween.begin] warn: true old: element: [animation.Tween.begin] warn: true
    from material.MaterialPointArcTween.beginAngle: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:119:15)
    from documentation for symbol material.MaterialPointArcTween.beginAngle: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:119:15)
  warning: reference lookup resolution differs between lookup implementations:  [end] => new: element: [material.MaterialPointArcTween.end] warn: true old: element: [animation.Tween.end] warn: true
    from material.MaterialPointArcTween.beginAngle: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:119:15)
    from documentation for symbol material.MaterialPointArcTween.beginAngle: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:119:15)
  warning: reference lookup resolution differs between lookup implementations:  [begin] => new: element: [material.MaterialPointArcTween.begin] warn: true old: element: [animation.Tween.begin] warn: true
    from material.MaterialPointArcTween.center: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:94:15)
    from documentation for symbol material.MaterialPointArcTween.center: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:94:15)
  warning: reference lookup resolution differs between lookup implementations:  [end] => new: element: [material.MaterialPointArcTween.end] warn: true old: element: [animation.Tween.end] warn: true
    from material.MaterialPointArcTween.center: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:94:15)
    from documentation for symbol material.MaterialPointArcTween.center: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:94:15)
  warning: reference lookup resolution differs between lookup implementations:  [begin] => new: element: [material.MaterialPointArcTween.begin] warn: true old: element: [animation.Tween.begin] warn: true
    from material.MaterialPointArcTween.endAngle: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:133:15)
    from documentation for symbol material.MaterialPointArcTween.endAngle: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:133:15)
  warning: reference lookup resolution differs between lookup implementations:  [end] => new: element: [material.MaterialPointArcTween.end] warn: true old: element: [animation.Tween.end] warn: true
    from material.MaterialPointArcTween.endAngle: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:133:15)
    from documentation for symbol material.MaterialPointArcTween.endAngle: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:133:15)
  warning: reference lookup resolution differs between lookup implementations:  [begin] => new: element: [material.MaterialPointArcTween.begin] warn: true old: element: [animation.Tween.begin] warn: true
    from material.MaterialPointArcTween.radius: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:105:15)
    from documentation for symbol material.MaterialPointArcTween.radius: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:105:15)
  warning: reference lookup resolution differs between lookup implementations:  [end] => new: element: [material.MaterialPointArcTween.end] warn: true old: element: [animation.Tween.end] warn: true
    from material.MaterialPointArcTween.radius: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:105:15)
    from documentation for symbol material.MaterialPointArcTween.radius: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:105:15)
  warning: reference lookup resolution differs between lookup implementations:  [begin] => new: element: [material.MaterialPointArcTween.begin] warn: true old: element: [animation.Tween.begin] warn: true
    from material.MaterialPointArcTween.lerp: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:159:10)
    from documentation for symbol tween.Tween.lerp: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/animation/tween.dart:256:5)
  warning: reference lookup resolution differs between lookup implementations:  [end] => new: element: [material.MaterialPointArcTween.end] warn: true old: element: [animation.Tween.end] warn: true
    from material.MaterialPointArcTween.lerp: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:159:10)
    from documentation for symbol tween.Tween.lerp: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/animation/tween.dart:256:5)
  warning: reference lookup resolution differs between lookup implementations:  [begin] => new: element: [material.MaterialRectArcTween.begin] warn: true old: element: [animation.Tween.begin] warn: true
    from material.MaterialRectArcTween.beginArc: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:281:30)
    from documentation for symbol material.MaterialRectArcTween.beginArc: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:281:30)
  warning: reference lookup resolution differs between lookup implementations:  [end] => new: element: [material.MaterialRectArcTween.end] warn: true old: element: [animation.Tween.end] warn: true
    from material.MaterialRectArcTween.beginArc: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:281:30)
    from documentation for symbol material.MaterialRectArcTween.beginArc: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:281:30)
  warning: reference lookup resolution differs between lookup implementations:  [begin] => new: element: [material.MaterialRectArcTween.begin] warn: true old: element: [animation.Tween.begin] warn: true
    from material.MaterialRectArcTween.endArc: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:292:30)
    from documentation for symbol material.MaterialRectArcTween.endArc: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:292:30)
  warning: reference lookup resolution differs between lookup implementations:  [end] => new: element: [material.MaterialRectArcTween.end] warn: true old: element: [animation.Tween.end] warn: true
    from material.MaterialRectArcTween.endArc: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:292:30)
    from documentation for symbol material.MaterialRectArcTween.endArc: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:292:30)
  warning: reference lookup resolution differs between lookup implementations:  [begin] => new: element: [material.MaterialRectCenterArcTween.begin] warn: true old: element: [animation.Tween.begin] warn: true
    from material.MaterialRectCenterArcTween.centerArc: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:375:30)
    from documentation for symbol material.MaterialRectCenterArcTween.centerArc: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:375:30)
  warning: reference lookup resolution differs between lookup implementations:  [end] => new: element: [material.MaterialRectCenterArcTween.end] warn: true old: element: [animation.Tween.end] warn: true
    from material.MaterialRectCenterArcTween.centerArc: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:375:30)
    from documentation for symbol material.MaterialRectCenterArcTween.centerArc: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/material/arc.dart:375:30)
Generating docs for library foundation from package:flutter/foundation.dart...
Generating docs for library widgets from package:flutter/widgets.dart...
  warning: reference lookup resolution differs between lookup implementations:  [_state] => new: element: [widgets.DisposableBuildContext._state] warn: true old: element: [disposable_build_context.DisposableBuildContext._state] warn: true
    from widgets.DisposableBuildContext.context: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/widgets/disposable_build_context.dart:41:21)
    from documentation for symbol widgets.DisposableBuildContext.context: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/widgets/disposable_build_context.dart:41:21)
Generating docs for library gestures from package:flutter/gestures.dart...
Generating docs for library painting from package:flutter/painting.dart...
  warning: reference lookup resolution differs between lookup implementations:  [Image] => new: element: [dart:ui.Image] warn: true old: element: [widgets.Image] warn: true
    from painting.ShaderWarmUpImageCallback: (file:///Users/jcollins/dart/flutter/packages/flutter/lib/src/painting/debug.dart:211:9)
Generating docs for library physics from package:flutter/physics.dart...
Generating docs for library cupertino from package:flutter/cupertino.dart...
Generating docs for library semantics from package:flutter/semantics.dart...
Generating docs for library rendering from package:flutter/rendering.dart...
Generating docs for library scheduler from package:flutter/scheduler.dart...
Generating docs for library animation from package:flutter/animation.dart...
Generating docs for library services from package:flutter/services.dart...
Generating docs for library dart:ui from dart:ui...
Generating docs for library dart:developer from dart:developer...
Generating docs for library dart:collection from dart:collection...
Generating docs for library dart:core from dart:core...
Generating docs for library dart:isolate from dart:isolate...
Generating docs for library dart:js from dart:js...
Generating docs for library dart:async from dart:async...
Generating docs for library dart:io from dart:io...
Generating docs for library dart:html from dart:html...
Generating docs for library dart:math from dart:math...
Generating docs for library dart:js_util from dart:js_util...
Generating docs for library dart:ffi from dart:ffi...
Generating docs for library dart:typed_data from dart:typed_data...
Generating docs for library dart:convert from dart:convert...
Generating docs for library iOS from package:platform_integration/ios.dart...
Generating docs for library Android from package:platform_integration/android.dart...
Generating docs for library flutter_test from package:flutter_test/flutter_test.dart...
  warning: reference lookup resolution differs between lookup implementations:  [setMockMessageHandler] => new: element: [flutter_test.TestBasicMessageChannelExtension.setMockMessageHandler] warn: true old: element: [deprecated.TestBasicMessageChannelExtension.setMockMessageHandler] warn: true
    from flutter_test.TestBasicMessageChannelExtension: (file:///Users/jcollins/dart/flutter/packages/flutter_test/lib/src/deprecated.dart:53:11)
  warning: reference lookup resolution differs between lookup implementations:  [checkMockMessageHandler] => new: element: [flutter_test.TestBasicMessageChannelExtension.checkMockMessageHandler] warn: true old: element: [deprecated.TestBasicMessageChannelExtension.checkMockMessageHandler] warn: true
    from flutter_test.TestBasicMessageChannelExtension: (file:///Users/jcollins/dart/flutter/packages/flutter_test/lib/src/deprecated.dart:53:11)
  warning: reference lookup resolution differs between lookup implementations:  [setMockMessageHandler] => new: element: [flutter_test.TestBinaryMessengerExtension.setMockMessageHandler] warn: true old: element: [deprecated.TestBinaryMessengerExtension.setMockMessageHandler] warn: true
    from flutter_test.TestBinaryMessengerExtension: (file:///Users/jcollins/dart/flutter/packages/flutter_test/lib/src/deprecated.dart:21:11)
  warning: reference lookup resolution differs between lookup implementations:  [checkMockMessageHandler] => new: element: [flutter_test.TestBinaryMessengerExtension.checkMockMessageHandler] warn: true old: element: [deprecated.TestBinaryMessengerExtension.checkMockMessageHandler] warn: true
    from flutter_test.TestBinaryMessengerExtension: (file:///Users/jcollins/dart/flutter/packages/flutter_test/lib/src/deprecated.dart:21:11)
  warning: reference lookup resolution differs between lookup implementations:  [setMockMethodCallHandler] => new: element: [flutter_test.TestMethodChannelExtension.setMockMethodCallHandler] warn: true old: element: [deprecated.TestMethodChannelExtension.setMockMethodCallHandler] warn: true
    from flutter_test.TestMethodChannelExtension: (file:///Users/jcollins/dart/flutter/packages/flutter_test/lib/src/deprecated.dart:86:11)
  warning: reference lookup resolution differs between lookup implementations:  [checkMockMethodCallHandler] => new: element: [flutter_test.TestMethodChannelExtension.checkMockMethodCallHandler] warn: true old: element: [deprecated.TestMethodChannelExtension.checkMockMethodCallHandler] warn: true
    from flutter_test.TestMethodChannelExtension: (file:///Users/jcollins/dart/flutter/packages/flutter_test/lib/src/deprecated.dart:86:11)
  warning: reference lookup resolution differs between lookup implementations:  [expectLater] => new: element: [expect.expectLater] warn: true old: element: [flutter_test.expectLater] warn: true
    from flutter_test.matchesGoldenFile: (file:///Users/jcollins/dart/flutter/packages/flutter_test/lib/src/matchers.dart:366:14)
  warning: reference lookup resolution differs between lookup implementations:  [expectLater] => new: element: [expect.expectLater] warn: true old: element: [flutter_test.expectLater] warn: true
    from flutter_test.matchesReferenceImage: (file:///Users/jcollins/dart/flutter/packages/flutter_test/lib/src/matchers.dart:407:14)
  warning: reference lookup resolution differs between lookup implementations:  [expect] => new: element: [expect.expect] warn: true old: element: [flutter_test.expect] warn: true
    from flutter_test.ErrorFormatter: (file:///Users/jcollins/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.1/lib/src/expect/expect.dart:14:9)
  warning: reference lookup resolution differs between lookup implementations:  [Navigator] => new: element: [dart:html.Navigator] warn: true old: element: [widgets.Navigator] warn: true
    from flutter_test.TestWindow.defaultRouteName: (file:///Users/jcollins/dart/flutter/packages/flutter_test/lib/src/window.dart:287:14)
    from documentation for symbol dart-ui.SingletonFlutterWindow.defaultRouteName: (file:///Users/jcollins/dart/flutter/bin/cache/pkg/sky_engine/lib/ui/window.dart:596:14)
Generating docs for library flutter_driver from package:flutter_driver/flutter_driver.dart...
Generating docs for library flutter_driver_extension from package:flutter_driver/driver_extension.dart...
Generating docs for library flutter_localizations from package:flutter_localizations/flutter_localizations.dart...
Generating docs for library flutter_web_plugins from package:flutter_web_plugins/flutter_web_plugins.dart...
Generating docs for library archive_io from package:archive/archive_io.dart...
Generating docs for library archive from package:archive/archive.dart...
Generating docs for library async from package:async/async.dart...
Generating docs for library boolean_selector from package:boolean_selector/boolean_selector.dart...
Generating docs for library characters from package:characters/characters.dart...
Generating docs for library charcode.ascii.dollar_lowercase from package:charcode/ascii.dart...
Generating docs for library charcode.htmlentity.dollar_lowercase from package:charcode/html_entity.dart...
Generating docs for library charcode from package:charcode/charcode.dart...
Generating docs for library clock from package:clock/clock.dart...
Generating docs for library collection from package:collection/collection.dart...
Generating docs for library dart.pkg.collection.iterable_zip from package:collection/iterable_zip.dart...
Generating docs for library dart.pkg.collection.priority_queue from package:collection/priority_queue.dart...
Generating docs for library dart.pkg.collection.equality from package:collection/equality.dart...
Generating docs for library dart.pkg.collection.algorithms from package:collection/algorithms.dart...
Generating docs for library dart.pkg.collection.wrappers from package:collection/wrappers.dart...
Generating docs for library crypto from package:crypto/crypto.dart...
Generating docs for library fake_async from package:fake_async/fake_async.dart...
Generating docs for library local from package:file/local.dart...
Generating docs for library chroot from package:file/chroot.dart...
Generating docs for library memory from package:file/memory.dart...
Generating docs for library file from package:file/file.dart...
Generating docs for library integration_test_driver from package:integration_test/integration_test_driver.dart...
Generating docs for library integration_test_driver_extended from package:integration_test/integration_test_driver_extended.dart...
Generating docs for library _extension_web from package:integration_test/_extension_web.dart...
Generating docs for library _extension_io from package:integration_test/_extension_io.dart...
Generating docs for library _callback_io from package:integration_test/_callback_io.dart...
Generating docs for library common from package:integration_test/common.dart...
Generating docs for library integration_test from package:integration_test/integration_test.dart...
Generating docs for library _callback_web from package:integration_test/_callback_web.dart...
Generating docs for library intl from package:intl/intl.dart...
Generating docs for library date_symbol_data_http_request from package:intl/date_symbol_data_http_request.dart...
Generating docs for library message_lookup_by_library from package:intl/message_lookup_by_library.dart...
Generating docs for library message_format from package:intl/message_format.dart...
Generating docs for library intl_standalone from package:intl/intl_standalone.dart...
Generating docs for library date_symbol_data_custom from package:intl/date_symbol_data_custom.dart...
Generating docs for library date_symbol_data_local from package:intl/date_symbol_data_local.dart...
Generating docs for library date_symbols from package:intl/date_symbols.dart...
Generating docs for library locale from package:intl/locale.dart...
Generating docs for library number_symbol_data from package:intl/number_symbols_data.dart...
Generating docs for library date_time_patterns from package:intl/date_time_patterns.dart...
Generating docs for library date_symbol_data_file from package:intl/date_symbol_data_file.dart...
Generating docs for library number_symbols from package:intl/number_symbols.dart...
Generating docs for library matcher from package:matcher/matcher.dart...
Generating docs for library meta from package:meta/meta.dart...
Generating docs for library meta_dart2js from package:meta/dart2js.dart...
Generating docs for library meta_meta from package:meta/meta_meta.dart...
Generating docs for library path from package:path/path.dart...
Generating docs for library platform from package:platform/platform.dart...
Generating docs for library process from package:process/process.dart...
Generating docs for library source_span from package:source_span/source_span.dart...
Generating docs for library stack_trace from package:stack_trace/stack_trace.dart...
Generating docs for library stream_channel from package:stream_channel/stream_channel.dart...
Generating docs for library isolate_channel from package:stream_channel/isolate_channel.dart...
Generating docs for library string_scanner from package:string_scanner/string_scanner.dart...
Generating docs for library sync.http from package:sync_http/sync_http.dart...
Generating docs for library term_glyph from package:term_glyph/term_glyph.dart...
Generating docs for library test_api.backend from package:test_api/backend.dart...
Generating docs for library hooks from package:test_api/hooks.dart...
Generating docs for library test_api from package:test_api/test_api.dart...
Generating docs for library expect from package:test_api/expect.dart...
Generating docs for library test_api.fake from package:test_api/fake.dart...
Generating docs for library test_api.scaffolding from package:test_api/scaffolding.dart...
Generating docs for library typed_data.typed_buffers from package:typed_data/typed_buffers.dart...
Generating docs for library typed_data from package:typed_data/typed_data.dart...
Generating docs for library vector_math_lists from package:vector_math/vector_math_lists.dart...
Generating docs for library hash from package:vector_math/hash.dart...
Generating docs for library vector_math_geometry from package:vector_math/vector_math_geometry.dart...
Generating docs for library vector_math from package:vector_math/vector_math.dart...
Generating docs for library vector_math_operations from package:vector_math/vector_math_operations.dart...
Generating docs for library vector_math_64 from package:vector_math/vector_math_64.dart...
Generating docs for library vm_service_io from package:vm_service/vm_service_io.dart...
Generating docs for library utils from package:vm_service/utils.dart...
Generating docs for library vm_service from package:vm_service/vm_service.dart...
Generating docs for library webdriver.io from package:webdriver/async_io.dart...
Generating docs for library webdriver.core from package:webdriver/core.dart...
Generating docs for library webdriver.sync_io from package:webdriver/sync_io.dart...
Generating docs for library webdriver.io from package:webdriver/io.dart...
Generating docs for library webdriver.support.async from package:webdriver/support/async.dart...
Generating docs for library webdriver.support.stdio_stepper from package:webdriver/support/stdio_stepper.dart...
Generating docs for library webdriver.support.firefox_profile from package:webdriver/support/firefox_profile.dart...
Generating docs for library webdriver.core from package:webdriver/async_core.dart...
Generating docs for library webdriver.sync_core from package:webdriver/sync_core.dart...
Generating docs for library webdriver.html from package:webdriver/async_html.dart...
Found 37 warnings and 0 errors.
Documented 116 public libraries in 206.7 seconds
Reference Counts:
total references: 184618
resolved references:  184351 (99.85537704882515%)
resolved references with new lookup:  145046 (78.56547032250376%)
resolved references with old lookup:  140228 (75.95575729343834%)
resolved references with equivalent links:  143273 (77.60510892762352%)

Success! Docs generated into /Users/jcollins/dart/flutter/dev/docs/doc/api

Process finished with exit code 0

@flutter-dashboard flutter-dashboard bot added a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) a: tests "flutter test", flutter_test, or one of our tests f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Jun 28, 2021
@google-cla google-cla bot added the cla: yes label Jun 28, 2021
@@ -3307,8 +3308,9 @@ class SemanticsConfiguration {
/// This is a request to decrease the value represented by the widget. For
/// example, this action might be recognized by a slider control.
///
/// If a [value] is set, [decreasedValue] must also be provided and
/// [onDecrease] must ensure that [value] will be set to [decreasedValue].
/// If [this.value] is set, [decreasedValue] must also be provided and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will be printed in the HTML docs if we use [this.value]? Will it literally say this.value, or will it just say value? Because just considering the output prose, it's pretty clear that "value" refers to "this.value" to the reader, so it's kind of redundant to say it that way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good idea, filed as dart-lang/dartdoc#2713. It will currently display the this.

/// A Flutter Driver finder that finds widgets by [text] inside a [Text] or
/// [EditableText] widget.
/// A Flutter Driver finder that finds widgets by [text] inside a
/// [widgets.Text] or [widgets.EditableText] widget.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will [widgets.Text] print widgets.Text, or just Text?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will display the library, but I think dart-lang/dartdoc#2713 is a good idea to stop doing that.

More broadly, we could consider having some sort of library or package specific specifier indicating how to resolve ambiguous links. I'm less sure what the right solution there is, though.

@jcollins-g jcollins-g changed the title Eliminate some regressions that will be introduced by the new lookup code Eliminate some regressions introduced by the new lookup code Jun 29, 2021
gspencergoog pushed a commit that referenced this pull request Jun 29, 2021
This includes some major internal changes that should improve performance (the AOT template compiler) and the new lookup code. The big changes noticeable for Flutter will be resolution of field formal parameters, extension method support, and more consistent disambiguation in comment reference lookups.

While a vast net improvement, this PR will change a few links to point to the wrong place. #85484 will address that after this lands, as there was no good way to specify what the user wanted unambiguously before dartdoc 1.0.0 in a few cases. That PR includes more details on the introduced regressions and link changes.
@jcollins-g jcollins-g marked this pull request as ready for review June 29, 2021 21:30
@jcollins-g jcollins-g requested a review from Piinks as a code owner June 29, 2021 21:30
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@Hixie
Copy link
Contributor

Hixie commented Jun 29, 2021

test-exempt: only affects comments

@jcollins-g jcollins-g requested a review from gspencergoog June 30, 2021 16:39
@Piinks Piinks added d: api docs Issues with https://api.flutter.dev/ documentation labels Jul 1, 2021
Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flutter_LGTM

@fluttergithubbot fluttergithubbot merged commit 52e2ca3 into flutter:master Jul 1, 2021
@jcollins-g jcollins-g deleted the doc-changes-for-new-lookup+resolution-adjustment branch July 1, 2021 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) a: tests "flutter test", flutter_test, or one of our tests d: api docs Issues with https://api.flutter.dev/ f: cupertino flutter/packages/flutter/cupertino repository f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants