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

Side by Side Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 1262163002: Implement DEP 34 (less restricted mixins) in analysis engine. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 analyzer.src.task.dart; 5 library analyzer.src.task.dart;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/src/context/cache.dart'; 9 import 'package:analyzer/src/context/cache.dart';
10 import 'package:analyzer/src/generated/ast.dart'; 10 import 'package:analyzer/src/generated/ast.dart';
(...skipping 3201 matching lines...) Expand 10 before | Expand all | Expand 10 after
3212 // 3212 //
3213 // Use the ConstantVerifier to compute errors. 3213 // Use the ConstantVerifier to compute errors.
3214 // 3214 //
3215 ConstantVerifier constantVerifier = new ConstantVerifier( 3215 ConstantVerifier constantVerifier = new ConstantVerifier(
3216 errorReporter, libraryElement, typeProvider, context.declaredVariables); 3216 errorReporter, libraryElement, typeProvider, context.declaredVariables);
3217 unit.accept(constantVerifier); 3217 unit.accept(constantVerifier);
3218 // 3218 //
3219 // Use the ErrorVerifier to compute errors. 3219 // Use the ErrorVerifier to compute errors.
3220 // 3220 //
3221 ErrorVerifier errorVerifier = new ErrorVerifier(errorReporter, 3221 ErrorVerifier errorVerifier = new ErrorVerifier(errorReporter,
3222 libraryElement, typeProvider, new InheritanceManager(libraryElement)); 3222 libraryElement, typeProvider, new InheritanceManager(libraryElement),
3223 context.analysisOptions.enableSuperMixins);
3223 unit.accept(errorVerifier); 3224 unit.accept(errorVerifier);
3224 // 3225 //
3225 // Record outputs. 3226 // Record outputs.
3226 // 3227 //
3227 outputs[VERIFY_ERRORS] = removeDuplicateErrors(errorListener.errors); 3228 outputs[VERIFY_ERRORS] = removeDuplicateErrors(errorListener.errors);
3228 } 3229 }
3229 3230
3230 /** 3231 /**
3231 * Check each directive in the given [unit] to see if the referenced source 3232 * Check each directive in the given [unit] to see if the referenced source
3232 * exists and report an error if it does not. 3233 * exists and report an error if it does not.
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
3402 3403
3403 @override 3404 @override
3404 bool moveNext() { 3405 bool moveNext() {
3405 if (_newSources.isEmpty) { 3406 if (_newSources.isEmpty) {
3406 return false; 3407 return false;
3407 } 3408 }
3408 currentTarget = _newSources.removeLast(); 3409 currentTarget = _newSources.removeLast();
3409 return true; 3410 return true;
3410 } 3411 }
3411 } 3412 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698