Commit Graph

3110 Commits

Author SHA1 Message Date
Paul Berry 12265c4e42 Hacky prototype of how to fix the seventh item from #39247
The issue is:

  lib/src/logger.html, line 107, inserted !:

  In this case the single reason detail reads "node with no info (type(2171))" with no destination.

The problem is that InstrumentationInformation.nodeInfoFor is only
considering a limited set of possible sources of nullability nodes
(the primary nodes of decorated types passed to the instrumentation
listener methods `implicitReturnType`, `implicitType`, and
`implicitTypeArguments`).  It needs to also consider decorated types
passed to `explicitTypeNullability`, `externalDecoratedType`, and
`externalDecoratedTypeParameterBound`, and it needs to walk these
decorated types recursively to discover all the nodes they point to.

Additionally, the logic in InstrumentationInformation.nodeInfoFor is
inefficient; it walks through all the implicit types in every source
file, which means that it is O(N) in the size of the code being
migrated.  Since it is called O(N) times, this is an overall runtime
complexity of O(N^2).

I've prototyped a possible fix using an expando to compute
NodeInformation for each node once at the time it's reported to
instrumentation.  This is incomplete and intended as a starting point
for discussion.  Work that still needs to be done:

- We don't produce a sensible description string for nullability nodes
  associated with AST nodes, so we present unhelpful text to the user
  like "A nullable value can't be used as the explicit type ???"; it
  would be nicer to say something like "A nullable value can't be used
  as positional argument 0 of Level.>=".  We may want to consider
  modifying the instrumentation API to make it easier to generate a
  useful string here.

- I haven't verified that the description string we produce for
  external decorated types is helpful.

- I haven't verified that the we produce a useful link for external
  decorated types.

- We should probably get rid of the data structure
  NodeInformation.explicitTypeNullability (which has similar
  inefficiencies) and change over code that was using it to use the
  new approach.

Change-Id: I2cf2fe47cd70d7e5cc6e3da309851288668e8a62
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124902
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-11-12 22:18:01 +00:00
Mike Fairhurst 942419e6ba [analysis_server] Funnel sendServerErrorNotification through logException
Change-Id: I266a8b3c404da8c9892aa6e1a49e1f1c9bdcf530
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124163
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
2019-11-12 21:45:24 +00:00
Mike Fairhurst 26cabb72c3 [analyzer] Add [SilentException] where previously not reported to users.
New errors *not* changed to silent exceptions:

https://dart-review.googlesource.com/c/sdk/+/123328/9/pkg/analyzer/lib/src/dart/sdk/sdk.dart
https://dart-review.googlesource.com/c/sdk/+/123328/9/pkg/analysis_server/lib/src/analysis_server_abstract.dart

These seem worth keeping.

Change-Id: I534b07f6cf50c5b251867b647ed6df96a9134c56
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124586
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
2019-11-12 21:37:49 +00:00
Brian Wilkerson 667f77ed60 Add an http server for the interactive preview mode
Change-Id: I727cc2b3d393b426f09a06e7b89c115864581962
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124760
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
2019-11-12 17:39:22 +00:00
Brian Wilkerson e3e0ef8548 Make explanations for unchanged types optional and disabled by default
Change-Id: I653f5ed1807cef7b444e014d8629bc8ef772f6f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124588
Reviewed-by: Mike Fairhurst <mfairhurst@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-11-08 20:20:48 +00:00
Konstantin Shcheglov cb0e5c5a3e Set operator== parameter type to dynamic if directly from Object.
See https://github.com/dart-lang/language/issues/569

See https://github.com/dart-lang/sdk/issues/38339

Change-Id: I8d42135985aa4d55ffcc65cdf849572736cb9198
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124284
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-11-07 20:07:29 +00:00
Ari Aye 5bae0f23cf Increase completion model token lookback to 100
In moving to a pointer mixture network from a traditional language
model I had initially decreased model lookback to 50 tokens to
facilitate faster model training iteration. Now that we've landed
on a configuration that works well, increasing lookback to 100 tokens
improves accuracy further.

I also went ahead and followed a recommendation from Jacob to
oversample Flutter sources since they're greatly underrrepresented
in our training corpus compared to our users' code at prediction time.

Change-Id: I885ddb606270394198f3aca2554e381f4465bdae
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124083
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Ari Aye <ariaye@google.com>
2019-11-04 18:00:16 +00:00
Mike Fairhurst 924ec34e01 Remove analysis logger, replace with calls to InstrumentationService
Change-Id: Ifddd58b731aa0af8f76a91261757997dc52a9fc7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123328
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-10-31 21:26:44 +00:00
Konstantin Shcheglov 84a8a2db33 Issue 39192. Fix codeLength / codeOffset, store it into the cached data.
R=brianwilkerson@google.com

