scheglov@google.com
c0e823e0f7
Don't infer non-final field types
...
We can not analyze universe and prove that field is not reassigned to have value of othe type.
R=brianwilkerson@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10825190
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10260 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 22:10:39 +00:00
devoncarew@google.com
eec0cd7855
Fixed several compiler warnings.
...
Review URL: https://chromiumcodereview.appspot.com//10832144
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10256 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 22:01:40 +00:00
scheglov@google.com
48d5420f6c
Issue 4354. Fix for NPE when switch/case has no expression
...
http://code.google.com/p/dart/issues/detail?id=4354
R=brianwilkerson@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10825185
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10243 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 19:36:52 +00:00
scheglov@google.com
0b01ba645c
Issue 4347. Fix for 'as' type cast parsing and nodes positions
...
http://code.google.com/p/dart/issues/detail?id=4347
R=brianwilkerson@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10823164
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10241 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 18:56:52 +00:00
scheglov@google.com
099e23eb11
Issue 3847. Allow non-constant instance variable initializers
...
http://code.google.com/p/dart/issues/detail?id=3847
R=brianwilkerson@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10830145
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10233 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 14:41:00 +00:00
danrubel@google.com
c450181f31
translate uris pointing to non-existing dart libraries
...
Review URL: https://chromiumcodereview.appspot.com//10843040
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10153 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 03:28:34 +00:00
scheglov@google.com
cec0b6cf01
Issue 4315. Fix for type of cascade assignment
...
http://code.google.com/p/dart/issues/detail?id=4315
R=brianwilkerson@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10827127
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10150 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 00:00:21 +00:00
scheglov@google.com
9874031222
Issue 4300. Support for 'external' keyword
...
http://code.google.com/p/dart/issues/detail?id=4300
R=brianwilkerson@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10823127
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10144 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 22:09:49 +00:00
brianwilkerson@google.com
709a44a4f3
Fix for issue 4242
...
Review URL: https://chromiumcodereview.appspot.com//10834113
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10137 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 19:01:37 +00:00
scheglov@google.com
a4bc575bf2
Issue 4238. Infer Element subclass from query() parameter
...
http://code.google.com/p/dart/issues/detail?id=4238
R=brianwilkerson@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10825135
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10128 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 18:13:12 +00:00
keertip@google.com
1380d64e60
set package root after creating configuration, since defualt compiler configuration is used by analysis server too.
...
Review URL: http://codereview.chromium.org//10821119
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10095 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 22:43:20 +00:00
scheglov@google.com
50d8814ed6
Issue 4262. Support for --version in dart_analyzer
...
http://code.google.com/p/dart/issues/detail?id=4262
Also fix for using "dartc" in usage text.
http://code.google.com/p/dart/issues/detail?id=4261
R=brianwilkerson@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10825112
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10084 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 19:39:14 +00:00
keertip@google.com
68cae7ebba
fix resolving import uri's for packages
...
Review URL: http://codereview.chromium.org//10823060
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10077 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 18:07:24 +00:00
brianwilkerson@google.com
8723c22ee4
Fix for issue 2439
...
Review URL: https://chromiumcodereview.appspot.com//10823090
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10058 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 14:47:32 +00:00
brianwilkerson@google.com
f3dc7258c8
Fix for issue 4109
...
Review URL: https://chromiumcodereview.appspot.com//10823085
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10024 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 19:46:52 +00:00
brianwilkerson@google.com
08e1f8c63b
Bug fix for issue 4256
...
Review URL: https://chromiumcodereview.appspot.com//10825079
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10019 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-30 16:50:51 +00:00
scheglov@google.com
df6f881967
Issue 4090. For-in loop variable should not be visible in iterable expression.
...
R=brianwilkerson@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10826055
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10002 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-28 15:20:40 +00:00
scheglov@google.com
72b2199a3a
Issue 4072. Generate warning when private instance method is called
...
R=brianwilkerson@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10829064
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10001 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-28 00:52:24 +00:00
danrubel@google.com
900fa10dcd
Restore DartCompiler method to fix the build (TBR)
...
Review URL: https://chromiumcodereview.appspot.com//10826053
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9993 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-27 21:04:20 +00:00
danrubel@google.com
5bdca22f3b
Replace parsed and resolved maps with cache interface
...
Review URL: https://chromiumcodereview.appspot.com//10826047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9991 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-27 20:03:13 +00:00
keertip@google.com
e41a49c9a6
fix support for --package-root command line option to analyzer
...
Review URL: https://chromiumcodereview.appspot.com//10825054
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9981 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-27 16:15:29 +00:00
brianwilkerson@google.com
e212422aa0
Fix for issue 3915
...
Review URL: https://chromiumcodereview.appspot.com//10824045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9944 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 17:19:00 +00:00
brianwilkerson@google.com
deec248e91
Fix for issue 3783
...
Review URL: https://chromiumcodereview.appspot.com//10833012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9909 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 21:18:02 +00:00
brianwilkerson@google.com
85b8de496c
Fix for issue 1489
...
Review URL: https://chromiumcodereview.appspot.com//10823014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9892 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 16:20:48 +00:00
scheglov@google.com
53c1cc23a5
Basic 'Quick Fix' support and one fix as example/test
...
Also use ErrorCdoe instead of "problemId" integer.
R=messick@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10816034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9865 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 21:48:39 +00:00
scheglov@google.com
787b7602d1
Convert into/from => function syntax
...
R=messick@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10818028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9864 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 21:25:16 +00:00
scheglov@google.com
a25ed30356
Check for conflicts between new function/method and other elements.
...
R=messick@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10790117
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9812 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-23 14:33:54 +00:00
keertip@google.com
80a831b570
changes to SystemLibraryManager to support list of roots
...
Review URL: http://codereview.chromium.org//10809023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9786 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-20 20:01:28 +00:00
jwren@google.com
51ffc7db49
Folded in recent changes from the dartc parser error codes into the Analysis Engine.
...
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10793029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9716 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-17 18:08:37 +00:00
scheglov@google.com
894762c40a
Cache model elements for compiler elements.
...
With this Editor Core tests run 2 times faster.
Indexing speed increased several times, something like 5-7.
R=brianwilkerson@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10692198
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9635 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-13 16:18:53 +00:00
scheglov@google.com
4e76ba611a
Optimize comments to nodes binding
...
R=brianwilkerson@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10695166
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9600 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 16:36:44 +00:00
scheglov@google.com
376923affa
Fix copyright year
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9599 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 16:35:22 +00:00
scheglov@google.com
bb13f021a4
Use 'int' instead of Position.
...
By doing so we get 5-7% of performance in running JUnit tests.
R=brianwilkerson@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10704180
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9596 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 16:10:10 +00:00
scheglov@google.com
c4327d6db5
Issue 3986. Class member cannot have the same name as the class
...
http://code.google.com/p/dart/issues/detail?id=3986
R=brianwilkerson@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10735039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9577 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 00:31:07 +00:00
scheglov@google.com
f9339df1eb
Issue 4040. Fix NPE when report problem with no node.
...
http://code.google.com/p/dart/issues/detail?id=4040
Clean up after previous quick build fixes.
Can not reproduce actual rename problem, but it may be caused by exception during parsing which this CL is fixing.
R=brianwilkerson@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10700146
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9522 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 20:28:06 +00:00
scheglov@google.com
5d73fe4cf3
Attempt to fix build
...
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9514 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 16:15:49 +00:00
scheglov@google.com
69435a374d
Issue 2622. Fix for SourceInfo for DartUnit for one case of invalid source
...
http://code.google.com/p/dart/issues/detail?id=2622
R=messick@google.com ,brianwilkerson@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10702119
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9513 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 16:02:01 +00:00
scheglov@google.com
38feb0a647
Issue 3985. Tweaks for warning messages
...
http://code.google.com/p/dart/issues/detail?id=3985
R=devoncarew@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10704114
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9451 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-08 14:02:15 +00:00
devoncarew@google.com
a5ad949dd4
TBR fix my fix
...
Review URL: https://chromiumcodereview.appspot.com//10701110
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9449 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 20:38:28 +00:00
devoncarew@google.com
3f82af28b6
Fix a build issue w/ non-terminating builds and issues parsing dart:html.
...
Review URL: https://chromiumcodereview.appspot.com//10690099
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9448 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 17:19:17 +00:00
devoncarew@google.com
4efd5000c1
Terminate parsing any single compilation unit if we encounter more then 100 parse errors.
...
Review URL: https://chromiumcodereview.appspot.com//10704068
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9445 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 16:20:40 +00:00
zundel@google.com
838a513f89
Add unit tests for ParserErrorCode values
...
Review URL: https://chromiumcodereview.appspot.com//10692080
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9377 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 21:28:59 +00:00
zundel@google.com
8a466804dc
Another round of JUnit tests to finish off ResovlerErrorCodes I could reproduce
...
Review URL: https://chromiumcodereview.appspot.com//10700089
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9373 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 18:51:04 +00:00
zundel@google.com
c7f31ca176
Migrates some resolver errors to parser stage
...
I found some resolver errors I could not reproduce because they were
not reachable code (parser wouldn't accept them). Since we have discussed
running the analysis server in stages where parsing might be done first,
it made sense to me to move some error reporting into the parser anywy.
I also tried to make the messages more friendly.
Review URL: https://chromiumcodereview.appspot.com//10690074
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9361 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 16:24:30 +00:00
zundel@google.com
209c5ba14b
Another small batch of resolver tests
...
Removed some logic that duplicates errors from the parsing step
Review URL: https://chromiumcodereview.appspot.com//10695079
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9356 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 15:04:37 +00:00
zundel@google.com
7b28b0c257
Another small batch of Junit test for errors in the resolver
...
Review URL: https://chromiumcodereview.appspot.com//10693074
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9315 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 21:37:29 +00:00
zundel@google.com
029e0bd4ef
Added a few tests, removed some error codes from Resolver
...
Review URL: https://chromiumcodereview.appspot.com//10695067
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9313 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 21:21:01 +00:00
zundel@google.com
502a83da3c
Adds some JUnit tests for type analysis
...
Review URL: https://chromiumcodereview.appspot.com//10704057
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9299 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 16:38:59 +00:00
zundel@google.com
f899cff1f7
Mark analyzer error codes with no corresponding JUnit test
...
Review URL: https://chromiumcodereview.appspot.com//10700059
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9287 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-02 14:50:34 +00:00
scheglov@google.com
2ffcb28ff6
Issue 3931. Visit children nodes safely.
...
http://code.google.com/p/dart/issues/detail?id=3931
R=brianwilkerson@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10702054
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9276 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-30 00:53:08 +00:00