Commit graph

74700 commits

Author SHA1 Message Date
Danny Tuppeny 38fa4aea17 Don't use whole identifier as completion targetPrefix if it's after the cursor
Bug: https://github.com/Dart-Code/Dart-Code/issues/2672
Change-Id: I45ccc00990495ddd9fa8881d673a45bf6c4f82d3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156501
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Danny Tuppeny <danny@tuppeny.com>
2020-07-30 13:58:28 +00:00
Johnni Winther c50cbe9ed0 [cfe] Don't use type context for local function inference when type parameters mismatch
Change-Id: Ia6f697fa25ea83a7518ba63ad083b3493d35b2a2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156460
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-07-30 13:18:28 +00:00
Jens Johansen a62466934e [CFE] Allow crashing test case minimizer to use more than one line of stacktrace to find matching crash
Before this CL (and still as default) the crashing test minimizer would
operate by
1) Run and verify it crashed; record the first entry of the stacktrace
2) Delete stuff and rerun, verifying that the first entry of the new
   stacktrace matched the old one (to verify we have a smaller example
   of the same crash).

This doesn't work will with for instance assert errors though, as trying
to find a small reproduction for one assert error could result in a
small reproduction for another assert error.

This CL introduces the "--stack-matches=<n>" option, so you could for
instance add "--stack-matches=3" in an attempt to find the exact
assert error you wanted.

Change-Id: I1b523e9c3d391c63b3ffb5baa8ab673df7e051d6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156505
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2020-07-30 13:08:48 +00:00
Jens Johansen 9f79fe77fc [CFE] Don't turn flutter-frontend builder purple if there's a failing test
Change-Id: Ie3def22b66fe4d86627e3a8dc11ec887e0909a4b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156503
Reviewed-by: Karl Klose <karlklose@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2020-07-30 12:00:37 +00:00
Jonas Termansen 04f4272546 Roll benchmarks-internal 9bc9e373b3d3..1682e8c568cf
1682e8c568cf1899a6da6b5993f0506949253b22 https://dart-internal-review.googlesource.com/c/benchmarks-internal/+/2240

R=athom@google.com

Change-Id: Id2ebc0d647e0be67d23f1497f2a5a96e1af8d4ce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156500
Auto-Submit: Jonas Termansen <sortie@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
2020-07-30 11:16:07 +00:00
sgrekhov b588c5a07b [co19] LibTest/collection tests enabled
Change-Id: I345a183dd211489d9953d5819c9c371fbabb2b24
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156182
Reviewed-by: Alexander Thomas <athom@google.com>
2020-07-30 09:58:17 +00:00
Jens Johansen a40d68f291 [CFE] Report error for flutter-frontend builder if there's a crash
We've recently had the flutter-frontend be green even though the
underlying script crashed. This CL should make sure the bot had turned
red (or at least not green) in such a case.

Change-Id: I8ae4916a82604500c37d0ce4389dc71f5260c7f6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156461
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2020-07-30 08:38:40 +00:00
Konstantin Shcheglov 3cb837ab54 Remove classes from InheritanceManager when remove libraries from LinkedElementFactory.
Change-Id: I4e5e824d0aa10838d0a717cae86d01db9a609dca
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156422
Reviewed-by: Keerti Parthasarathy <keertip@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-30 07:34:02 +00:00
Mayank Patke ca743398c2 Ensure CFE provides correct setter name to instantiateInvocation.
All of the backends (dart2js, DDC, VM) were checking if the invocation
name was tagged with "set:" and appending "=" to the name if so.
Instead, we can simply have the CFE perform this logic at the callsite.

Note that the name of the setter itself is still unchanged. Backends may
still need to generate the correct name themselves when handling NSMs
via code paths other than instantiateInvocation.

Change-Id: Iae42c849d3557be3e3b77c3af6f3993347ba0b6c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156142
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Mayank Patke <fishythefish@google.com>
2020-07-30 06:21:20 +00:00
Mike Fairhurst 59600f2b46 [analyzer] Improve existing non-generative constructor errors
As opposed to the parent CL which creates a new error for cases where no
non-generative constructor is available at all, these improvements
include a bugfix to the previous error message.

The previous message was incorrect in saying 'expected {0} but factory found',
because the argument passed to '{0}' was the factory constructor that
was found, rather than any kind of expected constructor signature.
Fixed.

Also, for implicit constructors, break out the error message to
deliberately explicitly describe that this affects the implicit
constructor.

