Commit graph

56656 commits

Author SHA1 Message Date
Kevin Moore 94abf948c4 pkg:status_file misc cleanup
Clarify in the pubspec that it's not published
Cleaned up hints/lints in source files

Change-Id: Ifbf59ab0fb219dcdf5de99eced0a0129e6e191cb
Reviewed-on: https://dart-review.googlesource.com/61909
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2018-06-22 16:42:27 +00:00
Devon Carew 02721709c3 Fix a committed solo test and mark it as passing now.
Change-Id: Id0185d229ef84ac78bba1906ce90ad0083c9651d
Reviewed-on: https://dart-review.googlesource.com/61905
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
2018-06-22 16:17:55 +00:00
Brian Wilkerson c8a488c1ca Add parameters to Forest method to support labeled statements
Change-Id: I6b45ba7155b10c7f6f12a203324f0cdc3ccb89f7
Reviewed-on: https://dart-review.googlesource.com/61761
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2018-06-22 15:51:30 +00:00
Alexander Markov c4d6ac0cbe [vm/compiler/aot] Implement non-speculative int64 shift operation
Closes https://github.com/dart-lang/sdk/issues/33364

Change-Id: I9432d82a1ee58fbbdc1b54b810a71c2c7ddd8fce
Reviewed-on: https://dart-review.googlesource.com/59821
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
2018-06-22 15:43:28 +00:00
Brian Wilkerson 3af363cba0 Rename typeContext to inferredType
Change-Id: Ifde7803944a23f2682a77a5ba5c9a9dfb5ca5978
Reviewed-on: https://dart-review.googlesource.com/61906
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-06-22 15:43:27 +00:00
Kevin Moore 10dcad1dd2 pkg:kernel - cleanup pubspec file
Reference pkg:testing by path
Remove dependency on pkg:ansicolor - not used

Also removed outdated reference to fasta in .packages

Change-Id: Iaeaa4a868e376e6cfdd5dad35d87521a18b213f2
Reviewed-on: https://dart-review.googlesource.com/61908
Reviewed-by: Kevin Millikin <kmillikin@google.com>
Commit-Queue: Kevin Moore <kevmoo@google.com>
2018-06-22 15:43:04 +00:00
Dmitry Stefantsov 7e7fd7ffa5 Convert ShadowLiteralList into LiteralListJudgment
Change-Id: Iead84138ca0a74ae15911e6d0978d52c08f40816
Reviewed-on: https://dart-review.googlesource.com/61540
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2018-06-22 14:13:25 +00:00
Dmitry Stefantsov 4fe71ec275 [fasta] Report instantiate-to-bound failure due to non-simple bounds
Fixes #33208, #31810, #32416, #32417

Bug: http://dartbug.com/33208
Bug: http://dartbug.com/31810
Bug: http://dartbug.com/32416
Bug: http://dartbug.com/32417
Change-Id: Id178daf35be459fdefe04091bf929b5743d89e81
Reviewed-on: https://dart-review.googlesource.com/41264
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Aske Simon Christensen <askesc@google.com>
2018-06-22 13:41:55 +00:00
Paul Berry 121fed2840 Convert ShadowDeferredCheck to DeferredCheckJudgment
Change-Id: I411e29c6b3f1d1d88942cfb6775d4b88908bb6a5
Reviewed-on: https://dart-review.googlesource.com/61820
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2018-06-22 13:36:45 +00:00
Lasse R.H. Nielsen e2c54e9af5 Fix cascade specification.
Don't use $e$ for two different things, and specify static type.

Fixes #19517.

