Commit graph

54372 commits

Author SHA1 Message Date
Paul Berry
11cbdbe26e When checking mixin type inference errors, don't skip mixins with explicit type args.
Fixes #32372.

Change-Id: I77bcdcdb5a764ba1d6075176800fa038aa46a1f9
Reviewed-on: https://dart-review.googlesource.com/44440
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-03-05 09:10:01 +00:00
Dan Rubel
e74e2b3c3e Pass varFinalOrConst in beginVariablesDeclaration event
This CL refactors the fasta parse variable declaration functionality
to pass the modifier with the begin event rather than using the
handleModifer and handleModifiers events.

* Refactor modifier parsing as described above
* Update same modifier parsing to use ModifierRecoveryContext2
* Cleanup functionality of ModifierRecovery2
* Remove 2 unused fasta parser methods

Change-Id: Ib3a6b24428dcf6ad3cb462a979a05600fe7ee673
Reviewed-on: https://dart-review.googlesource.com/44860
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-03-03 21:51:31 +00:00
Alexey Knyazev
44aa9a17fd Do not return this on RandomAccessFile.close
Bug: 32015
Change-Id: I98508bdad569201afeed91f1287f061b5bb39a31
Reviewed-on: https://dart-review.googlesource.com/44060
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
2018-03-03 19:46:01 +00:00
Leaf Petersen
9be25848e1 Roll async in DEPS to 2.0.6
Change-Id: I151bf3b4c31c52cf569dfb387c4824e1c3058104
Reviewed-on: https://dart-review.googlesource.com/44900
Reviewed-by: Natalie Weizenbaum <nweiz@google.com>
2018-03-03 02:09:14 +00:00
Stephen Adams
8e8287f4e0 Add classes for instantiations
Change-Id: Iee9df3ad673012776cd1867448ff12ba692a863f
Reviewed-on: https://dart-review.googlesource.com/41564
Commit-Queue: Stephen Adams <sra@google.com>
Reviewed-by: Johnni Winther <johnniwinther@google.com>
2018-03-03 00:50:59 +00:00
Sigmund Cherem
cae6d89429 Prepare language_dart2js.status to enable CFE by default on dart2js
TBR=sra@google.com

Change-Id: Ie2621a8a876e5f9cfb97984daa883a9e55bc9887
Reviewed-on: https://dart-review.googlesource.com/44881
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2018-03-03 00:32:19 +00:00
Sigmund Cherem
7fd5294bb3 Add rules to build dart2js platform in strong mode
This must land after we make the libraries strong clean.

Change-Id: I3a49a2be3b2bcb15842434266f55ce49e3800fc6
Reviewed-on: https://dart-review.googlesource.com/42140
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
2018-03-02 22:19:19 +00:00
Ryan Macnak
47ba426b62 [vm] Dump stack on SIGILL; print exception codes.
Bug: https://github.com/dart-lang/sdk/issues/32391
Change-Id: Ie75511fa17a4ef7a4794a52c34fef7bcb8b4ba81
Reviewed-on: https://dart-review.googlesource.com/44802
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-03-02 21:54:59 +00:00
Kevin Moore
751de54dc0 Remove invalid dart:collection link in doc comments
Fixes https://github.com/dart-lang/sdk/issues/31246

Change-Id: I6549cbb074102616c8f000d9b83555cba5ebabc7
Reviewed-on: https://dart-review.googlesource.com/44582
Reviewed-by: Devon Carew <devoncarew@google.com>
2018-03-02 21:45:27 +00:00
Dan Rubel
22f860a229 Update AstBuilder to report illegal assignment
Change-Id: Ic65fdc6274e73e20b2230048855ef1025548aa5b
Reviewed-on: https://dart-review.googlesource.com/44820
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-03-02 21:10:59 +00:00
Stephen Adams
109316c484 Force inlining to match AST version
These are a couple of cases where inlining differs from the previous
version and makes a difference in angular code.

Change-Id: Ibc8ba0d720b8bb49481c41e1332fc6a4a0292d9d
Reviewed-on: https://dart-review.googlesource.com/44701
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2018-03-02 20:10:49 +00:00
Vijay Menon
34f8c356a3 Fix sdk stack trace mapping so tools recognize it
This should fix #32389

