Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

Side by Side Diff: pkg/analyzer/lib/src/generated/constant.dart

Issue 1890973002: Clean up hints after a new hint was introduced (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.src.generated.constant; 5 library analyzer.src.generated.constant;
6 6
7 import 'package:analyzer/context/declared_variables.dart'; 7 import 'package:analyzer/context/declared_variables.dart';
8 import 'package:analyzer/dart/ast/ast.dart'; 8 import 'package:analyzer/dart/ast/ast.dart';
9 import 'package:analyzer/src/dart/constant/evaluation.dart'; 9 import 'package:analyzer/src/dart/constant/evaluation.dart';
10 import 'package:analyzer/src/dart/constant/value.dart'; 10 import 'package:analyzer/src/dart/constant/value.dart';
11 import 'package:analyzer/src/generated/engine.dart'; 11 import 'package:analyzer/src/generated/engine.dart';
12 import 'package:analyzer/src/generated/engine.dart' 12 import 'package:analyzer/src/generated/engine.dart' show RecordingErrorListener;
13 show AnalysisEngine, RecordingErrorListener;
14 import 'package:analyzer/src/generated/error.dart'; 13 import 'package:analyzer/src/generated/error.dart';
15 import 'package:analyzer/src/generated/resolver.dart' show TypeProvider; 14 import 'package:analyzer/src/generated/resolver.dart' show TypeProvider;
16 import 'package:analyzer/src/generated/source.dart' show Source; 15 import 'package:analyzer/src/generated/source.dart' show Source;
17 import 'package:analyzer/src/generated/type_system.dart' 16 import 'package:analyzer/src/generated/type_system.dart'
18 show TypeSystem, TypeSystemImpl; 17 show TypeSystem, TypeSystemImpl;
19 18
20 export 'package:analyzer/context/declared_variables.dart'; 19 export 'package:analyzer/context/declared_variables.dart';
21 export 'package:analyzer/dart/constant/value.dart'; 20 export 'package:analyzer/dart/constant/value.dart';
22 export 'package:analyzer/src/dart/constant/evaluation.dart'; 21 export 'package:analyzer/src/dart/constant/evaluation.dart';
23 export 'package:analyzer/src/dart/constant/utilities.dart'; 22 export 'package:analyzer/src/dart/constant/utilities.dart';
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 DartObjectImpl result = expression.accept(new ConstantVisitor( 128 DartObjectImpl result = expression.accept(new ConstantVisitor(
130 new ConstantEvaluationEngine(_typeProvider, new DeclaredVariables(), 129 new ConstantEvaluationEngine(_typeProvider, new DeclaredVariables(),
131 typeSystem: _typeSystem), 130 typeSystem: _typeSystem),
132 errorReporter)); 131 errorReporter));
133 if (result != null) { 132 if (result != null) {
134 return EvaluationResult.forValue(result); 133 return EvaluationResult.forValue(result);
135 } 134 }
136 return EvaluationResult.forErrors(errorListener.errors); 135 return EvaluationResult.forErrors(errorListener.errors);
137 } 136 }
138 } 137 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698