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

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

Issue 1411153005: dart2js: do typechecking even if suppressWarnings is on (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/typechecker.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 7 import 'dart:async' show
8 EventSink, 8 EventSink,
9 Future; 9 Future;
10 10
(...skipping 1971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1982 } 1982 }
1983 1983
1984 @override 1984 @override
1985 WorldImpact computeWorldImpact(Element element) { 1985 WorldImpact computeWorldImpact(Element element) {
1986 return _worldImpactCache.putIfAbsent(element, () { 1986 return _worldImpactCache.putIfAbsent(element, () {
1987 assert(compiler.parser != null); 1987 assert(compiler.parser != null);
1988 Node tree = compiler.parser.parse(element); 1988 Node tree = compiler.parser.parse(element);
1989 assert(invariant(element, !element.isSynthesized || tree == null)); 1989 assert(invariant(element, !element.isSynthesized || tree == null));
1990 ResolutionImpact resolutionImpact = 1990 ResolutionImpact resolutionImpact =
1991 compiler.resolver.resolve(element); 1991 compiler.resolver.resolve(element);
1992 if (tree != null && 1992 if (tree != null && !compiler.analyzeSignaturesOnly) {
1993 !compiler.analyzeSignaturesOnly && 1993 // TODO(het): don't do this if suppressWarnings is on, currently we have
1994 !reporter.options.suppressWarnings) { 1994 // to do it because the typechecker also sets types
1995 // Only analyze nodes with a corresponding [TreeElements]. 1995 // Only analyze nodes with a corresponding [TreeElements].
1996 compiler.checker.check(element); 1996 compiler.checker.check(element);
1997 } 1997 }
1998 WorldImpact worldImpact = 1998 WorldImpact worldImpact =
1999 compiler.backend.resolutionCallbacks.transformImpact( 1999 compiler.backend.resolutionCallbacks.transformImpact(
2000 resolutionImpact); 2000 resolutionImpact);
2001 return worldImpact; 2001 return worldImpact;
2002 }); 2002 });
2003 } 2003 }
2004 2004
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 if (_otherDependencies == null) { 2042 if (_otherDependencies == null) {
2043 _otherDependencies = new Setlet<Element>(); 2043 _otherDependencies = new Setlet<Element>();
2044 } 2044 }
2045 _otherDependencies.add(element.implementation); 2045 _otherDependencies.add(element.implementation);
2046 } 2046 }
2047 2047
2048 Iterable<Element> get otherDependencies { 2048 Iterable<Element> get otherDependencies {
2049 return _otherDependencies != null ? _otherDependencies : const <Element>[]; 2049 return _otherDependencies != null ? _otherDependencies : const <Element>[];
2050 } 2050 }
2051 } 2051 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698