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

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

Issue 1215053003: Compute mixin application constructors in the ClassElement.constructors getter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/error_verifier.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698