I considered making an error code for implicit super initializers as
well, (ie `class Foo extends Bar { Foo(); }`), but don't think it is
necessary/common/etc.

Change-Id: I0643ad00abbfb2848cbd2f8f1f83e7c33d4fb846
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155831
Commit-Queue: Mike Fairhurst <mfairhurst@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-30 05:12:40 +00:00
Mike Fairhurst e0164ec47e [analyzer] Fix #25874, confusing error for extending Exception.
In the case of extending Exception, the raised error is around the
configuration of the constructors. However, there is no valid
configuration of constructors to be found, and therefore, the better
user facing message is to say that the class cannot be extended as
written.

Change-Id: I5950d438877c450c44cdc914f9f20d7779a64768
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154126
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-30 05:12:40 +00:00
Devon Carew 22b05dbf7a [analyzer] fix a grammar issue for invalid_null_aware_operator_after_short_circuit
Change-Id: I7c2548999757e3f8bc314426be7564165c3d9a33
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156442
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2020-07-30 04:35:30 +00:00
Zichang Guo ca1279e7e3 Fix DartDev run command failed reading Windows path
On Windows platform, backslashes are used as path separator. (Forward
slashes are also accepted by Windows APIs for most cases) But for an Uri
backslashes will be percent-encoded in the Uri. The other problem is
that "C:\directory" when passed into Uri, the drive letter will be
misinterpreted into scheme (common schemes like "http" or "file").

Bug: https://github.com/dart-lang/sdk/issues/42874
Change-Id: I0fe287b65a5b4faeb791665d2fda9ea0a9744cc4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156363
Commit-Queue: Zichang Guo <zichangguo@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2020-07-30 02:25:10 +00:00
Ben Konyi 8dc4833e86 [ VM/ DDS ] Temporarily disable DDS for beta release
https://github.com/dart-lang/sdk/issues/42727 isn't expected to be fixed
before the next beta release. Disabling DDS temporarily until a proper
fix has been landed.

Change-Id: Ib3233e75a115caa9625f1e96d136b0f6abc5f72e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156343
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2020-07-30 01:11:51 +00:00
Sam Rawlins 1dd3fccee9 Update strict-inference to not report 'unreferenced' parameters
This is the implementation CL for
https://github.com/dart-lang/language/pull/599

Change-Id: Icb0af8542a72093a8bdd599c768d5eff46841b9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155143
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-30 00:54:00 +00:00
Sam Rawlins f23f450e11 Analyzer: Move CONST_CONSTRUCTOR_PARAM_TYPE_MISMATCH to compile-time
Many of the tests were highly redundant. Subtyping has been
consolidated, so the tests don't need to cover a dozen different ways
to subtype a class.

Change-Id: I04448790d3a74690d0edb57f15146a6c3b8f2173
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156400
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2020-07-30 00:34:29 +00:00
Brian Wilkerson 90ad9a810f Reference the design principles from the README
Change-Id: I362587bf98c18f14a2086116e50d47e58b06529c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156420
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 23:10:01 +00:00
Konstantin Shcheglov 219107cca0 Report INVALID_ASSIGNMENT on the cascade target.
https://dart-review.googlesource.com/c/sdk/+/155380 has tests that
show that it is otherwise hard to specify where the offending
expression is.

Change-Id: I8cdbc3d974148d644b75889a8afd921a2a2716cd
Bug: https://github.com/dart-lang/sdk/issues/42865
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156067
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 23:04:49 +00:00
Konstantin Shcheglov e60a0315dd Fix for crash in RemoveEmptyConstructorBody.
R=brianwilkerson@google.com

Change-Id: I0fe17e9fe96028c5286f509c3bf9ec16248f4841
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156401
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-29 22:01:59 +00:00
Brian Wilkerson 1bf8019253 A document in which to capture dartdev design principles
Change-Id: I5db4055b2fe950c09cdfe95c3f08270bf3f5df7c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156380
Reviewed-by: Jaime Wren <jwren@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 21:53:48 +00:00
Nate Bosch 9b43223afd Fix the IANA link from Encoding.getByName docs
The previous version include the closing parenthesis in the link on the
dart doc site so it won't lead to the right place when clicked.

Switch to a markdown link instead of a raw URL to avoid ambiguity and
improve readability of the rendered doc.

Do some minor rephrasing of the rest of the comment to remove noise
words, format according to effective Dart.

