Skip to content

Commit ba80ed9

Browse files
author
Dart CI
committed
Version 2.11.0-277.0.dev
Merge commit '619e388a1d8ba8263b93cd4e9e5e6c98a00fe0f2' into 'dev'
2 parents e46c31c + 619e388 commit ba80ed9

File tree

105 files changed

+6539
-5001
lines changed

Some content is hidden

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

105 files changed

+6539
-5001
lines changed

pkg/analyzer/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 0.41.0 (Not yet released - breaking changes)
2+
* Replaced `Scope.lookup({id, setter})` with `lookup(id)`.
3+
* Deprecated `Scope.lookup2(id)`, use `lookup()` instead.
4+
* Removed deprecated `Member.baseElement`.
5+
* Removed deprecated `package:analyzer/analyzer.dart` library.
6+
* Removed deprecated `ElementAnnotation.constantValue`.
7+
* Removed deprecated `VariableElement.constantValue`.
8+
* Removed deprecated `VariableElement.initializer`.
9+
* Removed deprecated `auxiliaryElements`.
10+
* The value of`FunctionType.element` for types created from a `typedef`
11+
is now `FunctionTypeAliasElement`, not its function element.
12+
* Removed deprecated `GenericTypeAliasElement`.
13+
114
## 0.40.5
215
* Deprecated `GenericTypeAliasElement`. Use `FunctionTypeAliasElement`.
316
* Read imports, exports, and parts on demand in `AnalysisDriver`.

pkg/analyzer/lib/analyzer.dart

Lines changed: 0 additions & 191 deletions
This file was deleted.

