OLD | NEW |
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.dart.resolver.scope; | 5 library analyzer.src.dart.resolver.scope; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| 11 import 'package:analyzer/error/error.dart'; |
11 import 'package:analyzer/src/dart/element/element.dart'; | 12 import 'package:analyzer/src/dart/element/element.dart'; |
| 13 import 'package:analyzer/src/error/codes.dart'; |
12 import 'package:analyzer/src/generated/engine.dart'; | 14 import 'package:analyzer/src/generated/engine.dart'; |
13 import 'package:analyzer/src/generated/error.dart'; | |
14 import 'package:analyzer/src/generated/java_engine.dart'; | 15 import 'package:analyzer/src/generated/java_engine.dart'; |
15 import 'package:analyzer/src/generated/source.dart'; | 16 import 'package:analyzer/src/generated/source.dart'; |
16 | 17 |
17 /** | 18 /** |
18 * The scope defined by a block. | 19 * The scope defined by a block. |
19 */ | 20 */ |
20 class BlockScope extends EnclosedScope { | 21 class BlockScope extends EnclosedScope { |
21 /** | 22 /** |
22 * Initialize a newly created scope, enclosed within the [enclosingScope], | 23 * Initialize a newly created scope, enclosed within the [enclosingScope], |
23 * based on the given [block]. | 24 * based on the given [block]. |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 | 1166 |
1166 /** | 1167 /** |
1167 * Define the type parameters declared by the [classElement]. | 1168 * Define the type parameters declared by the [classElement]. |
1168 */ | 1169 */ |
1169 void _defineTypeParameters(ClassElement classElement) { | 1170 void _defineTypeParameters(ClassElement classElement) { |
1170 for (TypeParameterElement typeParameter in classElement.typeParameters) { | 1171 for (TypeParameterElement typeParameter in classElement.typeParameters) { |
1171 define(typeParameter); | 1172 define(typeParameter); |
1172 } | 1173 } |
1173 } | 1174 } |
1174 } | 1175 } |
OLD | NEW |