Change-Id: I497cfeeeff0885eb34e798c469f95dc46f4a81f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156342
Auto-Submit: Nate Bosch <nbosch@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2020-07-29 21:32:09 +00:00
Konstantin Shcheglov 0b4896ac94 Resolve invalid prefix.name TypeName(s) to dynamic.
Change-Id: If449fcb37c2a095d37d34ea7c068fa85edb112c9
Bug: https://github.com/dart-lang/sdk/issues/42877
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156341
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-29 21:08:08 +00:00
Konstantin Shcheglov 86057443c4 Issue 42837. Use legacy erasure in LUB computation in opt-out libraries.
Bug: https://github.com/dart-lang/sdk/issues/42837
Change-Id: Id61e37404d6d2e8452daed2bbd730f32a8687ea6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156320
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2020-07-29 20:06:35 +00:00
pq e12a536edb bulk fix for avoid_types_on_closure_parameters
Change-Id: Id080559bc2a18fd8ce4c8eb59412c4461d8dac39
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156340
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Phil Quitslund <pquitslund@google.com>
2020-07-29 19:45:25 +00:00
Alexander Aprelev b4a7c68989 [vm/resolve] Use Resolver instead of Lookup in while-loop.
This is another step in refactoring that should help with protecting class functions lookup with locks.

Change-Id: Icd8a4831684b5514079bd7e03a3d2358b992e729
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156300
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
2020-07-29 19:17:15 +00:00
Mark Zhou 0ef03fdc82 [dart2js] Adding null-safe semantics for static fields.
* Adds a bool `isNonNullableByDefault` field to Library entities.
* Adds a bool `usesNonNullableInitialization` to the JS emitter's StaticField.
* Emits two lazy-variable initialization functions: one for
  pre-null-safety and one for post

New issues:
* Always emits both lazy init functions - even when only one is ever used.

Fixes #42419

Change-Id: I6a76798946b13842fbb2ad566d4505bbcd9ca0d1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156063
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Mark Zhou <markzipan@google.com>
2020-07-29 18:39:25 +00:00
Nicholas Shahan b5eca11669 Expand SDK constraint on dart_internal to include 2.9.0
Change-Id: I338463eb12517798af85cd83c771ae40c3c6015d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156280
Reviewed-by: Jake Macdonald <jakemac@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2020-07-29 18:17:35 +00:00
Ben Konyi 45d8bd79f1 [ DartDev ] Launch from snapshot in the current process when possible
Instead of spawning new processes to run a tool for a command, this
change makes it so we run within the current process when possible. In
general, we should avoid spawning any processes when possible from
dartdev unless:

- We need to interact with the child process from dartdev (e.g.,
  analysis server)
- The child needs to interact with the parent process (e.g., DDS)

Change-Id: I9c8cd39de038ab2f3a699165a47bee4c281bda67
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156048
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2020-07-29 17:28:36 +00:00
Brian Wilkerson 15fb170ffb Enable the new code completion relevance feature
The new feature will be enabled by default but the option still exists
so that users can disable it if they want/need to.

Change-Id: I9e001b00b5dfe132a6b7bcfdcacd3143fb24f65c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156121
Reviewed-by: Jaime Wren <jwren@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
2020-07-29 17:14:44 +00:00
Konstantin Shcheglov d5845d255c Fix several language/ tests.
Change-Id: I38946733f298bea75e65faff20c6d911e6bd37f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/154361
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 17:10:55 +00:00
Nicholas Shahan 687bef277f [deps] Bump csslib dependency to v0.16.2
Revision: 451448a9ac03f87a8d0377fc0b411d8c388a6cb4

Change-Id: I1ea902c5f3ba6304acd1dae72d6fe1b50dfb28c8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156122
Reviewed-by: Nate Bosch <nbosch@google.com>
2020-07-29 16:36:20 +00:00
pq e2f0cbc4d6 bulk fix for avoid_return_types_on_setters
Change-Id: I29465e1a33be384948015682725b3e8f8db99bb9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156260
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 16:03:16 +00:00
Alexander Aprelev 3cd8b5ca1e [vm/resolve] Use Resolver instead of Lookup in while-loop.
This is part of refactoring that should help with protecting class functions lookup with locks.

