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

Side by Side Diff: pkg/analyzer/test/generated/all_the_rest_test.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 // 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/physical_file_system.dart'; 10 import 'package:analyzer/file_system/physical_file_system.dart';
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 ConstructorDeclaration constructorDeclaration = AstFactory 1054 ConstructorDeclaration constructorDeclaration = AstFactory
1055 .constructorDeclaration2(Keyword.CONST, null, 1055 .constructorDeclaration2(Keyword.CONST, null,
1056 AstFactory.identifier3(className), null, 1056 AstFactory.identifier3(className), null,
1057 AstFactory.formalParameterList(), null, 1057 AstFactory.formalParameterList(), null,
1058 AstFactory.blockFunctionBody2()); 1058 AstFactory.blockFunctionBody2());
1059 classDeclaration.members.add(constructorDeclaration); 1059 classDeclaration.members.add(constructorDeclaration);
1060 ConstructorElement constructorElement = 1060 ConstructorElement constructorElement =
1061 ElementFactory.constructorElement(classElement, '', true); 1061 ElementFactory.constructorElement(classElement, '', true);
1062 constructorDeclaration.element = constructorElement; 1062 constructorDeclaration.element = constructorElement;
1063 classElement.constructors = <ConstructorElement>[constructorElement]; 1063 classElement.constructors = <ConstructorElement>[constructorElement];
1064 } else {
1065 classElement.constructors = ConstructorElement.EMPTY_LIST;
1064 } 1066 }
1065 return variableDeclaration; 1067 return variableDeclaration;
1066 } 1068 }
1067 1069
1068 VariableElement _setupVariableDeclaration( 1070 VariableElement _setupVariableDeclaration(
1069 String name, bool isConst, bool isInitialized, {isFinal: false}) { 1071 String name, bool isConst, bool isInitialized, {isFinal: false}) {
1070 VariableDeclaration variableDeclaration = isInitialized 1072 VariableDeclaration variableDeclaration = isInitialized
1071 ? AstFactory.variableDeclaration2(name, AstFactory.integer(0)) 1073 ? AstFactory.variableDeclaration2(name, AstFactory.integer(0))
1072 : AstFactory.variableDeclaration(name); 1074 : AstFactory.variableDeclaration(name);
1073 SimpleIdentifier identifier = variableDeclaration.name; 1075 SimpleIdentifier identifier = variableDeclaration.name;
(...skipping 7175 matching lines...) Expand 10 before | Expand all | Expand 10 after
8249 expect(second.category, "Second"); 8251 expect(second.category, "Second");
8250 expect(second.path, "second/second.dart"); 8252 expect(second.path, "second/second.dart");
8251 expect(second.shortName, "dart:second"); 8253 expect(second.shortName, "dart:second");
8252 expect(second.isDart2JsLibrary, false); 8254 expect(second.isDart2JsLibrary, false);
8253 expect(second.isDocumented, false); 8255 expect(second.isDocumented, false);
8254 expect(second.isImplementation, true); 8256 expect(second.isImplementation, true);
8255 expect(second.isVmLibrary, false); 8257 expect(second.isVmLibrary, false);
8256 } 8258 }
8257 } 8259 }
8258 8260
8259
8260 @reflectiveTest 8261 @reflectiveTest
8261 class StringScannerTest extends AbstractScannerTest { 8262 class StringScannerTest extends AbstractScannerTest {
8262 @override 8263 @override
8263 ht.AbstractScanner newScanner(String input) { 8264 ht.AbstractScanner newScanner(String input) {
8264 return new ht.StringScanner(null, input); 8265 return new ht.StringScanner(null, input);
8265 } 8266 }
8266 } 8267 }
8267 8268
8268 /** 8269 /**
8269 * Instances of the class `ToSourceVisitorTest` 8270 * Instances of the class `ToSourceVisitorTest`
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
8599 if (_expectedExternalScriptName == null) { 8600 if (_expectedExternalScriptName == null) {
8600 expect(scriptSource, isNull, reason: "script $scriptIndex"); 8601 expect(scriptSource, isNull, reason: "script $scriptIndex");
8601 } else { 8602 } else {
8602 expect(scriptSource, isNotNull, reason: "script $scriptIndex"); 8603 expect(scriptSource, isNotNull, reason: "script $scriptIndex");
8603 String actualExternalScriptName = scriptSource.shortName; 8604 String actualExternalScriptName = scriptSource.shortName;
8604 expect(actualExternalScriptName, _expectedExternalScriptName, 8605 expect(actualExternalScriptName, _expectedExternalScriptName,
8605 reason: "script $scriptIndex"); 8606 reason: "script $scriptIndex");
8606 } 8607 }
8607 } 8608 }
8608 } 8609 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/test/generated/compile_time_error_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698