Commit Graph

14 Commits

Author SHA1 Message Date
Paul Berry ac5578d03d Refactor analysis server code generation to re-use logic from analyzer.
The code generation infrastructure logic is now shared.

R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/1431683002 .
2015-11-02 16:18:03 -08:00
danrubel d6580fd9fb generated analysis server java client code package rename
This changes the generated package name to better reflect our new home
from com.google.dart.server.generated.types
to   org.dartlang.analysis.server.protocol

BUG=
R=paulberry@google.com

Review URL: https://codereview.chromium.org//1164683003
2015-06-04 17:29:35 -04:00
paulberry@google.com de0cb1f374 Create a new home for Java code generated by analysis server.
This code used to be generated directly into
editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated,
however now that editor is no longer part of this repository that
doesn't work anymore.

Fixes the test pkg/analysis_server/tool/spec/check_all_test.

R=danrubel@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45646 260f80e4-7a28-3924-810f-c04153c831b5
2015-05-08 16:40:04 +00:00
brianwilkerson@google.com 09b93c2416 Support code generation for other languages
R=paulberry@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43144 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-26 19:35:48 +00:00
jwren@google.com 36f5f8e768 Move AnalysisServer to package ...generated to indicated that the file shouldnt be changed manually.
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43119 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-23 20:10:03 +00:00
jwren@google.com 54727b8eca Add addStatusListener to the AnalysisServer generator.
R=keertip@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@43049 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-21 18:25:18 +00:00
jwren@google.com 473438f940 Addition of AnalysisServer.isSocketOpen for clients to know if the server is still running.
Execution of generate_all for recent changes to the analyzer spec input, and resulting changes to have editor and the java server layer compile.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42787 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-12 21:46:59 +00:00
scheglov@google.com b8da9bc651 Format and sort analyzer and analysis_server packages.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41792 260f80e4-7a28-3924-810f-c04153c831b5
2014-11-17 22:23:53 +00:00
jwren@google.com 9eca55332e Remove watchdog from RemoteAnalysisServerImpl
R=danrubel@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40400 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-17 20:53:21 +00:00
jwren@google.com 9f2e374200 Make more use of generated code in Java analysis server.
These request/responses are now up to date with the spec:
- server.status
- analysis.setSubscriptions
- analysis.updateContent
- analysis.flushResults
- analysis.highlights
- analysis.navigation
- analysis.overrides

Type generation was updated so getters of boolean types would be isX instead of getX

HighlightRegion, NavigationRegion and Outline now have the method containsInclusive generated.

Occurrences now has the additional method contains(int) generated.

AddContentOverlay, ChangeContentOverlay and RemoveContentOverlay no longer take a String type as an input to the type.

Removal of many non-generated types defined in spec.

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39512 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-24 12:11:02 +00:00
jwren@google.com 7c370bf74c Initial code to generate the Java types from the spec. A constructor, the fields, getters, toString, and equals are all implemented. hashCode is not yet generated for each class.
This doesn't do anything with enum types.

The main source is in codegen_java_types.dart

The types are not yet used in the Java server.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39228 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-13 22:37:17 +00:00
paulberry@google.com d03c364236 Add a test to verify that analysis server code generation is up to date.
This test will run on the Windows, Linux, and MacOS buildbots, so it
should help ensure that code generation works properly on all of those
platforms.

R=jwren@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39201 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-13 15:29:04 +00:00
jwren@google.com b685fa31ee Get the RemoteAnalysisServer to compile against the new generated AnalysisServer interface.
This disables any and all functionality that is not up to date with the current server spec.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39164 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-12 21:14:24 +00:00
jwren@google.com 6e66a26763 Initial cut at generating the AnalysisServer.java interface. Currently this generates a commented out interface as the java server is not up to date with the spec.
This work iterates on the work that Paul started.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39155 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-12 18:33:59 +00:00