Change-Id: I1e6f1a7aea852abb9b2b4a9bf851941a8e0c91e7
Reviewed-on: https://dart-review.googlesource.com/44840
Reviewed-by: Jake Macdonald <jakemac@google.com>
Commit-Queue: Vijay Menon <vsm@google.com>
2018-03-02 19:46:49 +00:00
Sigmund Cherem
514271e494 Prepare corelib.status for flipping on CFE on dart2js
TBR=sra@google.com

Change-Id: Ie09f7e61c8e94e496eec1c3d016cfd0f6282df03
Reviewed-on: https://dart-review.googlesource.com/44801
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2018-03-02 19:18:49 +00:00
Jens Johansen
80e2d30c20 [vm] Fix issue causing recursive_mixin_test to crash
In the VM, TypeRef (extending AbstractType) did _not_ implement
error(), meaning that callong error() on such a type would call it in
AbstractType which basically just says `UNREACHABLE();`.

This fixes the issue.

Change-Id: I6cb9ebe8f814296db8383c187c880f367b096312
Reviewed-on: https://dart-review.googlesource.com/44420
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
2018-03-02 17:39:39 +00:00
Martin Kustermann
2c956749a5 [VM] Add support to HierarchyInfo to not only create [CidRangeVector]s of subtypes but also subclasses
Issue https://github.com/dart-lang/sdk/issues/31798

Change-Id: I1df4b9238500a1f78b5237ee6a6be4154e7f41d2
Reviewed-on: https://dart-review.googlesource.com/44543
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-03-02 17:02:49 +00:00
Martin Kustermann
5d92543f42 [VM] Fix accidental double assignment
This broke ARM on a non-standard compiler.

Change-Id: Idf4e7d5ea9072e6e07d796dc676ec3e7afd6f235
Reviewed-on: https://dart-review.googlesource.com/44786
Reviewed-by: William Hesse <whesse@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2018-03-02 15:40:14 +00:00
Martin Kustermann
80805ff1c1 [VM] Make FlowGraphCompiler::EmitTestAndCallCheckCid static and therefore usable from stubs
Issue https://github.com/dart-lang/sdk/issues/31798

Change-Id: I375cc01bf59d848a203dbcdbd59377d55e9aafe4
Reviewed-on: https://dart-review.googlesource.com/44540
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-03-02 15:11:59 +00:00
Martin Kustermann
9cfd721f78 [VM] Handle kVoidCid/kDynamicCid/kVectorCid the same way
Issue https://github.com/dart-lang/sdk/issues/31798

Change-Id: Ifb08ec17b29a5e8d1f2a9b8b53a32cb810a8a3da
Reviewed-on: https://dart-review.googlesource.com/44520
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2018-03-02 15:03:49 +00:00
Martin Kustermann
65b2b1a671 [VM] Split handling of Code from non-Code in Thread::{CanLoadFromThread,OffsetFromThread}
Not only does it speed the two methods a bit up, it will also allow us to use the assembler
before all of the stubs are initialized.

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

Change-Id: Ic14743ecd9d11ca4cbc5208cacad30beee0982ef
Reviewed-on: https://dart-review.googlesource.com/44500
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-03-02 14:52:04 +00:00
Jens Johansen
2f10ab76f7 Mark incremental_load_from_dill_test slow on Windows
incremental_load_from_dill_test is sometimes slow on Windows. Mark it as such.

Change-Id: I11bf1bac275829f5bb612ab6f8b80d646cc31a3e
Reviewed-on: https://dart-review.googlesource.com/44780
Reviewed-by: Peter von der Ahé <ahe@google.com>
Commit-Queue: Peter von der Ahé <ahe@google.com>
2018-03-02 14:49:40 +00:00
Dmitry Stefantsov
b70d7d55b7 Fix setting of body for procedures patched with redirecting factories
Fixes #32303