Change-Id: I28d25aa78c0b4d83eb8ceab827b71852a23368b3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156162
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-07-29 15:48:15 +00:00
pq 1324146fb4 bulk fix for avoid_redundant_argument_values
Change-Id: Id7dacf56d72acecfbd0f862585e68d93f2c22d55
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156160
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2020-07-29 15:11:13 +00:00
jlcontreras 17be0b4edf Fix nnbd flag bug in tests for Value Classes feature.
Change-Id: I1a092c951d529c1db395a3bb03e887a3a33a96e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156194
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-07-29 15:07:09 +00:00
Johnni Winther eb1dc6786b [cfe] Revert receiverType/receiverBound update
This change was introduced in https://dart-review.googlesource.com/c/sdk/+/155324
but has unforeseen negative consequences.

Change-Id: Ifda680a533833fc21f575f13f0e6f0f3be857fa2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156195
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-07-29 14:59:01 +00:00
Martin Kustermann fd959b824e [vm/compiler] Graph intrinsify implicit getters/setters in common cases.
To make implicit getters/setters frameless in common cases we use graph
intrinsics. We do this for boxed as well as unboxed fields. We do this
only for simple cases (e.g. not if field guards or possible boxing are
involved).

It also removes the hand-written assembly intrinsics for the getters,
which avoids bugs if boxing-state of field is not the same as
boxing-state of setter/getter.

Issue https://github.com/dart-lang/sdk/issues/40876

Change-Id: Id3bd7842ead0278fee61d4a21c8661ce18dbccee
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155900
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Aske Simon Christensen <askesc@google.com>
Reviewed-by: Tess Strickland <sstrickl@google.com>
2020-07-29 14:49:45 +00:00
Dmitry Stefantsov 1b2c267bb2 [cfe] Use unwrapping of nullability constructor in upper bound
Previously to unwrap a type in isTop method the declared nullability
was set to Nullability.nonNullable.  This doesn't work for
intersection type because .withDeclaredNullability() doesn't work for
them.  This CL introduces a method that simulates the removal of the
top-level nullability type constructor from a type term, and uses the
method in isTop to account for intersection types and other possible
similar cases in future.

Change-Id: I3e6f30b5d93850b2cf92475a89d09d6d9255089f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156193
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2020-07-29 14:24:05 +00:00
Johnni Winther ac85af3a0c [cfe] Handle type parameters bounded by Null/Never in local function parameter type inference
Closes #42206

Change-Id: Id36fe76d8581ab0712165a8c90f1734d4be1a913
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156186
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-07-29 14:21:17 +00:00
Martin Kustermann 5b18fa0798 [vm/compiler] Move CheckArrayBoundInstr::Canonicalize to its base class
This ensures redundant bounds checks are eliminated for
GenericCheckBoundsInstr (in addition to CheckArrayBoundInstr which we
already do).

Change-Id: Ie49e63f3e48cd7c90f5616cc1394f4d8a6920699
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156188
Reviewed-by: Tess Strickland <sstrickl@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2020-07-29 13:46:06 +00:00
Alexander Thomas bac90ab84f [co19] Roll co19 to 86c948fbe7c8a9e74f572038f2ec70dfce7f20b0
2020-07-29 sgrekhov@unipro.ru Fixes 875. LibTest\io\HttpClientBasicCredentials and LibTest\io\HttpClientDigestCredentials migrated to null safety
2020-07-29 sgrekhov@unipro.ru 870. Minor fixes
2020-07-29 sgrekhov@unipro.ru Fixes 870. LibTest\io\HttpClient migrated to null safety
2020-07-29 sgrekhov@unipro.ru Fixes 871. Don't expect an error for super.== any longer
2020-07-29 irina.arkhipets@gmail.com Fixes 873: minor improvements for LibTest\typed_data\Float32x4 tests.
2020-07-29 sgrekhov@unipro.ru LibTest/collection tests fixed after tryjob run

Change-Id: I12a86bd0b87e395ef0bb336b8af998ba21608bcf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156190
Reviewed-by: William Hesse <whesse@google.com>
2020-07-29 12:33:44 +00:00
jlcontreras 35a8b1ec28 Add tests for the Value Class feature.
Add experimental flag to tests.
Add words to test spelling dictionary.

Change-Id: Ie739a84fd85e7f85f312416f34506ee76313803b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156021
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-07-29 11:47:06 +00:00
Jonas Termansen defb631f2e Roll benchmarks-internal 171db4d6bcd4..9bc9e373b3d3
d33955fd00f65fc5703c46245162feb4cb647098 https://dart-internal-review.googlesource.com/c/benchmarks-internal/+/2200
9bc9e373b3d3cacdd7aba906caea77075c6cd2e3 https://dart-internal-review.googlesource.com/c/benchmarks-internal/+/2201

