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

Side by Side Diff: pkg/analyzer/test/generated/all_the_rest_test.dart

Issue 1131953004: Create a task in the new task model to compute constant dependencies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.all_the_rest_test; 8 library engine.all_the_rest_test;
9 9
10 import 'package:analyzer/file_system/file_system.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
(...skipping 8034 matching lines...) Expand 10 before | Expand all | Expand 10 after
8045 void _assertNoArcs() { 8045 void _assertNoArcs() {
8046 Set<Element> tails = _referenceGraph.getTails(_head); 8046 Set<Element> tails = _referenceGraph.getTails(_head);
8047 expect(tails, hasLength(0)); 8047 expect(tails, hasLength(0));
8048 } 8048 }
8049 void _assertOneArc(Element tail) { 8049 void _assertOneArc(Element tail) {
8050 Set<Element> tails = _referenceGraph.getTails(_head); 8050 Set<Element> tails = _referenceGraph.getTails(_head);
8051 expect(tails, hasLength(1)); 8051 expect(tails, hasLength(1));
8052 expect(tails.first, same(tail)); 8052 expect(tails.first, same(tail));
8053 } 8053 }
8054 ReferenceFinder _createReferenceFinder(Element source) => 8054 ReferenceFinder _createReferenceFinder(Element source) =>
8055 new ReferenceFinder(source, _referenceGraph); 8055 new ReferenceFinder((Element dependency) {
8056 _referenceGraph.addEdge(source, dependency);
8057 });
8056 SuperConstructorInvocation _makeTailSuperConstructorInvocation( 8058 SuperConstructorInvocation _makeTailSuperConstructorInvocation(
8057 String name, bool isConst) { 8059 String name, bool isConst) {
8058 List<ConstructorInitializer> initializers = 8060 List<ConstructorInitializer> initializers =
8059 new List<ConstructorInitializer>(); 8061 new List<ConstructorInitializer>();
8060 ConstructorDeclaration constructorDeclaration = AstFactory 8062 ConstructorDeclaration constructorDeclaration = AstFactory
8061 .constructorDeclaration(AstFactory.identifier3(name), null, 8063 .constructorDeclaration(AstFactory.identifier3(name), null,
8062 AstFactory.formalParameterList(), initializers); 8064 AstFactory.formalParameterList(), initializers);
8063 if (isConst) { 8065 if (isConst) {
8064 constructorDeclaration.constKeyword = new KeywordToken(Keyword.CONST, 0); 8066 constructorDeclaration.constKeyword = new KeywordToken(Keyword.CONST, 0);
8065 } 8067 }
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
8655 if (_expectedExternalScriptName == null) { 8657 if (_expectedExternalScriptName == null) {
8656 expect(scriptSource, isNull, reason: "script $scriptIndex"); 8658 expect(scriptSource, isNull, reason: "script $scriptIndex");
8657 } else { 8659 } else {
8658 expect(scriptSource, isNotNull, reason: "script $scriptIndex"); 8660 expect(scriptSource, isNotNull, reason: "script $scriptIndex");
8659 String actualExternalScriptName = scriptSource.shortName; 8661 String actualExternalScriptName = scriptSource.shortName;
8660 expect(actualExternalScriptName, _expectedExternalScriptName, 8662 expect(actualExternalScriptName, _expectedExternalScriptName,
8661 reason: "script $scriptIndex"); 8663 reason: "script $scriptIndex");
8662 } 8664 }
8663 } 8665 }
8664 } 8666 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698