Bug: http://dartbug.com/32303
Change-Id: Ie56364077fea74c242ed6c77c47215f057de5b57
Reviewed-on: https://dart-review.googlesource.com/44180
Reviewed-by: Peter von der Ahé <ahe@google.com>
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
2018-03-02 14:43:59 +00:00
Lasse R.H. Nielsen
3a769b9dbe Add missing methods to make classes Dart 2 valid.
Change-Id: I9a2e07de692127069d8098e3a0ea45846a3f45ae
Reviewed-on: https://dart-review.googlesource.com/43672
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
2018-03-02 14:01:49 +00:00
Jens Johansen
57a01968ed [fasta] Incremental compilation fallback
In the incremental compiler we can bootstrap from a dill file.
In some cases this can lead to a crash, where compiling from scratch
wouldn't have crashed.
This CL introduces a fallback, so that if compilation crashes
(technically when we build the outline) when bootstrapping from a dill
file, we retry without bootstrapping from the dill file.

Fixes 32384.

Change-Id: Iaefc01a2c03589f615d34910b7b93f73f1fbdc36
Reviewed-on: https://dart-review.googlesource.com/44720
Reviewed-by: Peter von der Ahé <ahe@google.com>
Commit-Queue: Jens Johansen <jensj@google.com>
2018-03-02 13:55:49 +00:00
Erik Corry
7d83584c5b Some kernel status file adjustments
R=dmitryas@google.com

Change-Id: Ide4ec93d556195c8e1ce92e6ef2ec49816d2a7d9
Reviewed-on: https://dart-review.googlesource.com/44740
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2018-03-02 10:29:10 +00:00
Bob Nystrom
c67cf2090a Make warning more warning-y.
Change-Id: If5ecb0f3a8ac94acd0f3fe13e315df47029107b6
Reviewed-on: https://dart-review.googlesource.com/44680
Reviewed-by: Nate Bosch <nbosch@google.com>
2018-03-02 02:04:44 +00:00
Sigmund Cherem
e38e98afbe Update dart2js_native.status: updated to be accurate with our many configurations
TBR=sra@google.com

Change-Id: Ic294b6b9fba128e82cff934b8f3587cee71292e4
Reviewed-on: https://dart-review.googlesource.com/44663
Commit-Queue: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
2018-03-02 01:50:38 +00:00
Sigmund Cherem
1ce131b317 fix section for update_from_log
TBR=sra@google.com

Change-Id: I60465498268cb7e8ffd5d824df70f794aa911613
Reviewed-on: https://dart-review.googlesource.com/44662
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2018-03-02 01:33:18 +00:00
Sigmund Cherem
bde6603d92 Update dart2js_extra.status: now it correctly declares expectations for
non-minified, minified, host-checked, checked, and fast-startup

TBR=sra@google.com

Change-Id: I20159ff71bbb9b4e84304e4d560e5d06d0d41814
Reviewed-on: https://dart-review.googlesource.com/44661
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2018-03-02 01:13:58 +00:00
Régis Crelier
be62fff82f Reland "[VM runtime] Switch intrinsics from old to new Bigint implementation."
The change was reverted (thanks Slava) because gen_snapshot was failing to
find the core lib class _BigIntImpl on flutter.
The PR https://github.com/flutter/engine/pull/4735 fixed that issue on flutter.

Change-Id: Id6863d79f7fdb17f0076b63b0168394d5e95ec8d
Reviewed-on: https://dart-review.googlesource.com/44660
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2018-03-02 00:01:54 +00:00
Alexander Aprelev
ee15c8eb68 Move frontend_server from flutter to dart sdk.
Change-Id: I7f8b36977b448f08caf58b88b3fda43fab364514
Reviewed-on: https://dart-review.googlesource.com/43888
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2018-03-01 22:39:39 +00:00
Dan Rubel
fe8eb7a402 Update some analyzer fasta integration tests
Change-Id: If479bb6c52e3ba6c8deadf20d16e484d4e7d96d3
Reviewed-on: https://dart-review.googlesource.com/44640
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-03-01 22:16:28 +00:00
Zach Anderson
7a084ee150 [infra] Don't try to download buildtools binaries on arm
Change-Id: Ieea8c822a00ef36b0e457e363973dba00c5b9bc4
Reviewed-on: https://dart-review.googlesource.com/44602
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2018-03-01 22:12:29 +00:00
Dan Rubel
590d85876e Report "missing statement" error on void
Also address comments in
https://dart-review.googlesource.com/c/sdk/+/42800