Bug: https://github.com/dart-lang/sdk/issues/39192
Change-Id: I17fe30839dd8a51c047103e028eea145ced1ec87
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123689
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-10-31 20:03:58 +00:00
pq fde7cbf293 support type params in stateful widget conversion
Open question:

Should we generate:

`class _MyWidgetState<T> extends State<MyWidget<T>>` ?

Fixes:  https://github.com/flutter/flutter-intellij/issues/4033


Change-Id: Ieffbb56d84a645f84661b2160eda14957c1539f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123507
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-10-30 23:13:55 +00:00
Brian Wilkerson c0163f15a5 Add an optional port to the dartfix request to allow changes to be previewed
Change-Id: I6f7a8f880883195fd6558f5533f82da416c777bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/123460
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-10-29 17:16:34 +00:00
Mike Fairhurst a3ca5c3c54 [analysis_server] remove session id from connected params
Change-Id: I313d3f0b0c5df2148a3cbceddd4db54fecdc74a6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122082
Auto-Submit: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
2019-10-25 23:14:53 +00:00
Ari Aye 5edeee8907 Transform hexadecimal numbers coming into model to <num> like we do for decimal numbers
Not hugely important since hexadecimal usage is very low in Dart in general, but
this is consistent with the transformation we apply at training time.

Change-Id: I45875fd46cd172374acba14251a8d86264339c47
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122920
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Ari Aye <ariaye@google.com>
2019-10-24 21:45:07 +00:00
Ari Aye f2e2b3257b Fix code completion performance regression introduced by pointer mixture network
Latency had grown to over 100ms and after this change we're consistently
under 100ms https://i.imgur.com/CCo0iQa.png. In addition, I was able to reduce
the number of isolates to two from four, lowering the memory footprint of model.

The biggest change is that we're moving from taking a map of size |V| = 100k
like {"foo" => 0.2, "bar" => 0.3} and sorting it to find the top n completions
to simply filtering / selecting lexemes with probability greater than a min
threshold (set for now to be a percent of a percent, 0.0001).

Change-Id: I721e6de343add6b8ebcf3ef4fad20f136302808e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122842
Commit-Queue: Ari Aye <ariaye@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-10-24 20:31:52 +00:00
Sam Rawlins bc5fb05def NNBD i13n: Highlight non-nullable types with upstream triggered edges
Change-Id: I10fc2f731381ab60f0f724b2d463533895348500
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122405
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2019-10-22 20:06:06 +00:00
Konstantin Shcheglov cb9eefca4f Issue 142793249. Never remove directive with unresolved URIs.
Bug: https://buganizer.corp.google.com/issues/142793249
Change-Id: I5ced1bcf4cb5d634f8e11555bb464f10c4bac68c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121926
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-10-18 17:06:50 +00:00
Sam Rawlins 8a92058226 Support omitted name args; fix as-expressions, refactor tests
Fixes #38919

Change-Id: Ia302e7d56aa20ebd1d9b7afa8ceda249ba31015b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122021
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2019-10-17 20:19:46 +00:00
Konstantin Shcheglov 1c2dc77f64 Issue 38947. Support for then/else widgets in ConditionalExpression.
Bug: https://github.com/dart-lang/sdk/issues/38947
Change-Id: Iec498eb9368d1090e8ba9e2221d00205df1ac746
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121925
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-10-17 17:49:16 +00:00
Sam Rawlins 680a880c10 Move string utils from services/correction to utilities; more generally used
Change-Id: Idb81b54fe380e6af00af5ddee3977705ff58c741
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121912
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2019-10-17 15:04:00 +00:00
Sam Rawlins 8e7fa2a35b NNBD i13n: Proper messages for nullable values in collection literals
Change-Id: I5eccfeb7d88f3f4adb57f3734f170dce82c1fd2d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121906
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2019-10-17 03:41:11 +00:00
Sam Rawlins 3e992eb8fe NNBD i13n: Add line numbers to a few messages
fixes #38920