R=whesse@google.com

Change-Id: Ia666c4edaf6eaba90da874bf084362383a4bcb54
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156189
Auto-Submit: Jonas Termansen <sortie@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2020-07-29 11:11:24 +00:00
Alexander Thomas 7d15f06959 [infra] Add VM simarm64 nnbd builder to the test matrix
Also balances shards to reduce cycle time.

Change-Id: I3e6446076e29627e171a41bd53a1dd4754ce68ab
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156187
Reviewed-by: William Hesse <whesse@google.com>
2020-07-29 10:53:36 +00:00
Alexander Thomas a22f38efa7 [co19] Roll co19 to 872367c00df43a2057f541d1920b8f42f6ebbeec
2020-07-29 irina.arkhipets@gmail.com Fixes 872: LibTest\typed_data\Float32List tests adopted for null safety.
2020-07-28 irina.arkhipets@gmail.com Fixes 869: LibTest\typed_data\ByteData tests adopted for null safety.
2020-07-28 sgrekhov@unipro.ru Fixes 868. LibTest\io\GZipCodec migrated to null safety
2020-07-28 irina.arkhipets@gmail.com Fixes 867: LibTest\typed_data\ByteBuffer tests adopted for null safety.
2020-07-28 sgrekhov@unipro.ru Fixes 866. LibTest\io\FileSystemModifyEvent and LibTest\io\FileSystemMoveEvent migrated to null safety
2020-07-28 irina.arkhipets@gmail.com Fixes 852: Constant-update-2018 tests adopted for null safety.
2020-07-28 sgrekhov@unipro.ru Fixes 865. LibTest\io\FileSystemDeleteEvent migrated to null safety
2020-07-28 irina.arkhipets@gmail.com Additional fix for 848: qreflection test updated according to the recent dart changes.
2020-07-27 sgrekhov@unipro.ru Fixes 864. LibTest\io\FileSystemCreateEvent migrated to null safety
2020-07-27 sgrekhov@unipro.ru Fixes 863. LibTest\io\File migrated to null safety
2020-07-27 sgrekhov@unipro.ru Fixes 862. LibTest\io\exit and LibTest\io\exitCode migrated to null safety

Change-Id: Ib5aed3ef85525c438da23e99daa45b8f35e5e06f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156185
Reviewed-by: William Hesse <whesse@google.com>
Reviewed-by: Sergey Grekhov <sgrekhov@unipro.ru>
2020-07-29 10:52:53 +00:00
Johnni Winther 135c44afd9 [analyzer,cfe,dart2js] Ensure id-testing shards are deterministic
Sharding was based on the directory listing. Now we sort the entities
by test name before sharding to avoid dependency on the file system.

Change-Id: I5e6ecc191d84eb1820c05bcef0a27d8b03d89286
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156025
Reviewed-by: Jens Johansen <jensj@google.com>
2020-07-29 09:45:59 +00:00
Johnni Winther a021b99fc3 [cfe] Fix scope setup for generic function types
Closes #36870
Closes #41951
Closes #42364

Change-Id: Id323bfdc26c688bfeb756ef8c1e0530283b44e34
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156028
Reviewed-by: Jens Johansen <jensj@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2020-07-29 09:04:24 +00:00
Johnni Winther 767692b32f [cfe] Remove error/warning on duplicate library name in export/import
Closes #42700

Change-Id: I1fd047ea91de45be727690cf6053298cecf91410
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155326
Reviewed-by: Jens Johansen <jensj@google.com>
2020-07-29 08:53:06 +00:00
Johnni Winther 07aa9ec332 [cfe] Add test for issue 42537
This adds a language versioning test that shows that the language
version for a package defined in a `.packages` will have version 2.7
and whereas a package defined in a `.packages_config.json` will have
the current language version (2.8 in the test). Therefore the
former will not have the non-nullable experiment enabled even when
the package is in allowed_experiments.json.

Change-Id: Iabf5d6882e21538cfc1237d848bad03a37825dfb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156000
Reviewed-by: Jens Johansen <jensj@google.com>
2020-07-29 08:15:33 +00:00
Johnni Winther 8e7e400a00 [cfe] Use legacy erasure in LUB computation in opt-out libraries
Closes #42836

Change-Id: Ibe6d8e54e082ffb204ccc18f438809c7776c1cd4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156001
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2020-07-29 07:36:34 +00:00