Skip to content

Commit 440b068

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Remove check for FragmentImpl in computeConstantValue(), it is always element.
Change-Id: I7cb9836458f988d39944ccafee97de90825bab9e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/441361 Reviewed-by: Paul Berry <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent d4b40e9 commit 440b068

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/analyzer/lib/src/dart/constant/evaluation.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ class ConstantEvaluationEngine {
8080

8181
/// Compute the constant value associated with the given [constant].
8282
void computeConstantValue(ConstantEvaluationTarget constant) {
83-
if (constant is FragmentImpl) {
84-
var element = constant as FragmentImpl;
85-
constant = element.declaration as ConstantEvaluationTarget;
86-
}
87-
8883
var libraryFragment = constant.libraryFragment!;
8984
var library = libraryFragment.element;
9085
if (constant is FormalParameterElementImpl) {

0 commit comments

Comments
 (0)