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

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

Issue 2482923002: Use `Function` as function type syntax.
Patch Set: Created 4 years, 1 month 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 | « pkg/compiler/lib/src/common.dart ('k') | pkg/compiler/lib/src/dart2js.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.compiler_base; 5 library dart2js.compiler_base;
6 6
7 import 'dart:async' show EventSink, Future; 7 import 'dart:async' show EventSink, Future;
8 8
9 import '../compiler_new.dart' as api; 9 import '../compiler_new.dart' as api;
10 import 'cache_strategy.dart' show CacheStrategy; 10 import 'cache_strategy.dart' show CacheStrategy;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 import 'types/types.dart' show GlobalTypeInferenceTask; 73 import 'types/types.dart' show GlobalTypeInferenceTask;
74 import 'types/masks.dart' show CommonMasks; 74 import 'types/masks.dart' show CommonMasks;
75 import 'universe/selector.dart' show Selector; 75 import 'universe/selector.dart' show Selector;
76 import 'universe/world_builder.dart' 76 import 'universe/world_builder.dart'
77 show ResolutionWorldBuilder, CodegenWorldBuilder; 77 show ResolutionWorldBuilder, CodegenWorldBuilder;
78 import 'universe/use.dart' show StaticUse; 78 import 'universe/use.dart' show StaticUse;
79 import 'universe/world_impact.dart' show ImpactStrategy, WorldImpact; 79 import 'universe/world_impact.dart' show ImpactStrategy, WorldImpact;
80 import 'util/util.dart' show Link, Setlet; 80 import 'util/util.dart' show Link, Setlet;
81 import 'world.dart' show ClosedWorld, ClosedWorldRefiner, OpenWorld, WorldImpl; 81 import 'world.dart' show ClosedWorld, ClosedWorldRefiner, OpenWorld, WorldImpl;
82 82
83 typedef Backend MakeBackendFuncion(Compiler compiler); 83 typedef MakeBackendFuncion = Backend Function(Compiler compiler);
84 84
85 typedef CompilerDiagnosticReporter MakeReporterFunction( 85 typedef MakeReporterFunction =
86 Compiler compiler, CompilerOptions options); 86 CompilerDiagnosticReporter Function(Compiler compiler, CompilerOptions optio ns);
87 87
88 abstract class Compiler implements LibraryLoaderListener { 88 abstract class Compiler implements LibraryLoaderListener {
89 Measurer get measurer; 89 Measurer get measurer;
90 90
91 final IdGenerator idGenerator = new IdGenerator(); 91 final IdGenerator idGenerator = new IdGenerator();
92 WorldImpl _world; 92 WorldImpl _world;
93 Types types; 93 Types types;
94 _CompilerCoreTypes _coreTypes; 94 _CompilerCoreTypes _coreTypes;
95 CompilerDiagnosticReporter _reporter; 95 CompilerDiagnosticReporter _reporter;
96 _CompilerResolution _resolution; 96 _CompilerResolution _resolution;
(...skipping 2159 matching lines...) Expand 10 before | Expand all | Expand 10 after
2256 _ElementScanner(this.scanner); 2256 _ElementScanner(this.scanner);
2257 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library); 2257 void scanLibrary(LibraryElement library) => scanner.scanLibrary(library);
2258 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit); 2258 void scanUnit(CompilationUnitElement unit) => scanner.scan(unit);
2259 } 2259 }
2260 2260
2261 class _EmptyEnvironment implements Environment { 2261 class _EmptyEnvironment implements Environment {
2262 const _EmptyEnvironment(); 2262 const _EmptyEnvironment();
2263 2263
2264 String valueOf(String key) => null; 2264 String valueOf(String key) => null;
2265 } 2265 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common.dart ('k') | pkg/compiler/lib/src/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698