pkg/analyzer/lib/dart/ast/ast.dart

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import 'package:analyzer/dart/ast/syntactic_entity.dart';
3838
import 'package:analyzer/dart/ast/token.dart';
3939
import 'package:analyzer/dart/element/element.dart';
4040
import 'package:analyzer/dart/element/type.dart';
41-
import 'package:analyzer/src/dart/element/element.dart' show AuxiliaryElements;
4241
import 'package:analyzer/src/generated/java_engine.dart';
4342
import 'package:analyzer/src/generated/source.dart' show LineInfo, Source;
4443
import 'package:analyzer/src/generated/utilities_dart.dart';
@@ -3235,23 +3234,6 @@ abstract class ImportDirective implements NamespaceDirective {
32353234
/// Clients may not extend, implement or mix-in this class.
32363235
abstract class IndexExpression
32373236
implements NullShortableExpression, MethodReferenceExpression {
3238-
/// Return the auxiliary elements associated with this identifier, or `null`
3239-
/// if this identifier is not in both a getter and setter context.
3240-
///
3241-
/// The auxiliary elements hold the static and propagated elements associated
3242-
/// with the getter context.
3243-
// TODO(brianwilkerson) Replace this API.
3244-
@Deprecated('Use CompoundAssignmentExpression.readElement and/or '
3245-
'CompoundAssignmentExpression.writeElement')
3246-
AuxiliaryElements get auxiliaryElements;
3247-
3248-
/// Set the auxiliary elements associated with this identifier to the given
3249-
/// [elements].
3250-
// TODO(brianwilkerson) Replace this API.
3251-
@Deprecated('Use CompoundAssignmentExpression.readElement and/or '
3252-
'CompoundAssignmentExpression.writeElement')
3253-
set auxiliaryElements(AuxiliaryElements elements);
3254-
32553237
/// Return the expression used to compute the index.
32563238
Expression get index;
32573239

@@ -4597,23 +4579,6 @@ abstract class SimpleFormalParameter implements NormalFormalParameter {
45974579
///
45984580
/// Clients may not extend, implement or mix-in this class.
45994581
abstract class SimpleIdentifier implements Identifier {
4600-
/// Return the auxiliary elements associated with this identifier, or `null`
4601-
/// if this identifier is not in both a getter and setter context.
4602-
///
4603-
/// The auxiliary elements hold the static and propagated elements associated
4604-
/// with the getter context.
4605-
// TODO(brianwilkerson) Replace this API.
4606-
@Deprecated('Use CompoundAssignmentExpression.readElement and/or '
4607-
'CompoundAssignmentExpression.writeElement')
4608-
AuxiliaryElements get auxiliaryElements;
4609-
4610-
/// Set the auxiliary elements associated with this identifier to the given
4611-
/// [elements].
4612-
// TODO(brianwilkerson) Replace this API.
4613-
@Deprecated('Use CompoundAssignmentExpression.readElement and/or '
4614-
'CompoundAssignmentExpression.writeElement')
4615-
set auxiliaryElements(AuxiliaryElements elements);
4616-
46174582
/// Return `true` if this identifier is the "name" part of a prefixed
46184583
/// identifier or a method invocation.
46194584
bool get isQualified;

pkg/analyzer/lib/dart/element/element.dart

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -691,12 +691,6 @@ abstract class ElementAnnotation implements ConstantEvaluationTarget {
691691
/// produced but no errors were generated, then the list will be empty.
692692
List<AnalysisError> get constantEvaluationErrors;
693693

694-
/// Return a representation of the value of this annotation, or `null` if the
695-
/// value of this annotation has not been computed or if the value could not
696-
/// be computed because of errors.
697-
@Deprecated('Use computeConstantValue() instead')
698-
DartObject get constantValue;
699-
700694
/// Return the element referenced by this annotation.
701695
///
702696
/// In valid code this element can be a [PropertyAccessorElement] getter
@@ -1199,12 +1193,6 @@ abstract class FunctionTypedElement implements TypeParameterizedElement {
11991193
/// Clients may not extend, implement, or mix-in this class.
12001194
abstract class GenericFunctionTypeElement implements FunctionTypedElement {}
12011195

1202-
/// A synonym for [FunctionTypeAliasElement].
1203-
///
1204-
/// Clients may not extend, implement, or mix-in this class.
1205-
@Deprecated('Use FunctionTypeAliasElement instead')
1206-
abstract class GenericTypeAliasElement implements FunctionTypeAliasElement {}
1207-
12081196
/// A combinator that causes some of the names in a namespace to be hidden when
12091197
/// being imported.
12101198
///
@@ -1755,28 +1743,13 @@ abstract class UriReferencedElement implements Element {
17551743
///
17561744
/// Clients may not extend, implement or mix-in this class.
17571745
abstract class VariableElement implements Element, ConstantEvaluationTarget {
1758-
/// Return a representation of the value of this variable.
1759-
///
1760-
/// Return `null` if either this variable was not declared with the 'const'
1761-
/// modifier or if the value of this variable could not be computed because of
1762-
/// errors.
1763-
@Deprecated('Use computeConstantValue() instead')
1764-
DartObject get constantValue;
1765-
17661746
@override
17671747
VariableElement get declaration;
17681748

17691749
/// Return `true` if this variable element did not have an explicit type
17701750
/// specified for it.
17711751
bool get hasImplicitType;
17721752

1773-
/// Return a synthetic function representing this variable's initializer, or
1774-
/// `null` if this variable does not have an initializer. The function will
1775-
/// have no parameters. The return type of the function will be the
1776-
/// compile-time type of the initialization expression.
1777-
@deprecated
1778-
FunctionElement get initializer;
1779-
17801753
/// Return `true` if this variable was declared with the 'const' modifier.
17811754
bool get isConst;
17821755

pkg/analyzer/lib/dart/element/scope.dart

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,22 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
import 'package:analyzer/dart/element/element.dart';
6-
import 'package:meta/meta.dart';
76

87
/// Scopes are used to resolve names to elements.
98
abstract class Scope {
10-
/// Return the element with the name `id` or `id=` (if [setter] is `true`),
11-
/// `null` if the name is not defined within this scope.
12-
@Deprecated('Use lookup2() that is closer to the language specification')
13-
Element lookup({@required String id, @required bool setter});
9+
/// Return the result of lexical lookup for the given [id], not `null`.
10+
///
11+
/// Getters and setters are bundled, when we found one or another, we are
12+
/// done with the lookup, and return both the getter and the setter, if
13+
/// available.
14+
ScopeLookupResult lookup(String id);
1415

1516
/// Return the result of lexical lookup for the given [id], not `null`.
1617
///
1718
/// Getters and setters are bundled, when we found one or another, we are
1819
/// done with the lookup, and return both the getter and the setter, if
1920
/// available.
21+
@Deprecated('Use lookup() instead')
2022
ScopeLookupResult lookup2(String id);
2123
}
2224

pkg/analyzer/lib/src/dart/ast/ast.dart

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import 'package:analyzer/dart/element/type.dart';
1515
import 'package:analyzer/exception/exception.dart';
1616
import 'package:analyzer/src/dart/ast/to_source_visitor.dart';
1717
import 'package:analyzer/src/dart/ast/token.dart';
18-
import 'package:analyzer/src/dart/element/element.dart';
1918
import 'package:analyzer/src/fasta/token_utils.dart' as util show findPrevious;
2019
import 'package:analyzer/src/generated/engine.dart' show AnalysisEngine;
2120
import 'package:analyzer/src/generated/engine.dart';
@@ -5814,14 +5813,6 @@ class IndexExpressionImpl extends ExpressionImpl
58145813
@override
58155814
MethodElement staticElement;
58165815

5817-
/// If this expression is both in a getter and setter context, the
5818-
/// [AuxiliaryElements] will be set to hold onto the static element from the
5819-
/// getter context.
5820-
@Deprecated('Use CompoundAssignmentExpression.readElement and/or '
5821-
'CompoundAssignmentExpression.writeElement')
5822-
@override
5823-
AuxiliaryElements auxiliaryElements;
5824-
58255816
/// Initialize a newly created index expression that is a child of a cascade
58265817
/// expression.
58275818
IndexExpressionImpl.forCascade(this.period, this.question, this.leftBracket,
@@ -8834,14 +8825,6 @@ class SimpleIdentifierImpl extends IdentifierImpl implements SimpleIdentifier {
88348825
/// this identifier could not be resolved.
88358826
Element _staticElement;
88368827

8837-
/// If this expression is both in a getter and setter context, the
8838-
/// [AuxiliaryElements] will be set to hold onto the static element from the
8839-
/// getter context.
8840-
@Deprecated('Use CompoundAssignmentExpression.readElement and/or '
8841-
'CompoundAssignmentExpression.writeElement')
8842-
@override
8843-
AuxiliaryElements auxiliaryElements;
8844-
88458828
@override
88468829
List<DartType> tearOffTypeArgumentTypes;
88478830

0 commit comments

Comments
 (0)