Commit Graph

143 Commits

Author SHA1 Message Date
scheglov@google.com 778536d97c Issue 19682. New analyzer snapshot that fixes an inline refactoring problem.
R=brianwilkerson@google.com
BUG= https://code.google.com/p/dart/issues/detail?id=19682

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40193 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-11 22:47:29 +00:00
jwren@google.com 83de5a8f7b New dev version of analyzer package
R=paulberry@google.com, scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40056 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-09 21:13:10 +00:00
paulberry@google.com a99a140173 Change analyzer package to a "-dev" version.
This will enable the analysis server to depend on the latest and
greatest analyzer without forcing that version on other analyzer
clients.

R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39935 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-05 21:34:53 +00:00
paulberry@google.com bd54398b61 Update analysis server to depend on analyzer 0.22.4.
Analysis server relies on some files that don't exist in analyzer 0.22.0-dev.

R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39888 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-04 21:32:34 +00:00
paulberry@google.com 8d8ee25cff Merge analysis_testing package into analysis_server.
Note that analysis_server already contains a file test/mocks.dart, so
the mocks.dart file from analysis_testing has been imported as
test/mocks2.dart.  I will merge these two into a single file in a
future CL.

R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39814 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-03 18:11:42 +00:00
paulberry@google.com 7226309842 Import analysis_services.dart into analysis_server.dart.
Having two separate packages doesn't really have any benefit, and has
the downside of forcing us to carefully avoid circular dependencies
between the two.  It makes more sense to just combine them.

This is largely a mechanical change consisting of the following renames:

