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

Side by Side Diff: pkg/compiler/lib/src/typechecker.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 | « pkg/compiler/lib/src/compiler.dart ('k') | no next file » | 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.typechecker; 5 library dart2js.typechecker;
6 6
7 import 'common.dart'; 7 import 'common.dart';
8 import 'common/names.dart' show 8 import 'common/names.dart' show
9 Identifiers; 9 Identifiers;
10 import 'common/resolution.dart' show 10 import 'common/resolution.dart' show
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 if (element.isField) { 68 if (element.isField) {
69 visitor.analyzingInitializer = true; 69 visitor.analyzingInitializer = true;
70 } 70 }
71 resolvedAst.node.accept(visitor); 71 resolvedAst.node.accept(visitor);
72 }); 72 });
73 }); 73 });
74 } 74 }
75 } 75 }
76 76
77 /** 77 /**
78 * Class used to report different warnings for differrent kinds of members. 78 * Class used to report different warnings for different kinds of members.
79 */ 79 */
80 class MemberKind { 80 class MemberKind {
81 static const MemberKind METHOD = const MemberKind("method"); 81 static const MemberKind METHOD = const MemberKind("method");
82 static const MemberKind OPERATOR = const MemberKind("operator"); 82 static const MemberKind OPERATOR = const MemberKind("operator");
83 static const MemberKind GETTER = const MemberKind("getter"); 83 static const MemberKind GETTER = const MemberKind("getter");
84 static const MemberKind SETTER = const MemberKind("setter"); 84 static const MemberKind SETTER = const MemberKind("setter");
85 85
86 final String name; 86 final String name;
87 87
88 const MemberKind(this.name); 88 const MemberKind(this.name);
(...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1999 1999
2000 visitTypedef(Typedef node) { 2000 visitTypedef(Typedef node) {
2001 // Do not typecheck [Typedef] nodes. 2001 // Do not typecheck [Typedef] nodes.
2002 } 2002 }
2003 2003
2004 visitNode(Node node) { 2004 visitNode(Node node) {
2005 reporter.internalError(node, 2005 reporter.internalError(node,
2006 'Unexpected node ${node.getObjectDescription()} in the type checker.'); 2006 'Unexpected node ${node.getObjectDescription()} in the type checker.');
2007 } 2007 }
2008 } 2008 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698