Revert "Revert "Adding package:code_transformers for unifying common transformers code""

This is a re-submission of adding code_transformers with a fix for resolving the sdk directory.

The resolution was failing when executing tests with the --use-sdk flag.
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//172633006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@32908 260f80e4-7a28-3924-810f-c04153c831b5
Extending logic to find Dart's SDK directory for resolver tests

Previous logic was failing when executing from VM tests where the dart-sdk folder is not built in the output directory.
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//174663006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@32922 260f80e4-7a28-3924-810f-c04153c831b5
Fixing non-posix path issue on Window

The code dealing with paths in Resolver should always use URI paths, but was instead using native path syntax in a few places.

BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//174313004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@32972 260f80e4-7a28-3924-810f-c04153c831b5
Refactoring resolvers to make them able to be run in parallel.

With pub build and pub serve the same transformer can be run on the same asset in parallel. We want to maintain the cache between the runs, so making the resolver pipeline these requests.

In addition, refactoring to dramatically change the role of ResolverTransformer- previously it was a transformer that automatically kept the AST up to date, but this does not work well when in a pipeline of transformers that are generating or modifying code. What was ResolverTransformer is Resolvers- a cache of resolvers for which individual transformers now need to request the resolver from.

ResolverTransformer is now a mixin which can be used to automatically release a Resolver when it's done being used.

BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//181383015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@33163 260f80e4-7a28-3924-810f-c04153c831b5
New analyzer snapshot.

No 'isInstanceOf' changes yet.
Just current state with changes required to adopt to the API changes in Java.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//184893003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@33176 260f80e4-7a28-3924-810f-c04153c831b5
Update and analyzer snapshot with AST -> Ast rename.

R=brianwilkerson@google.com, rnystrom@google.com, blois@google.com, karlklose@google.com
BUG=

Review URL: https://codereview.chromium.org//185603002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@33296 260f80e4-7a28-3924-810f-c04153c831b5
New analzyer snapshot.

Replace isInstanceOf() with a predicate.

Tweaks for other packages.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//186153005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@33304 260f80e4-7a28-3924-810f-c04153c831b5
Improved 'has' properties translation.

New analyzer snapshot.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//189043003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@33399 260f80e4-7a28-3924-810f-c04153c831b5
Translate private Java members to private Dart members.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//189803004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@33453 260f80e4-7a28-3924-810f-c04153c831b5
Support for DartBlockBody, DartExpressionBody, DartOmit in java2dart.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//189433006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@33468 260f80e4-7a28-3924-810f-c04153c831b5
Fixes code_transformers after the latest analyzer changes

BUG=http://dartbug.com/17502
R=blois@google.com

Review URL: https://codereview.chromium.org//199413020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@33768 260f80e4-7a28-3924-810f-c04153c831b5
Allow multiple-entry libraries in code_transformers

R=blois@google.com

Review URL: https://codereview.chromium.org//200543006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@33772 260f80e4-7a28-3924-810f-c04153c831b5
Adding some asset-related utilities to code_transformers

Including dart entry point checks and URI->asset resolution.

BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//196943024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@34055 260f80e4-7a28-3924-810f-c04153c831b5
Updating code_transformers to not fail on syntax errors

Recent changes started using the Analyzer's parseCompilationUnit method which throws exceptions on syntax errors, but this is undesirable in many cases. Adding an option to disable this behavior and using that in code_transformers.

BUG=
R=scheglov@google.com, sigmund@google.com

Review URL: https://codereview.chromium.org//204033003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@34070 260f80e4-7a28-3924-810f-c04153c831b5
Fixes how to lookup sdk dir to support tests deeper inside test/ folders.

R=blois@google.com

Review URL: https://codereview.chromium.org//203723006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@34091 260f80e4-7a28-3924-810f-c04153c831b5
Fix analyzer and code_transformers versions

R=blois@google.com

Review URL: https://codereview.chromium.org//195893046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@34127 260f80e4-7a28-3924-810f-c04153c831b5
Revving code_transformers to stable

BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//206413008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@34192 260f80e4-7a28-3924-810f-c04153c831b5
Include exports in resolver.libraries

R=blois@google.com

Review URL: https://codereview.chromium.org//208623008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@34275 260f80e4-7a28-3924-810f-c04153c831b5
Widen the barback constraints for code_transformers and smoke.

Barback 0.12.0 doesn't introduce any transformer-level backwards incompatibilities.

R=blois@google.com

Review URL: https://codereview.chromium.org//214033002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@34462 260f80e4-7a28-3924-810f-c04153c831b5
pkg/code_transformers: removed unused imports, require latest unittest

R=sigmund@google.com

Review URL: https://codereview.chromium.org//216233002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/code_transformers@34505 260f80e4-7a28-3924-810f-c04153c831b5