Change-Id: I6656a2e47901cbe66ccbd040d3d2fe6913f7031a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121867
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2019-10-16 22:52:01 +00:00
Sam Rawlins f1657ab934 NNBD i13n: Handle returned values in deeper expressions
Change-Id: I109ce111f0e0eb9c2b172c9f86aa4e3cbda482c0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121769
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2019-10-16 00:41:22 +00:00
Sam Rawlins 2e6695f6f9 NNBD i13n: Add line numbers
Change-Id: Ifd81b3e99a3e8c0a1b1a0b6dbe29ad545f6e50f3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121779
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2019-10-15 23:48:32 +00:00
Sam Rawlins cfe25c7e95 NNBD i13n: Sort navigation links
Change-Id: I32d21b26f3c813907308e9768a01a4cb9d45d1fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121768
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2019-10-15 22:37:08 +00:00
Ari Aye e642af52a5 Fix behavior of ML query construction
This is one of the rare cases where the comment was correct
and the code was wrong. If we've typed class FooB^ then the
query should be ['class'] whereas typing void main(^ should
result in the query ['void', 'main', '('].

Change-Id: I5f53fa70c1ddfd1803e5697cdaaaf7d3b73f5ae2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121778
Reviewed-by: Jaime Wren <jwren@google.com>
Commit-Queue: Ari Aye <ariaye@google.com>
2019-10-15 22:33:25 +00:00
Konstantin Shcheglov c5498891fc Don't suggest class member completions for ExtensionOverride targets.
Change-Id: Ic3e2ef31cc42ccf4d16688050b894a50e5a8f51e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121765
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-10-15 20:58:29 +00:00
pq 5300ce4a2d ADD_DIAGNOSTIC_PROPERTY_REFERENCE assist
Change-Id: I0acd3254eb309e95cce211612d6c1a11db5789bd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121800
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2019-10-15 19:54:59 +00:00
pq 3e497dd00a diagnostic function field support
See: https://github.com/dart-lang/sdk/issues/38633

Follow-up from: https://github.com/flutter/flutter/pull/42447#discussion_r335025065


Change-Id: Idd3cbc4b3419e792d6b81e02bd556b35faaef8c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121770
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-10-15 19:06:19 +00:00
Sam Rawlins 19e2f03421 NNBD i13n: Fix non-target reasons and add failing test for method return inheritance
Change-Id: I3cee0c8972f1657abac89b1d9251ccc5e05d070f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121767
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2019-10-15 17:56:08 +00:00
Konstantin Shcheglov abecefd1ac Forward compatible portion of CL that does not set types for identifiers that are not expressions.
The full CL:
https://dart-review.googlesource.com/c/sdk/+/119761

Change-Id: I9c909a4e1eec5d05f5718849ea45da79f01c5291
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121643
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-10-15 17:29:07 +00:00
Ari Aye 70a7ef3f58 Implement pointer mixture network
Here we can see the mixture network is assigning probability mass
to a new, project-specific name by reference https://i.imgur.com/6Zbs2qf.png.

I also took this opportunity to decrease model size targeting 100M, in line
with our original size goals.

My initial strategy was to implement a separate pointer network
in https://dart-review.googlesource.com/c/sdk/+/117005 but having
a single network that can assign probability mass across local
references and vocabulary lexemes is better since

1) only one network and model file
2) no need to coalesce predictions from multiple models

Change-Id: I23cfc2ece61ce30bb69785149a5a6cf1604af18d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121461
Commit-Queue: Ari Aye <ariaye@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-10-14 18:25:56 +00:00
Konstantin Shcheglov dc0db066e6 Remove ChangeSet from engine.dart
Change-Id: I289c5edd0c3e52a873013f8c52d8202bf29cf3be
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121560
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2019-10-14 17:45:56 +00:00
Brian Wilkerson b08d7756bd Prevent NPE in code completion when completing inside unnamed extension (issue 38798)
Change-Id: Ia7041b236bd3f64662b5e0167de7b7343cfcf68a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121147
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-10-10 21:32:22 +00:00
pq b8943f7056 improve codegen for unscoped and enum diagnostic properties
See: https://github.com/dart-lang/sdk/issues/38633

Change-Id: Ie10dcde92e0e054271fe0e965ed810ac3834120b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121160
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-10-10 20:57:42 +00:00
Sam Rawlins 7b9a26ee6f NNBD i13n: ctor nav targets and details w/o targets
* NavigationTargets which are ConstructorDeclarations should point to the
  constructor's name or its return type for unnamed constructors.
* Details which don't included useful targets, like "this parameter is
  optional and has no default value", should just have detail descriptions,
  but not be links.

