Skip to content

Commit 5d4cd6d

Browse files
stereotype441commit-bot@chromium.org
authored andcommitted
Breaking changes for analyzer version 0.39.
Change-Id: Ifa9ca24487f93f3eb0ec95eeb64f5bbb5aa32714 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113216 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
1 parent 2423ffe commit 5d4cd6d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+334
-17809
lines changed

pkg/analysis_server/lib/src/status/element_writer.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ class ElementWriter extends GeneralizingElementVisitor with TreeWriter {
123123
properties['isDartCore'] = element.isDartCore;
124124
properties['isInSdk'] = element.isInSdk;
125125
}
126-
if (element is LocalElement) {
127-
properties['visibleRange'] = element.visibleRange;
128-
}
129126
if (element is ParameterElement) {
130127
properties['defaultValueCode'] = element.defaultValueCode;
131128
properties['isInitializingFormal'] = element.isInitializingFormal;

pkg/analyzer/CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
## 0.39.0
2+
* Removed deprecated `DartType.isEquivalentTo`.
3+
* Removed `useDart2jsPaths` argument in `FolderBasedDartSdk` constructor.
4+
Dartium does not exist anymore, so there is just one `dart:html`.
5+
* Removed several unused members of `SourceFactory`: `context`,
6+
`localSourcePredicate`, `clone`, `fromEncoding`, `isLocalSource`.
7+
* Removed deprecated method `Element.computeNode`.
8+
* Removed deprecated getter `CompilationUnitElement.unit`.
9+
* Removed deprecated method `Element.computeDocumentationComment`.
10+
* Removed unused `wrapped.dart` with `WrappedLibraryElement`, etc.
11+
* Removed deprecated 'bestElement', 'bestType', 'propagatedElement',
12+
'propagatedType', etc. Use 'staticElement' and 'staticType' instead.
13+
* Removed deprecated 'Declaration.element'.
14+
Use 'Declaration.declaredElement' instead.
15+
* Removed deprecated 'Expression.precedence2'. Use 'precedence' instead.
16+
* Removed `ResolutionMap resolutionMap`. Use corresponding accessors
17+
on AstNode(s) directly to get elements and types.
18+
* Removed 'InheritanceManager2'. Use 'InheritanceManager3' instead.
19+
* Removed 'InheritanceManager'. Use 'InheritanceManager3' instead.
20+
* Removed deprecated methods in `DartType`: `flattenFutures`,
21+
`isAssignableTo`, `isEquivalentTo`, `isMoreSpecificThan`,
22+
`isSubtypeOf`, `isSupertypeOf`, `isDirectSupertypeOf`.
23+
Use corresponding methods of `TypeSystem` instead.
24+
* Removed deprecated getters for checking a specific annotations on
25+
'Element': `isAlwaysThrows`, `isDeprecated`, `isFactory`, `isJS`,
26+
`isOverride`, `isProtected`, `isRequired`, `isVisibleForTesting`.
27+
Use corresponding `hasXyz` getters.
28+
* Removed 'LocalElement.visibleRange'.
29+
Visible ranges of local variables and functions can be computed when
30+
AST is available.
31+
* Removed unused `LibraryElement.libraryCycle`.
32+
* Removed `ElementHandle` and `ElementResynthesizer`.
33+
* Remove `ElementBuilder`, `DeclarationResolver`, `DirectiveResolver`,
34+
`TypeParameterBoundsResolver`, `TypeResolverVisitor`, etc.
35+
Use `ResolutionVisitor` instead, it combines all these operations.
36+
* Removed `FunctionTypeAliasElement.instantiate`, use `instantiate2` for now.
37+
In the next version `instantiate` will be re-introduced with the same
38+
signature and semantics as `instantiate2`, and `instantiate2` will be
39+
deprecated and removed in the next breaking change version.
40+
* Stop setting types for identifiers where they are not expressions.
41+
Specifically, where a SimpleIdentifier is the name of a declaration,
42+
or Identifier is the name of the class in a TypeName.
43+
* Removed transitional `InheritanceManagerBase`.
44+
* Removed deprecated method `ArgumentList.correspondingPropagatedParameters`.
45+
Use `ArgumentList.correspondingStaticParameters` instead.
46+
* Removed deprecated getter `PrefixElement.importedLibraries`. It was never
47+
implemented.
48+
* Removed deprecated getter `VariableElement.isPotentiallyMutatedInClosure` and
49+
`VariableElement.isPotentiallyMutatedInScope`. Please use the corresponding
50+
methods in `FunctionBody` instead.
51+
* Bug fixes: 33441, 35777, 35993, 37898, 38560, 38803, 38811, 38900, 38911.
52+
153
## 0.38.5
254
* Added the interface `PromotableElement`, which representing
355
variables that can be type promoted (local variables and parameters,

0 commit comments

Comments
 (0)