1. pkg/analysis_services/lib/src/* -> pkg/analysis_server/lib/src/services/*
2. pkg/analysis_services/lib/* -> pkg/analysis_server/lib/src/services/*
3. pkg/analysis_services/test/* -> pkg/analysis_server/test/services/*

There were 4 instances where 1 and 2 created a collision:
.../services/correction/assist.dart, .../services/correction/fix.dart,
.../services/refactoring/refactoring.dart, and
.../services/search/search_engine_internal.dart.  To fix the
collision, the files coming from pkg/analysis_services/lib/src were
renamed to "..._internal.dart".

In addition, pkg/analysis_services/test/test_all.dart was modified to
call pkg/analysis_services/test/services/test_all.dart.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39349 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-18 20:17:49 +00:00
paulberry@google.com 0f559b00b0 Add analysis server API specification and related tools.
The source for the API specification is in
pkg/analysis_server/spec/spec_input.html.  This file uses custom HTML
elements to declare the machine-readable parts of the specification.

The script pkg/analysis_server/spec/generate_files processes that file
and creates two output files:

- pkg/analysis_server/spec/api.html, the human-readable analysis
  server spec.

- pkg/analysis_server/test/integration/protocol_matchers.dart, which
  is used by integration tests to check the data returned by the
  analysis server.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38937 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-06 18:34:21 +00:00
jwren@google.com 5503d8d727 Change description in analysis_server pubspec to no longer reference web sockets
R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38903 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-05 20:47:01 +00:00
scheglov@google.com 514ca3d6b4 Revert using relative paths because of the problems with the Pub bots.
R=brianwilkerson@google.com, nweiz@google.com, paulberry@google.com, danrubel@google.com, rnystrom@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38345 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-17 20:42:07 +00:00
scheglov@google.com 08184a879d Use relative paths to the packages from 'pkg' folder.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38217 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-14 22:08:20 +00:00
scheglov@google.com db4916434b Remove variable reference in combinator workaround.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38204 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-14 19:29:13 +00:00
scheglov@google.com acd4145f62 Initial implementation for 'search.findElementReferences'.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38201 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-14 17:45:28 +00:00
scheglov@google.com d51cfd6c70 Fix build after Index changes.
TBR

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38179 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-12 02:02:22 +00:00
scheglov@google.com 6d5773dc5e Tests for LocalIndex and Dart index contributor.
Pub spec files will be updated before commit.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38071 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-08 20:53:10 +00:00
scheglov@google.com 0597e61ba3 Move index/search to services.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38045 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-07 22:24:59 +00:00
scheglov@google.com bf61f59c82 Extract testing utilities into a separate package.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38039 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-07 20:50:59 +00:00
scheglov@google.com 9e33b85c31 Move file_system libraries into 'analyzer'.
I still end up including memory FS into 'analyzer' because tests for ResourceUriResolver use it.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38034 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-07 18:57:42 +00:00
scheglov@google.com 1f45100688 Move Index and IndexStore implementations into Engine.
Also move most of the related tests.

LocalIndex test is commented out, because relies on the infrastucture existing only in Server - virtual file system, mocks.
We need to move it into Engine or extract into a separate package.

This CL also removes Dart implementation of BTree.
We now use a different approach to implementing the index.

Bots are red after the previous CL, I hope that this one will fix at least some redness.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37993 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-03 21:30:25 +00:00
scheglov@google.com 4db963da6e Restore the navigation test for an unresolved part URI.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37927 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-02 00:52:41 +00:00
paulberry@google.com 66f969119d Rerun "pub list" when pubspec.lock changes.
(Note: we don't actually hardcode the dependency on pubspec.lock--we
use the "input_files" field of the output from "pub list" which tells
us the dependency).

This required some refactoring: ContextDirectory has been eliminated
and its responsibilities (creating the analysis context, UriResolvers,
and SourceFactory) have been shifted to ContextDirectoryManager and
AnalysisServerContextDirectoryManager.  Accordingly,
AnalysisServer.folderMap now maps directly from folder to
AnalysisContext.

Note: we don't yet properly handle the case where one of the
dependencies output by "pub list" is outside of the context folder.

R=brianwilkerson@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37826 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-30 17:44:37 +00:00
scheglov@google.com 0aa39f1e10 A local file-based Index implementation.
R=brianwilkerson@google.com, paulberry@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37664 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-24 18:08:00 +00:00
scheglov@google.com a1f04edbf2 Require typed_mock >= 0.0.4, as we use functions from 0.0.4 now.
R=danrubel@google.com, brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37579 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-23 04:24:09 +00:00
scheglov@google.com bd4cb891ef Port SplitIndexStore to Dart.
R=brianwilkerson@google.com, paulberry@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37556 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-20 16:18:19 +00:00
scheglov@google.com 1e0c1083d3 Remove 'as dynamic' cast after typed_mock fix.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37054 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-05 22:06:30 +00:00
scheglov@google.com 304243bc5b Add ServerOperation and queue.
Schedule operations to perform analysis.
Moving notifications into operations to be done in the next CL.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36890 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-02 18:31:49 +00:00
scheglov@google.com 125d09e37d Computers and services snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36808 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-29 22:19:21 +00:00
paulberry@google.com a9c1109b69 Allow physical folder resources to be watched for changes to their contents.
This functionality is just a thin wrapper over the existing Watcher
package.  A future CL will add similar functionality to in-memory
folder resources.

R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36714 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 22:36:20 +00:00
scheglov@google.com a37f04c568 Resource/File/Folder interfaces and implementations for dart:io and memory.
R=brianwilkerson@google.com, paulberry@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36613 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-25 16:17:19 +00:00
scheglov@google.com 91f12eba9a Soften analyzer version limits.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36594 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-23 22:31:51 +00:00
paulberry@google.com 297068d235 Add explicit dependency from analysis_server to mock.
Previously we were relying on the implicit dependency via the unittest
package, but this dependency was dropped, causing analysis_server to
break.

Eventually we want to stop relying on the mock package, but we're not
ready for that yet.

R=danrubel@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36144 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-14 00:29:34 +00:00
scheglov@google.com fa5f1af052 New analysis_server snapshot and completion.dart in analysis_services.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35817 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-06 18:54:51 +00:00
paulberry@google.com ceb5f9858e Upgrade analysis server to use analyzer-0.14.2
This picks up the fix for dartbug.com/18379, so source strings are
correctly encoded now.

R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35432 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-25 16:58:42 +00:00
scheglov@google.com c846bdd7c6 Restore thenReturnList().
R=paulberry@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35423 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-25 14:05:25 +00:00
scheglov@google.com 7166546aaa Argument matchers for mocks.
R=paulberry@google.com, brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35415 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-24 23:49:37 +00:00
scheglov@google.com 89c918f8f4 New analysis services snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35271 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-22 17:30:49 +00:00
scheglov@google.com 0d16b4e5ca Translate server interfaces and navigation/outline computers.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35182 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-18 20:16:01 +00:00
kevmoo@google.com 1119399bf3 pkg/analysis_server: fixes for unittest deprecations
R=danrubel@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34503 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-28 16:10:00 +00:00
danrubel@google.com 8db05728f2 (TBR) upgrade analyzer version in pubspec to fix build
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33604 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-12 19:57:03 +00:00
danrubel@google.com 12fdc641b4 revert r33595
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33598 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-12 18:29:58 +00:00
danrubel@google.com 2b5113a52f update analysis server pubspec
BUG=
R=scheglov@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33595 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-12 17:28:51 +00:00
brianwilkerson@google.com 3a86b9fd59 Fix the build
Review URL: https://codereview.chromium.org//191003003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@33454 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-07 21:00:39 +00:00
devoncarew@google.com b1f2b87a76 Move the unittest dependency to a dev_dependency.
(redux of https://codereview.chromium.org/132273005/)

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31841 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-15 17:46:22 +00:00
brianwilkerson@google.com 8e03a18e15 Initial server package layout
R=danrubel@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31674 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-09 19:33:15 +00:00