Change-Id: I3562bb708c40aa1fcf1de5df5519f1f4037517cb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120761
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-10-10 05:30:07 +00:00
Ari Aye 4227933c3a Disallow model-only suggestions if static analysis suggests a named argument
Bug: https://github.com/dart-lang/sdk/issues/38404
Change-Id: I72b505cb5bee1f463c0ec6b0a1e9e60c5b7ea518
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/117767
Commit-Queue: Ari Aye <ariaye@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-10-09 18:13:48 +00:00
Brian Wilkerson 9ababcf650 Improve message for overriding methods
Change-Id: I6fed64a852f94f2323972f511be4015a22fb4ebd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120746
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-10-09 00:12:50 +00:00
Sam Rawlins 8513b169da NNBD i13n: Fix some navigation targets and text
Change-Id: Iba6befb86453353823c1702405057f83fff64456
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120723
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-10-08 20:54:08 +00:00
Konstantin Shcheglov a389015083 Rewrite MethodInvocation to FunctionExpressionInvocation when the target is not a method.
Failing tests for DDC are tracked in the following issue:
https://github.com/dart-lang/sdk/issues/38749

Change-Id: I96e0fe9bc87509b99ba982be4572d4ad4f133cca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120342
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-10-08 00:22:39 +00:00
Devon Carew 3e3406d20e [sdk] remove the dart:_chrome package
Change-Id: I5b62984fb7d4cd5dd9ed6f4a02ed91e08ed71e8e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120005
Reviewed-by: Vijay Menon <vsm@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2019-10-06 23:50:09 +00:00
pq 69b612beec diagnostic ref fix for fall-through types
See: https://github.com/dart-lang/sdk/issues/38633

Change-Id: I5fd1328a5ad234e6216631007ecbcc459bfa36e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120340
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-10-04 23:06:12 +00:00
Devon Carew 73d880b949 [analyzer] add a quick fix for the prefer_relative_imports lint
Change-Id: Ic69ebe799f425fd09e002b65d66a4382f5f96ead
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120160
Commit-Queue: Devon Carew <devoncarew@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
2019-10-04 20:13:07 +00:00
Brian Wilkerson 9271895f56 Remove an accidentally committed soloTest annotation (TBR)
Change-Id: If3791de34f0f063a50570b8713c9340821d901d8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120220
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-10-04 19:24:06 +00:00
Mike Fairhurst c3053f0eb2 [nnbd_migration] Restrict downcasts; make all type parameters nullable.
This makes trial_migration.dart report two new exceptions:

_EdgeBuilder&GeneralizingAstVisitor&_AssignmentChecker._checkAssignment (package:nnbd_migration/src/edge_builder.dart:2169:14) (x30)
_EdgeBuilder&GeneralizingAstVisitor&_AssignmentChecker._checkDowncast (package:nnbd_migration/src/edge_builder.dart:2351:14) (x7)

30 & 7 is not great but not terrible. These also do not break path, logging, or
charcode.

Failing tests show why we cannot correctly cover remaining cases without
a larger CL.

Change-Id: I6e510db147f60cc8ee047d45e4ce2d95d26cccc4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119533
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
2019-10-04 18:31:48 +00:00
pq 80f683417b when fixing missing diagnostic refs, add debugFillProperties method if undefined
See: https://github.com/dart-lang/sdk/issues/38633

Change-Id: If82922a38243e144ad2ec0038d8642c17f458df8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120140
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-10-04 17:34:15 +00:00
Brian Wilkerson 42a1ba7e14 Improve the messages from the migration tooling
Change-Id: I8ed53936cf56f154040d53e88190a114a6133555
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/120006
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-10-04 12:43:45 +00:00
pq 0a63bd4b0a diagnostic fix support for colors, iterables, lists, matrices
See: https://github.com/dart-lang/sdk/issues/38633

Change-Id: I8d7baa32bcea22f2c162bd9d77c7dd0b95b308de
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119901
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2019-10-03 20:05:33 +00:00
pq 512d763b9d diagnostic property types support
Adds support for:

* ints
* doubles
* enums
* Strings

Up next: Colors, Iterables, Transforms and a catch-all.

Also note the TODO to change how types are being written (will be needed for Iterables).

See: https://github.com/dart-lang/sdk/issues/38633

Change-Id: I9d545ce9e090059ae330f9ae5dadf8e7d4b373c7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119725
Commit-Queue: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2019-10-03 02:12:39 +00:00
Brian Wilkerson f2816eeb0d Add a test, a TODO, and a minor display enhancement
Change-Id: Iee53c429839b36426677916f13878b1a3313bef3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119767
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-10-02 22:23:41 +00:00
Brian Wilkerson bb342ec83f Fix a test breaking the windows bot
Change-Id: I8192597a93ceb043585da0dc51f194e99bc2422c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119701
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2019-10-02 20:01:40 +00:00