Skip to content

Commit 159e0b7

Browse files
scheglovcommit-bot@chromium.org
authored andcommitted
Remove SourceContainer, Source_ContentReceiver.
Change-Id: I6e801382605d412f1f24d09ee58009c249439d46 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122300 Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>
1 parent e85c98b commit 159e0b7

File tree

3 files changed

+0
-41
lines changed

3 files changed

+0
-41
lines changed

pkg/analyzer/lib/src/generated/source.dart

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -445,38 +445,6 @@ abstract class Source implements AnalysisTarget {
445445
bool exists();
446446
}
447447

448-
/**
449-
* The interface `ContentReceiver` defines the behavior of objects that can receive the
450-
* content of a source.
451-
*/
452-
abstract class Source_ContentReceiver {
453-
/**
454-
* Accept the contents of a source.
455-
*
456-
* @param contents the contents of the source
457-
* @param modificationTime the time at which the contents were last set
458-
*/
459-
void accept(String contents, int modificationTime);
460-
}
461-
462-
/**
463-
* The interface `SourceContainer` is used by clients to define a collection of sources
464-
*
465-
* Source containers are not used within analysis engine, but can be used by clients to group
466-
* sources for the purposes of accessing composite dependency information. For example, the Eclipse
467-
* client uses source containers to represent Eclipse projects, which allows it to easily compute
468-
* project-level dependencies.
469-
*/
470-
abstract class SourceContainer {
471-
/**
472-
* Determine if the specified source is part of the receiver's collection of sources.
473-
*
474-
* @param source the source in question
475-
* @return `true` if the receiver contains the source, else `false`
476-
*/
477-
bool contains(Source source);
478-
}
479-
480448
/**
481449
* Instances of the class `SourceFactory` resolve possibly relative URI's against an existing
482450
* [Source].

pkg/analyzer/test/generated/resolver_test.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import 'package:analyzer/src/error/codes.dart';
1313
import 'package:analyzer/src/generated/engine.dart';
1414
import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode;
1515
import 'package:analyzer/src/generated/resolver.dart';
16-
import 'package:analyzer/src/generated/source_io.dart';
1716
import 'package:analyzer/src/generated/testing/ast_test_factory.dart';
1817
import 'package:analyzer/src/generated/testing/element_factory.dart';
1918
import 'package:test/test.dart';
@@ -462,11 +461,6 @@ class ScopeTest extends DriverResolutionTest {
462461
}
463462
}
464463

465-
class SourceContainer_ChangeSetTest_test_toString implements SourceContainer {
466-
@override
467-
bool contains(Source source) => false;
468-
}
469-
470464
/**
471465
* Instances of the class `StaticTypeVerifier` verify that all of the nodes in an AST
472466
* structure that should have a static type associated with them do have a static type.

pkg/analyzer/test/generated/test_support.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,6 @@ class TestSource extends Source {
432432
}
433433

434434
bool exists() => exists2;
435-
void getContentsToReceiver(Source_ContentReceiver receiver) {
436-
throw new UnsupportedError('getContentsToReceiver');
437-
}
438435

439436
Source resolve(String uri) {
440437
throw new UnsupportedError('resolve');

0 commit comments

Comments
 (0)