Bug: http://dartbug.com/19517
Change-Id: Ieb30fc05dc305f25526b05b2005a1a81a88e2009
Reviewed-on: https://dart-review.googlesource.com/61881
Reviewed-by: Erik Ernst <eernst@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
2018-06-22 13:33:48 +00:00
William Hesse d08317b79f Make status file linter valid Dart 2 code
Change-Id: I14e1ca4a32022cbd9b112a02d15ad35e92824854
Reviewed-on: https://dart-review.googlesource.com/61882
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Commit-Queue: William Hesse <whesse@google.com>
2018-06-22 13:24:09 +00:00
Paul Berry f4d2bf313e Convert ShadowFunctionExpression to FunctionExpressionJudgment
Change-Id: Ibc821fc6ec982b4871bb9688f5261d5e901658bb
Reviewed-on: https://dart-review.googlesource.com/61801
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2018-06-22 13:10:15 +00:00
Jens Johansen 6888bc2824 Compile time error for web int literals that cannot be represented exactly
Bug: #33351
Change-Id: I2b99858dfc276dc70c3a36c289030e801145af86
Reviewed-on: https://dart-review.googlesource.com/61180
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2018-06-22 10:47:54 +00:00
Johnni Winther 075c713a93 Register type arguments on inlining
Closes #33529

Change-Id: I992552a400199490959d10de8c838e56015159e5
Reviewed-on: https://dart-review.googlesource.com/61522
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2018-06-22 08:24:13 +00:00
Konstantin Shcheglov 4ebdb31646 Separate getOutline() and getResolution() in FrontEndCompiler.
This will allow us later switch from applying resolution to parsed
AST to directly generating resolved AST, when we get to this.

New failing tests are because of absence of annotations, constant
values (initializers, default values), and constructor initializers
in outlines.

We also don't get errors for constant value computing, hence some
tests are now passing, but not by the reason we intended to test.

R=brianwilkerson@google.com, paulberry@google.com

Change-Id: I5b45da592563af02c45e8cda160ccd24487c3591
Reviewed-on: https://dart-review.googlesource.com/61743
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2018-06-22 04:04:33 +00:00
Paul Berry 6a7bf90c42 Convert ShadowRethrow to RethrowJudgment
Change-Id: I8ab44875fb46308dbc71c44b965f9f21aa5e05bc
Reviewed-on: https://dart-review.googlesource.com/61821
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-06-22 03:14:48 +00:00
Paul Berry 7661841cc5 Convert ShadowNamedFunctionExpression to NamedFunctionExpressionJudgment
Change-Id: I00955f0c7e2feaff429571b30c68c13cb80782b2
Reviewed-on: https://dart-review.googlesource.com/61823
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-06-22 03:07:04 +00:00
Paul Berry 6fd40725af Convert ShadowIfNullExpression to IfNullJudgment
Change-Id: Id61c657b9eaf0e390e9f75c5ab711323a5212bbb
Reviewed-on: https://dart-review.googlesource.com/61825
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-06-22 03:06:46 +00:00
Alexander Aprelev 7c327c32b7 [frontend-server] Fix starter so it works in '--incremental' mode
Change-Id: I0957481309042bf2d1dff4feb4fe7e4d20836483
Reviewed-on: https://dart-review.googlesource.com/61362
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2018-06-22 00:47:24 +00:00
Alexander Markov f885a0c8f3 [vm/kernel] Fix crash when reading symbol literal from Dart annotation
Fixes https://github.com/dart-lang/sdk/issues/33513

Change-Id: I1595409dd3faa363922d595c1c33e6acce92af74
Reviewed-on: https://dart-review.googlesource.com/61800
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2018-06-22 00:22:13 +00:00
Paul Berry 16c0c0ff07 Convert ShadowStringConcatenation to StringConcatenationJudgment
Change-Id: Ibdcacedc163e186a67d9bf3c766417f8cddd16dd
Reviewed-on: https://dart-review.googlesource.com/61781
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-06-22 00:04:18 +00:00
Paul Berry d0655066a5 Use the lemma approach for other variable declaring constructs.
This extends the groundwork laid by
1b681a75c3 to the local variables
declared by catch clauses and for-in statements, as well as the
synthetic local variable that Fasta uses to represent a local
function.

