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

Side by Side Diff: pkg/compiler/lib/src/compile_time_constants.dart

Issue 2239193002: Rerun formatter (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 dart2js.compile_time_constant_evaluator; 5 library dart2js.compile_time_constant_evaluator;
6 6
7 import 'common/resolution.dart' show Resolution; 7 import 'common/resolution.dart' show Resolution;
8 import 'common/tasks.dart' show CompilerTask, Measurer; 8 import 'common/tasks.dart' show CompilerTask, Measurer;
9 import 'common.dart'; 9 import 'common.dart';
10 import 'compiler.dart' show Compiler; 10 import 'compiler.dart' show Compiler;
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 Link<Node> arguments, 853 Link<Node> arguments,
854 ConstructorElement target, 854 ConstructorElement target,
855 {AstConstant compileArgument(Node node)}) { 855 {AstConstant compileArgument(Node node)}) {
856 assert(invariant(node, target.isImplementation)); 856 assert(invariant(node, target.isImplementation));
857 857
858 AstConstant compileDefaultValue(VariableElement element) { 858 AstConstant compileDefaultValue(VariableElement element) {
859 ConstantExpression constant = handler.compileConstant(element); 859 ConstantExpression constant = handler.compileConstant(element);
860 return new AstConstant.fromDefaultValue( 860 return new AstConstant.fromDefaultValue(
861 element, constant, handler.getConstantValue(constant)); 861 element, constant, handler.getConstantValue(constant));
862 } 862 }
863
863 target.computeType(resolution); 864 target.computeType(resolution);
864 865
865 FunctionSignature signature = target.functionSignature; 866 FunctionSignature signature = target.functionSignature;
866 if (!callStructure.signatureApplies(signature)) { 867 if (!callStructure.signatureApplies(signature)) {
867 String name = Elements.constructorNameForDiagnostics( 868 String name = Elements.constructorNameForDiagnostics(
868 target.enclosingClass.name, target.name); 869 target.enclosingClass.name, target.name);
869 reporter.reportErrorMessage(node, 870 reporter.reportErrorMessage(node,
870 MessageKind.INVALID_CONSTRUCTOR_ARGUMENTS, {'constructorName': name}); 871 MessageKind.INVALID_CONSTRUCTOR_ARGUMENTS, {'constructorName': name});
871 872
872 return new List<AstConstant>.filled( 873 return new List<AstConstant>.filled(
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 class _CompilerEnvironment implements Environment { 1410 class _CompilerEnvironment implements Environment {
1410 final Compiler compiler; 1411 final Compiler compiler;
1411 1412
1412 _CompilerEnvironment(this.compiler); 1413 _CompilerEnvironment(this.compiler);
1413 1414
1414 @override 1415 @override
1415 String readFromEnvironment(String name) { 1416 String readFromEnvironment(String name) {
1416 return compiler.fromEnvironment(name); 1417 return compiler.fromEnvironment(name);
1417 } 1418 }
1418 } 1419 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698