Jennifer Messerly
132ddcaacf
fix errors and warnings in DDC
...
TBR=vsm@google.com ,jacobr@google.com
Review-Url: https://codereview.chromium.org/2768693003 .
2017-03-21 20:12:05 -07:00
Jacob Richman
9484ac8bdf
Format all dart dev compiler files
...
BUG=
R=vsm@google.com
Review-Url: https://codereview.chromium.org/2752163002 .
2017-03-15 21:34:25 -07:00
Jacob Richman
2ec1890ac4
Tweak location sdk summary is accessed from.
...
Bazel build rules now place the sdk summary in a different directory
than the summary root directory. Fix the ddc compiler running in the
browser to match.
BUG=
R=vsm@google.com
Review-Url: https://codereview.chromium.org/2753723002 .
2017-03-14 17:41:50 -07:00
Devon Carew
b80390d0f5
Have dartdevc support --version.
...
BUG=
R=vsm@google.com
Review-Url: https://codereview.chromium.org/2747743003 .
2017-03-13 16:10:21 -07:00
Jacob Richman
c9675aeefb
Do not return the JSON as an escaped String to work around a strange v8 bug.
...
This makes the source files a little easier to read anyway and the JSON
is not typically that nested so there should be a minimal statup performance hit.
Do not return the JSON as an escaped String to work around a strange v8 bug.
BUG=
R=vsm@google.com
Review-Url: https://codereview.chromium.org/2747733003 .
2017-03-13 15:49:09 -07:00
Jacob Richman
1f38879094
Inline source maps as part of each script.
...
Unfortunately this is required as even with ideal caching, performing
XHRs to load all source maps increased load times by ~5 seconds for large
applications. Performance hit is now minimal.
BUG=
Review-Url: https://codereview.chromium.org/2747513003 .
Review-Url: https://codereview.chromium.org/2746033003 .
2017-03-13 10:46:02 -07:00
Jacob Richman
7ba7e0cee6
Make all DDC internal stack traces apply source maps.
...
Make DDC a better platform for debugging by ensuring that stack traces
generated by DDC even when using the raw dart:core StackTrace class
apply JS source maps and benefit from the polish provided by the
stack_trace package.
stack_trace_mapper.dart needs to be compiled to js and included on your
page to benefit from this functionality. Otherwise you will still see
regular JS stack traces as usual.
BUG=
R=vsm@google.com
Review-Url: https://codereview.chromium.org/2735303002 .
2017-03-08 19:13:00 -08:00
Jacob Richman
a1b8c1c6d5
Extend the API exposed to JS to include a method that resolves urls against the summaryDataStore finding the closest match to a file with a summary or returning null if no urls match the path.
...
Update dev_compiler web project to work with latest analyzer changes.
Tweak API to work better with new summary paths and small polish items.
BUG=
R=jmesserly@google.com
Review-Url: https://codereview.chromium.org/2713773004 .
2017-02-23 11:29:10 -08:00
Vijay Menon
d5e5feb686
Shut up bad analyzer warning
...
This is a workaround for #28507
TBR=leafp@google.com
Review-Url: https://codereview.chromium.org/2667753003 .
2017-01-31 10:08:47 -08:00
Dan Rubel
55ef6e193c
support --options flag and other analysis options flags in DDC
...
This updates DDC options processing to support:
* --options /path/to/analysis/options/file.yaml
* --enable-strict-call-checks
* --supermixin
* --no-implicit-casts
* --no-implicit-dynamic
As well as general refactoring and cleanup of DDC options processing
R=vsm@google.com
Review-Url: https://codereview.chromium.org/2598593003 .
2017-01-04 18:15:21 -05:00
Dan Rubel
13bd1ad0bf
DDC/AnalyzerCLI common cmdline option processing
...
Refactor DDC and Analyzer CLI command line option processing
to use common createContextBuilderOptions method
and ContextBuilderOptions to hold common options.
R=brianwilkerson@google.com
Review-Url: https://codereview.chromium.org/2584293003 .
2016-12-19 16:24:20 -05:00
Jennifer Messerly
2e8d011ca3
fix #27607 , add dev_compiler summary to the SDK and move JS files
...
R=vsm@google.com
Review URL: https://codereview.chromium.org/2474523003 .
2016-11-01 18:17:43 -07:00
Jacob Richman
4f6ce11bc8
Emulate compiling a source file in the context of an existing library. Add --debugger-compile flag that performs permissive dynamic calls on private members. Polish web_command.dart adding the ability to evaluate code in the context of an existing library.
...
BUG=
R=brianwilkerson@google.com , jmesserly@google.com
Review URL: https://codereview.chromium.org/2423313002 .
2016-10-18 16:34:48 -07:00
Jacob Richman
d858c4f2ae
Fix build break.
...
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org/2346573002 .
2016-09-14 13:07:34 -07:00
Vijay Menon
e52613f151
Fix error message
...
R=jacobr@google.com
Review URL: https://codereview.chromium.org/2329493002 .
2016-09-09 09:02:50 -07:00
John Messerly
48817e61f7
fix strong mode messages in pkg/dev_compiler
...
R=vsm@google.com
Review URL: https://codereview.chromium.org/2314193002 .
2016-09-07 09:06:24 -07:00
Jacob Richman
38724f0626
Update web_command code so that it continues to use the legacy module loader. Drive by removal of misleading comments.
...
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org/2303163002 .
2016-09-06 09:57:05 -07:00
Vijay Menon
2bc19eaa64
Remove deprecated code
...
Updating to the latest analyzer.
R=brianwilkerson@google.com
Review URL: https://codereview.chromium.org/2289263004 .
2016-08-30 15:39:38 -07:00
John Messerly
c1139934a7
fix #626 , add AMD module format and make it default
...
R=nweiz@google.com , vsm@google.com
Review URL: https://codereview.chromium.org/2249233002 .
2016-08-25 09:39:36 -07:00
Priscilla Lee
386ad0aea4
Removed copy of dart sdk summaries. No longer needed to run the dev compiler in the browser.
...
BUG=
Review URL: https://codereview.chromium.org/2230743002 .
2016-08-10 10:01:16 -07:00
John Messerly
94085a662e
a few cleanups to get IDE message clean
...
R=priscillalee@google.com
Review URL: https://codereview.chromium.org/2221253003 .
2016-08-09 13:40:45 -07:00
Priscilla Lee
1233b35daa
Restructured the set up for the compiling function. Also added room for list of additional summaries.
...
BUG=
R=jacobr@google.com , jmesserly@google.com
Review URL: https://codereview.chromium.org/2208243002 .
2016-08-09 10:40:35 -07:00
Priscilla Lee
d2ec49d1f7
Working compiler in browser.
...
BUG=
R=jmesserly@google.com
Review URL: https://codereview.chromium.org/2183603003 .
2016-07-29 09:18:13 -07:00