Change-Id: I7f6bf9dfb8ad0e06c3332d47287bb7dc7e620a5a
Reviewed-on: https://dart-review.googlesource.com/61780
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-06-22 00:01:53 +00:00
Sam Rawlins 2121c3bb56 Docs - Link to the Random.secure constructor in dartdoc
Bug: https://github.com/dart-lang/sdk/issues/13775
Change-Id: Ia5446bee4d5b068cc0f9f8773261b504bc3807a7
Reviewed-on: https://dart-review.googlesource.com/61740
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2018-06-21 23:56:13 +00:00
David Moore 975686d5a9 [syscalls] Use vmar..._old apis.
Modify existing calls to vmar routines in preparation for changing
the parameter order.

ZX-2264

Test: CQ
Change-Id: Iaed6ca55b890e0d8ab557b5b96d6760020a645d9
Reviewed-on: https://dart-review.googlesource.com/61480
Reviewed-by: Adam Barth <abarth@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2018-06-21 23:48:23 +00:00
Ryan Macnak 7d7e7c268e [vm] Work around interaction between type and instance canonicalization in isolate messages.
Type canonicalization is deferred between in may involve cycles. Instances are canonicalized eagerly, but their type arguments are not necessarily canonical yet, which can lead to incorrect canonicalization of the instance.

The work around is to include the most popular type arguments in the serializer's set of base objects, bypassing deferred canonicalization. Other type arguments will continue to fail.

Bug: https://github.com/dart-lang/sdk/issues/33430
Change-Id: Ia992b3ebc2974b54acb5c88b3e1d836f6ec1f1b8
Reviewed-on: https://dart-review.googlesource.com/61721
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2018-06-21 23:45:05 +00:00
Ryan Macnak fa7c38dec5 [vm, standalone] Do not copy when loading kernel.
In a topaz release build with JIT apps,
mondrian(flutter_runner):      PSS 44.4M -> 35.8M (-19.4%)
ledger_dashboard(dart_runner): PSS 15.2M -> 12.0M (-21.1%)

Change-Id: I501c24de56a5a7c65a2f03b87709cb09bb95d465
Reviewed-on: https://dart-review.googlesource.com/60202
Reviewed-by: Zach Anderson <zra@google.com>
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2018-06-21 23:27:53 +00:00
Paul Berry 8d7c5294c6 Rename the kernel ShadowExpressions for assignments
Change-Id: I2cff47b961846c7aa2de65ca483e94264537919b
Reviewed-on: https://dart-review.googlesource.com/61760
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-06-21 22:55:27 +00:00
William Hesse 47f394d61c Update checked-in Dart SDK to 2.0.0-dev.64.1
Change-Id: Id4e8f4987f830a4f81fbb4d70afeeb68b3babd67
Reviewed-on: https://dart-review.googlesource.com/61521
Reviewed-by: Zach Anderson <zra@google.com>
2018-06-21 22:42:42 +00:00
Ben Konyi efd36d4cdf Updated non_utf8_* tests to better cleanup after themselves. Fixes issue
Change-Id: I576fde1edde38224643132fd2b10b28e9e0b22ee
Reviewed-on: https://dart-review.googlesource.com/61600
Commit-Queue: William Hesse <whesse@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: William Hesse <whesse@google.com>
2018-06-21 22:39:43 +00:00
Stephen Adams d1e1af84e7 DEPS: update crypto version
New version avoids literals that are not exact in JavaScript.

Change-Id: I38fa0d6132b9006f361b01e3e691b5a672584e98
Reviewed-on: https://dart-review.googlesource.com/61741
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
2018-06-21 22:09:23 +00:00
Alexander Markov 530f1f6512 [build] Possible fix for 'Error while initializing Kernel isolate'
The flaky errors