Change-Id: I0fa1a61d1ec9a5a0db0d9d672ab8b436004980b5
Reviewed-on: https://dart-review.googlesource.com/44620
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-03-01 21:04:48 +00:00
Sigmund Cherem
9ed595b4b3 Use $fasta instead of $dart2js_with_kernel in our status files.
Note: $fasta is true when passing --dart2js-with-kernel. This change will make it
easier to flip the default: the plan is that $fasta will be true by default
later on, and passing --dart2js-old-frontend will make it false.

TBR=sra@google.com

Change-Id: Ib917d55b2d14db954c56513af057dd9a37b9c825
Reviewed-on: https://dart-review.googlesource.com/44601
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
2018-03-01 21:02:18 +00:00
Zach Anderson
6810d4604b [infra] Roll toolchain.
related #32364, #32363, #32362

Change-Id: Ia8ac3af0317fc67efb2a38e506b2924780473b8f
Reviewed-on: https://dart-review.googlesource.com/44400
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2018-03-01 20:09:29 +00:00
Peter von der Ahé
992dbd122f Compile examples in messages.yaml.
Change-Id: I9790de51542547b4236956ed9642e565a036249c
Reviewed-on: https://dart-review.googlesource.com/44544
Reviewed-by: Dan Rubel <danrubel@google.com>
Commit-Queue: Peter von der Ahé <ahe@google.com>
2018-03-01 19:18:08 +00:00
Konstantin Shcheglov
94540c56e9 Fix liking for GenericTypeAliasElementForLink.
R=brianwilkerson@google.com

Change-Id: Ibf1740453231e081c82b090186109cab3a54b76d
Reviewed-on: https://dart-review.googlesource.com/44580
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2018-03-01 18:59:19 +00:00
Dan Rubel
989a3bfc23 Report error on invalid use of super
Change-Id: I361e88714a3221d947e4e90ed44df2bbcc8b6ec3
Reviewed-on: https://dart-review.googlesource.com/44562
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-03-01 18:54:48 +00:00
Danny Tuppeny
9b1679c52d Don't send modifications for files that should not be analyzed
Bug: https://github.com/dart-lang/sdk/issues/31564
Change-Id: I91b952cf8f47e5c8b8d12ef137cc2ef1575372d3
Reviewed-on: https://dart-review.googlesource.com/44421
Commit-Queue: Danny Tuppeny <danny@tuppeny.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-03-01 18:00:39 +00:00
Sam Rawlins
21f9222eb0 Bump collection and quiver to versions that do not use the Maps class.
Change-Id: I84639ff32dfb8743c5213a65ad822218b7dc4329
Reviewed-on: https://dart-review.googlesource.com/44403
Reviewed-by: Leaf Petersen <leafp@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2018-03-01 17:45:49 +00:00
Dan Rubel
babfa357ae Cleanup error reporter argument use
Address comment in https://dart-review.googlesource.com/c/sdk/+/43560

Change-Id: I99314676177861fdffae6b307dd13b1c47ed2da8
Reviewed-on: https://dart-review.googlesource.com/44561
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-03-01 16:52:58 +00:00
Dan Rubel
1065da5b34 Report error on duplicate label in switch statement
Change-Id: I4df8e6baf4dc7c14dd900a7212c3b6eda55a861b
Reviewed-on: https://dart-review.googlesource.com/44560
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-03-01 16:52:58 +00:00
Vyacheslav Egorov
4fb15fcbf2 [vm/compiler] Consolidate compiler passes and share them between JIT and AOT.
Passes bodies are moved into compiler_pass{.cc,.h}.

Invoking a pass is just INVOKE_PASS(Name) now, instead of putting a bunch of
if-s and calls in compiler.cc or precompiler.cc.

We also consolidate ability to print IL and enable-disable passes under a
single flag --compiler-passes, e.g.

--compiler-passes=-Inlining,-CSE    disable inlining and CSE passes

--compiler-passes=Inlining+         print IL after Inlining pass and all
                                    subsequent passes

