| 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 engine.incremental_resolver; | 5 library engine.incremental_resolver; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:math' as math; | 8 import 'dart:math' as math; |
| 9 | 9 |
| 10 import 'package:analyzer/src/context/cache.dart' | 10 import 'package:analyzer/src/context/cache.dart' |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 } | 177 } |
| 178 } | 178 } |
| 179 | 179 |
| 180 @override | 180 @override |
| 181 visitClassTypeAlias(ClassTypeAlias node) { | 181 visitClassTypeAlias(ClassTypeAlias node) { |
| 182 String name = node.name.name; | 182 String name = node.name.name; |
| 183 ClassElement element = _findElement(_enclosingUnit.types, name); | 183 ClassElement element = _findElement(_enclosingUnit.types, name); |
| 184 _enclosingClass = element; | 184 _enclosingClass = element; |
| 185 _processElement(element); | 185 _processElement(element); |
| 186 _assertSameTypeParameters(node.typeParameters, element.typeParameters); | 186 _assertSameTypeParameters(node.typeParameters, element.typeParameters); |
| 187 _processElement(element.unnamedConstructor); | |
| 188 super.visitClassTypeAlias(node); | 187 super.visitClassTypeAlias(node); |
| 189 } | 188 } |
| 190 | 189 |
| 191 @override | 190 @override |
| 192 visitCompilationUnit(CompilationUnit node) { | 191 visitCompilationUnit(CompilationUnit node) { |
| 193 _processElement(_enclosingUnit); | 192 _processElement(_enclosingUnit); |
| 194 super.visitCompilationUnit(node); | 193 super.visitCompilationUnit(node); |
| 195 } | 194 } |
| 196 | 195 |
| 197 @override | 196 @override |
| (...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2004 @override | 2003 @override |
| 2005 String toString() => name; | 2004 String toString() => name; |
| 2006 } | 2005 } |
| 2007 | 2006 |
| 2008 class _TokenPair { | 2007 class _TokenPair { |
| 2009 final _TokenDifferenceKind kind; | 2008 final _TokenDifferenceKind kind; |
| 2010 final Token oldToken; | 2009 final Token oldToken; |
| 2011 final Token newToken; | 2010 final Token newToken; |
| 2012 _TokenPair(this.kind, this.oldToken, this.newToken); | 2011 _TokenPair(this.kind, this.oldToken, this.newToken); |
| 2013 } | 2012 } |
| OLD | NEW |