[215/296] ACTION //utils/dartdevc:stack_trace_mapper(//build/toolchain/linux:clang_x86)
FAILED: dev_compiler/build/web/dart_stack_trace_mapper.js
python ../../build/gn_run_binary.py compiled_action dart --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/compiler/lib/src/dart2js.dart /b/s/w/ir/cache/builder/sdk/pkg/dev_compiler/web/stack_trace_mapper.dart -m -o/b/s/w/ir/cache/builder/sdk/out/ReleaseIA32/dev_compiler/build/web/dart_stack_trace_mapper.js
Command failed: ./dart --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/compiler/lib/src/dart2js.dart /b/s/w/ir/cache/builder/sdk/pkg/dev_compiler/web/stack_trace_mapper.dart -m -o/b/s/w/ir/cache/builder/sdk/out/ReleaseIA32/dev_compiler/build/web/dart_stack_trace_mapper.js
output: Error while initializing Kernel isolate
[216/296] ACTION //utils/compiler:dart2js_create_snapshot_entry(//build/toolchain/linux:clang_x86)
FAILED: gen/utils/compiler/dart2js.dart
python ../../build/gn_run_binary.py compiled_action dart --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/utils/compiler/create_snapshot_entry.dart --output_dir=/b/s/w/ir/cache/builder/sdk/out/ReleaseIA32/gen/utils/compiler --dart2js_main=pkg/compiler/lib/src/dart2js.dart
Command failed: ./dart --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/utils/compiler/create_snapshot_entry.dart --output_dir=/b/s/w/ir/cache/builder/sdk/out/ReleaseIA32/gen/utils/compiler --dart2js_main=pkg/compiler/lib/src/dart2js.dart
output: Error while initializing Kernel isolate
[217/296] ACTION //utils/dartdevc:dartdevc_web(//build/toolchain/linux:clang_x86)
FAILED: dev_compiler/build/web/ddc_web_compiler.js
python ../../build/gn_run_binary.py compiled_action dart --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/compiler/lib/src/dart2js.dart /b/s/w/ir/cache/builder/sdk/pkg/dev_compiler/web/main.dart -m -o/b/s/w/ir/cache/builder/sdk/out/ReleaseIA32/dev_compiler/build/web/ddc_web_compiler.js
Command failed: ./dart --packages=/b/s/w/ir/cache/builder/sdk/.packages /b/s/w/ir/cache/builder/sdk/pkg/compiler/lib/src/dart2js.dart /b/s/w/ir/cache/builder/sdk/pkg/dev_compiler/web/main.dart -m -o/b/s/w/ir/cache/builder/sdk/out/ReleaseIA32/dev_compiler/build/web/ddc_web_compiler.js
output: Error while initializing Kernel isolate

could appear due to stale kernel service snapshot.

The problem is that dart_action() used when building snapshots for dart2js and DDC
uses kernel service snapshot in Dart 2 mode, but it can't depend on kernel service
as it will create a circular dependency.

The short-term solution is to add dependency on kernel service snapshot to the rules
which use dart_action().

Change-Id: Icfe9148e24342f199370a09293e93806027b2a39
Reviewed-on: https://dart-review.googlesource.com/61742
Reviewed-by: Zach Anderson <zra@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
2018-06-21 22:09:13 +00:00
danrubel e9bc3352e0 Replace and remove parseType
Change-Id: Id276165dbe6c7168d4156fd755f3f32c835d93af
Reviewed-on: https://dart-review.googlesource.com/61321
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
2018-06-21 22:01:05 +00:00
Paul Berry 1b681a75c3 Modify Factory API to allow forward references to incomplete local functions and variables.
To allow for local functions that call themselves recursively, as well
as variable declarations that are (erroneously) referred to prior to
their first use, the Factory API needs to be adjusted so that it's
possible for a local function (or local variable) to be referred to
prior to its body (or initializer) being built.

The analyzer and the kernel have different ways of referring to local
functions and variables; in the kernel the reference
(e.g. VariableGet) points directly to the declaration
(VariableDeclaration).  In the analyzer both the reference and the
declaration point to a FunctionElement (or LocalVariableElement).  So
we want the Factory API to support both approaches.

This CL introduces the idea of a "lemma" (borrowed from linguistics).
In linguistics, a lemma is the mental binding site to which words and
meanings are attached.  In the Factory API, a lemma is an object that
can be created before the function's body (or the variable's
initializer) is available.  Thereafter, the declaration and the
references can be bound to the lemma in any order.

In the analyzer implementation, the lemma will be represented by a
FunctionElement or LocalVariableElement.  (Note however that for the
moment we use a temporary object because the ResolutionStorer is not
yet creating elements and AST nodes).  In the kernel implementation,
the VariableDeclaration node itself is used as the lemma, so the act
of "binding" the lemma to a declaration will do nothing more than
storing the body or initializer, and returning the same object.

