| 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.element.element; | 5 library analyzer.src.dart.element.element; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:math' show min; | 8 import 'dart:math' show min; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 8899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8910 @override | 8910 @override |
| 8911 int get nameOffset { | 8911 int get nameOffset { |
| 8912 int offset = super.nameOffset; | 8912 int offset = super.nameOffset; |
| 8913 if (offset == 0 && _unlinkedTypeParam != null) { | 8913 if (offset == 0 && _unlinkedTypeParam != null) { |
| 8914 return _unlinkedTypeParam.nameOffset; | 8914 return _unlinkedTypeParam.nameOffset; |
| 8915 } | 8915 } |
| 8916 return offset; | 8916 return offset; |
| 8917 } | 8917 } |
| 8918 | 8918 |
| 8919 TypeParameterType get type { | 8919 TypeParameterType get type { |
| 8920 if (_kernel != null) { |
| 8921 _type ??= new TypeParameterTypeImpl(this); |
| 8922 } |
| 8920 if (_unlinkedTypeParam != null) { | 8923 if (_unlinkedTypeParam != null) { |
| 8921 _type ??= new TypeParameterTypeImpl(this); | 8924 _type ??= new TypeParameterTypeImpl(this); |
| 8922 } | 8925 } |
| 8923 return _type; | 8926 return _type; |
| 8924 } | 8927 } |
| 8925 | 8928 |
| 8926 void set type(TypeParameterType type) { | 8929 void set type(TypeParameterType type) { |
| 8927 _type = type; | 8930 _type = type; |
| 8928 } | 8931 } |
| 8929 | 8932 |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9289 | 9292 |
| 9290 @override | 9293 @override |
| 9291 DartObject computeConstantValue() => null; | 9294 DartObject computeConstantValue() => null; |
| 9292 | 9295 |
| 9293 @override | 9296 @override |
| 9294 void visitChildren(ElementVisitor visitor) { | 9297 void visitChildren(ElementVisitor visitor) { |
| 9295 super.visitChildren(visitor); | 9298 super.visitChildren(visitor); |
| 9296 _initializer?.accept(visitor); | 9299 _initializer?.accept(visitor); |
| 9297 } | 9300 } |
| 9298 } | 9301 } |
| OLD | NEW |