Change-Id: I90ff54b04a54f20099f5bf38dd45b16b8e3c4781
Reviewed-on: https://dart-review.googlesource.com/43968
Commit-Queue: Vyacheslav Egorov <vegorov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2018-03-01 16:43:58 +00:00
Danny Tuppeny
0e48dce272 Mark integration tests as skip on Windows due to timeouts
Bug: https://github.com/dart-lang/sdk/issues/32356
Change-Id: I78613615c2de2869535810536464d3dc04f1f45b
Reviewed-on: https://dart-review.googlesource.com/44542
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-03-01 16:36:16 +00:00
Martin Kustermann
52bc1ac4d7 [VM] Ensure we use the most specific types for fields
The VM uses normally strong mode types for LoadField instructions.
Though for certain fields we have known class-ids which we attach to the
Field instructions.

Before we had a case where the strong mode type was dynamic, but we had
a very specific cid for the Field.  Though when using the [CompileType]
afterwards via [CompileType()->ToAbstractType()] it was returning
`dynamic`.

We should use CompileType::ComputeRefineType() to get the most specific
one of those two.

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

Change-Id: Ib0b7a596449cba0bc53e118ee603b2039aa312b3
Reviewed-on: https://dart-review.googlesource.com/43422
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-03-01 15:06:58 +00:00
Martin Kustermann
9104b5d387 [VM] Eliminate more type checks when not needed
Clear out generic-covariant-{impl,interface} on parameters which are
statically checked on call site.  If all call sites are this-dispatches then
we are guaranteed to not need the checks.

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

Change-Id: I5452a1c9eb3c3e36c1dfc978327bfdcb256cc003
Reviewed-on: https://dart-review.googlesource.com/43421
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-03-01 14:31:38 +00:00
Lasse R.H. Nielsen
34f09ac4c8 Wave 2.2 Step 2: Deprecated first/lastWhere's defaultValue parameter.
Change-Id: Iabfd7a990ff723a2d861ee7034f6569c2ca948cc
Reviewed-on: https://dart-review.googlesource.com/43401
Reviewed-by: Leaf Petersen <leafp@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2018-03-01 14:12:08 +00:00
Martin Kustermann
acf86bfb22 [VM] Type _CompactIterator/_CompactIterable._table
With the [_table] field being `dynamic` we were unable to eliminate
checks for the [_isModifiedSince] method, since there is a dynamic call
site.

This CL adds a type to [_table] so [_isModifiedSince] does not need to
perform any checks (via package:vm/transf.../no_dynamic_invocations_annotator.dart)

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

Change-Id: If773c4b63fab62d1ccdd2e783aa16c19f780000a
Reviewed-on: https://dart-review.googlesource.com/43423
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-03-01 14:03:28 +00:00
Danny Tuppeny
a3b2c5addb Update status for analysis server tests on Windows
Various tests are currently flaky so marked with Pass, Slow/RuntimeError.

Bug: https://github.com/dart-lang/sdk/issues/32355
Bug: https://github.com/dart-lang/sdk/issues/32356
Change-Id: I86755a5eeb72ad92eaa22f950306e745c14e67fc
Reviewed-on: https://dart-review.googlesource.com/44260
Reviewed-by: William Hesse <whesse@google.com>
2018-03-01 13:52:32 +00:00
Tom Sullivan
ded230959d Fix Homebrew undent warning
Update the generated `dart.rb` formula file to fix:

```
Warning: Calling <<-EOS.undent is deprecated!
Use <<~EOS instead.
/usr/local/Homebrew/Library/Taps/dart-lang/homebrew-dart/dart.rb:72:in `caveats'
Please report this to the dart-lang/dart tap!
```

being reported by `brew`.

Fixes https://github.com/dart-lang/homebrew-dart/issues/48

Credit for original patch to @fsouza:

06b76e0935

Closes #32346
https://github.com/dart-lang/sdk/pull/32346

GitOrigin-RevId: 938a696caea21eda193375ad4cce5aab0e7b5e71
Change-Id: I757647a7ef0a373cb0258f0fcf03f89849aeba5e
Reviewed-on: https://dart-review.googlesource.com/44100
Reviewed-by: Kevin Moore <kevmoo@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2018-03-01 13:50:38 +00:00