Note that there are other syntactic constructs that can declare local
variables (closure parameters, for loops, and catch clauses).  I'll
hook them up to the lemma mechanism in a future CL.

Also a future CL will introduce the same mechanism for labeled
statements (which have a similar need for references to be built
before the labeled statement is completed).

Change-Id: Ifa3b04dda7ce25d115ad58a471d164b4c24d539c
Reviewed-on: https://dart-review.googlesource.com/61720
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-06-21 21:48:08 +00:00
Brian Wilkerson f682213764 Add parameters to Factory methods to support the try statement
Change-Id: I4892aee9dc6cf3b25758ca9b322453bad2cf121a
Reviewed-on: https://dart-review.googlesource.com/61681
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-06-21 21:04:05 +00:00
Brian Wilkerson cf6fbd9e07 Add parameters to Factory methods to support the switch statement
Change-Id: I292a9a698e5631cef158f239f495881c4992419a
Reviewed-on: https://dart-review.googlesource.com/61680
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-06-21 20:45:03 +00:00
Brian Wilkerson b50ff4990a Add parameters to Factory methods for list and map literals
Change-Id: I28cf658fd310c7c450bd5a637a8b6112582c0c50
Reviewed-on: https://dart-review.googlesource.com/61661
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-06-21 20:14:28 +00:00
Brian Wilkerson c5855635ae Add Factory method parameters for for loops
Change-Id: Iae52cf8d008f0bd44876fcea4f381e698bd4b496
Reviewed-on: https://dart-review.googlesource.com/61640
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2018-06-21 20:12:23 +00:00
Vijay Menon c2a22c6462 Updates to ddc/ddb tool
These weren't working for me.  Updated to use local sdk artifacts in debug mode.

Change-Id: I4e5d2d66d9237fde5d77f9683ed7d96e1dc0141d
Reviewed-on: https://dart-review.googlesource.com/61580
Reviewed-by: Jenny Messerly <jmesserly@google.com>
Commit-Queue: Vijay Menon <vsm@google.com>
2018-06-21 20:06:23 +00:00
Nate Bosch 1a1ff9e666 Reverse the pub snapshot names
Fixes https://github.com/dart-lang/pub/issues/1931

Pub color output depends on the name of the entrypoint it is running
from, when the entrypoint went from "pub" to "pub2" it confused this
check and we stopped getting colors.

Since the Dart 1 version of the snapshot has a short remaining lifespan
we can switch it to the other name and let "pub" mean Dart 2 and
continue to behave like it used to.

Change-Id: I1851a4c908ffe2222ab5fe6802f4b81a63d7f9f1
Reviewed-on: https://dart-review.googlesource.com/61641
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Commit-Queue: Nate Bosch <nbosch@google.com>
2018-06-21 19:52:53 +00:00
Ben Konyi d5d5daf411 Fixed cascade_test failure due to return type of operator []= being non-void.
Change-Id: I0e9bdc77442b3f566f1e4a7653c2d4564507e726
Reviewed-on: https://dart-review.googlesource.com/60700
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2018-06-21 17:31:33 +00:00
Sam Rawlins 69c807c636 Fix docs for async File methods
* "Returns a Future that completes..." is consistent with other File docs.

Bug: https://github.com/dart-lang/sdk/issues/30137
Change-Id: I0418f7cb03325442081319caf4e353db5403e68b
Reviewed-on: https://dart-review.googlesource.com/61483
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2018-06-21 17:20:13 +00:00
Sam Rawlins 569341cbe0 Improve CompressionOptions docs:
* Don't use the word "sets" on a final (no setter) member.
* Use "its" not "it's"
* Use modern dartdoc syntax
* Use markdown unordered list for `compressionDefault`.
* Use one-sentence first paragraphs.

