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

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

Issue 2829683007: Extract DartTypeVisitor and subclasses from resolution_types. (Closed)
Patch Set: Created 3 years, 8 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/elements/resolution_types.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 Future; 7 import 'dart:async' show Future;
8 8
9 import '../compiler_new.dart' as api; 9 import '../compiler_new.dart' as api;
10 import 'closure.dart' as closureMapping show ClosureTask; 10 import 'closure.dart' as closureMapping show ClosureTask;
(...skipping 16 matching lines...) Expand all
27 import 'diagnostics/code_location.dart'; 27 import 'diagnostics/code_location.dart';
28 import 'diagnostics/diagnostic_listener.dart' show DiagnosticReporter; 28 import 'diagnostics/diagnostic_listener.dart' show DiagnosticReporter;
29 import 'diagnostics/invariant.dart' show REPORT_EXCESS_RESOLUTION; 29 import 'diagnostics/invariant.dart' show REPORT_EXCESS_RESOLUTION;
30 import 'diagnostics/messages.dart' show Message, MessageTemplate; 30 import 'diagnostics/messages.dart' show Message, MessageTemplate;
31 import 'dump_info.dart' show DumpInfoTask; 31 import 'dump_info.dart' show DumpInfoTask;
32 import 'elements/elements.dart'; 32 import 'elements/elements.dart';
33 import 'elements/entities.dart'; 33 import 'elements/entities.dart';
34 import 'elements/modelx.dart' show ErroneousElementX; 34 import 'elements/modelx.dart' show ErroneousElementX;
35 import 'elements/resolution_types.dart' 35 import 'elements/resolution_types.dart'
36 show 36 show
37 DartTypes,
37 ResolutionDartType, 38 ResolutionDartType,
38 ResolutionDynamicType, 39 ResolutionDynamicType,
39 ResolutionFunctionType, 40 ResolutionFunctionType,
40 ResolutionInterfaceType, 41 ResolutionInterfaceType,
41 Types; 42 Types;
42 import 'enqueue.dart' show Enqueuer, EnqueueTask, ResolutionEnqueuer; 43 import 'enqueue.dart' show Enqueuer, EnqueueTask, ResolutionEnqueuer;
43 import 'environment.dart'; 44 import 'environment.dart';
44 import 'id_generator.dart'; 45 import 'id_generator.dart';
45 import 'io/source_information.dart' show SourceInformation; 46 import 'io/source_information.dart' show SourceInformation;
46 import 'js_backend/backend.dart' show JavaScriptBackend; 47 import 'js_backend/backend.dart' show JavaScriptBackend;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 import 'util/util.dart' show Link; 80 import 'util/util.dart' show Link;
80 import 'world.dart' show ClosedWorld, ClosedWorldRefiner, ClosedWorldImpl; 81 import 'world.dart' show ClosedWorld, ClosedWorldRefiner, ClosedWorldImpl;
81 82
82 typedef CompilerDiagnosticReporter MakeReporterFunction( 83 typedef CompilerDiagnosticReporter MakeReporterFunction(
83 Compiler compiler, CompilerOptions options); 84 Compiler compiler, CompilerOptions options);
84 85
85 abstract class Compiler { 86 abstract class Compiler {
86 Measurer get measurer; 87 Measurer get measurer;
87 88
88 final IdGenerator idGenerator = new IdGenerator(); 89 final IdGenerator idGenerator = new IdGenerator();
89 Types types; 90 DartTypes types;
90 CommonElements _commonElements; 91 CommonElements _commonElements;
91 _CompilerElementEnvironment _elementEnvironment; 92 _CompilerElementEnvironment _elementEnvironment;
92 CompilerDiagnosticReporter _reporter; 93 CompilerDiagnosticReporter _reporter;
93 CompilerResolution _resolution; 94 CompilerResolution _resolution;
94 ParsingContext _parsingContext; 95 ParsingContext _parsingContext;
95 96
96 ImpactStrategy impactStrategy = const ImpactStrategy(); 97 ImpactStrategy impactStrategy = const ImpactStrategy();
97 98
98 /** 99 /**
99 * Map from token to the first preceding comment token. 100 * Map from token to the first preceding comment token.
(...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after
1968 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) { 1969 ResolutionFunctionType getLocalFunctionType(LocalFunctionElement function) {
1969 return function.type; 1970 return function.type;
1970 } 1971 }
1971 1972
1972 @override 1973 @override
1973 ResolutionDartType getUnaliasedType(ResolutionDartType type) { 1974 ResolutionDartType getUnaliasedType(ResolutionDartType type) {
1974 type.computeUnaliased(_resolution); 1975 type.computeUnaliased(_resolution);
1975 return type.unaliased; 1976 return type.unaliased;
1976 } 1977 }
1977 } 1978 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/resolution_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698