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

Side by Side Diff: pkg/compiler/lib/src/resolution/variables.dart

Issue 2647043002: Fix hints reported by analyzer. (Closed)
Patch Set: Address review comments. Created 3 years, 11 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 dart2js.resolution.variables; 5 library dart2js.resolution.variables;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/resolution.dart'; 8 import '../common/resolution.dart';
9 import '../elements/modelx.dart' show LocalVariableElementX, VariableList; 9 import '../elements/modelx.dart' show LocalVariableElementX, VariableList;
10 import '../tree/tree.dart'; 10 import '../tree/tree.dart';
11 import '../universe/use.dart' show TypeUse;
12 import '../universe/feature.dart'; 11 import '../universe/feature.dart';
13 import '../util/util.dart' show Link; 12 import '../util/util.dart' show Link;
14 import 'members.dart' show ResolverVisitor; 13 import 'members.dart' show ResolverVisitor;
15 import 'registry.dart' show ResolutionRegistry; 14 import 'registry.dart' show ResolutionRegistry;
16 import 'resolution_common.dart' show CommonResolverVisitor; 15 import 'resolution_common.dart' show CommonResolverVisitor;
17 import 'scope.dart' show VariableDefinitionScope; 16 import 'scope.dart' show VariableDefinitionScope;
18 17
19 class VariableDefinitionsVisitor extends CommonResolverVisitor<Identifier> { 18 class VariableDefinitionsVisitor extends CommonResolverVisitor<Identifier> {
20 VariableDefinitions definitions; 19 VariableDefinitions definitions;
21 ResolverVisitor resolver; 20 ResolverVisitor resolver;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 resolver.addToScope(element); 68 resolver.addToScope(element);
70 if (definitions.modifiers.isConst) { 69 if (definitions.modifiers.isConst) {
71 addDeferredAction(element, () { 70 addDeferredAction(element, () {
72 element.constant = 71 element.constant =
73 resolution.resolver.constantCompiler.compileConstant(element); 72 resolution.resolver.constantCompiler.compileConstant(element);
74 }); 73 });
75 } 74 }
76 } 75 }
77 } 76 }
78 } 77 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/signatures.dart ('k') | pkg/compiler/lib/src/scanner/scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698