Bug: https://github.com/dart-lang/sdk/issues/29438
Change-Id: I008c1bd0f32c7760dd64fc45fe4dd99e44498d10
Reviewed-on: https://dart-review.googlesource.com/61482
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
2018-06-21 17:14:33 +00:00
Konstantin Shcheglov 8d40afc9c0 Convert ShadowTryFinally to TryFinallyJudgment.
Different apporach here - give catches to TryFinallyJudgment and let
it rewrite its body to be TryCatch is there are catches.

R=brianwilkerson@google.com, paulberry@google.com

Change-Id: Ib793b691bcb019088fc67213f98c5202d034b25b
Reviewed-on: https://dart-review.googlesource.com/61481
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-06-21 16:59:03 +00:00
Konstantin Shcheglov 4a9abfcacb Convert ShadowForInStatement to ForInJudgment.
R=brianwilkerson@google.com, paulberry@google.com

Change-Id: I927dd645c3110a393c362ddbd09c6c33956c2d19
Reviewed-on: https://dart-review.googlesource.com/61310
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2018-06-21 16:35:03 +00:00
Kevin Millikin f2eaf6aae7 Remove type parameters from the Fasta BodyBuilder
We are pivoting our implementation of FE/Analyzer integration a little
bit, and so the BodyBuilder will not be parameterized in exactly the
same way.  Remove the existing parameterization from it and all the
supporting classes.  This requires specializing the BodyBuilder to the
front end's instantiation of it and deleting the corresponding code in
the Analyzer.

Fixes https://github.com/dart-lang/sdk/issues/33503

Change-Id: I3ddcd2c5f5ebd8f2ff95f2ec8d4c7b98b70a0b0a
Reviewed-on: https://dart-review.googlesource.com/61502
Commit-Queue: Kevin Millikin <kmillikin@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
Reviewed-by: Dan Rubel <danrubel@google.com>
2018-06-21 14:53:43 +00:00
Dmitry Stefantsov 74dd5440f1 Convert ShadowStringLiteral into StringLiteralJudgment
Change-Id: I033c7f6b1abbd1e1ffeb4b6e0c5c646897ab63ce
Reviewed-on: https://dart-review.googlesource.com/61560
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Paul Berry <paulberry@google.com>
2018-06-21 14:29:13 +00:00
Dmitry Stefantsov 10641cbf42 Update status files after 52b2a869bc
Change-Id: Icf921a4159d296ee86bfcee61deee06259886085
Reviewed-on: https://dart-review.googlesource.com/61561
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
2018-06-21 14:21:33 +00:00
Paul Berry ee19f2804a Make ResolutionStorer implement the Factory API.
Change-Id: I9cf78ef8b595e845a6e47fb30cbce162f45dc91d
Reviewed-on: https://dart-review.googlesource.com/61420
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2018-06-21 13:22:34 +00:00
Jens Johansen e2ce88dfcc Add startFileOffset on procedures et al, enable VMs GetSource
Prior to this change we only had fileOffset which points to the name.
This CL adds a field - startFileOffset - that points to the start
(e.g. 'static', 'factory', the return type or any presiding annotation
(including '@')), as well as fixing `Function::GetSource` in the VM to
fix a crash when using mirrors to ask for the source of a function or
constructor.

The field is added to procedures, constructors and classes.
The latter changes the location of classes with annotations to be
the position of the annotation. This is on-par with --no-preview-dart-2.
The change in regards to procedures and constructors mean, that both
the location and the source (from .location and .source on a
MethodMirror) will change to include any annotations. This is a
different behavior than --no-preview-dart-2.

Closes #33271.

Change-Id: I90f1232c5ec2d01e60e0bab070d44c37232b2730
Reviewed-on: https://dart-review.googlesource.com/60560
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Kevin Millikin <kmillikin@google.com>
2018-06-21 13:10:04 +00:00
Dmitry Stefantsov 52b2a869bc Update some noSuchMethod based tests to the currently desired behavior.
Fixes #33498

Bug: http://dartbug.com/33498
Change-Id: I4a62a830cc8993748da816967753a8ce9a025d46
Reviewed-on: https://dart-review.googlesource.com/61500
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
2018-06-21 12:54:42 +00:00