Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 part of dart2js; | 5 part of dart2js; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
| 9 * compiled. | 9 * compiled. |
| 10 */ | 10 */ |
| (...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1521 => interceptorsLibrary.findLocal(name); | 1521 => interceptorsLibrary.findLocal(name); |
| 1522 | 1522 |
| 1523 Element lookupElementIn(ScopeContainerElement container, String name) { | 1523 Element lookupElementIn(ScopeContainerElement container, String name) { |
| 1524 Element element = container.localLookup(name); | 1524 Element element = container.localLookup(name); |
| 1525 if (element == null) { | 1525 if (element == null) { |
| 1526 throw 'Could not find $name in $container'; | 1526 throw 'Could not find $name in $container'; |
| 1527 } | 1527 } |
| 1528 return element; | 1528 return element; |
| 1529 } | 1529 } |
| 1530 | 1530 |
| 1531 Element lookupConstructor(ClassElement classElement, String name) { | |
|
floitsch
2014/04/08 12:43:13
Is this necessary?
why?
sra1
2014/04/08 17:55:01
Nope. Old code. Removed.
| |
| 1532 } | |
| 1533 | |
| 1531 bool get isMockCompilation => false; | 1534 bool get isMockCompilation => false; |
| 1532 | 1535 |
| 1533 Token processAndStripComments(Token currentToken) { | 1536 Token processAndStripComments(Token currentToken) { |
| 1534 Token firstToken = currentToken; | 1537 Token firstToken = currentToken; |
| 1535 Token prevToken; | 1538 Token prevToken; |
| 1536 while (currentToken.kind != EOF_TOKEN) { | 1539 while (currentToken.kind != EOF_TOKEN) { |
| 1537 if (identical(currentToken.kind, COMMENT_TOKEN)) { | 1540 if (identical(currentToken.kind, COMMENT_TOKEN)) { |
| 1538 Token firstCommentToken = currentToken; | 1541 Token firstCommentToken = currentToken; |
| 1539 while (identical(currentToken.kind, COMMENT_TOKEN)) { | 1542 while (identical(currentToken.kind, COMMENT_TOKEN)) { |
| 1540 currentToken = currentToken.next; | 1543 currentToken = currentToken.next; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1801 static NullSink outputProvider(String name, String extension) { | 1804 static NullSink outputProvider(String name, String extension) { |
| 1802 return new NullSink('$name.$extension'); | 1805 return new NullSink('$name.$extension'); |
| 1803 } | 1806 } |
| 1804 } | 1807 } |
| 1805 | 1808 |
| 1806 /// Information about suppressed warnings and hints for a given library. | 1809 /// Information about suppressed warnings and hints for a given library. |
| 1807 class SuppressionInfo { | 1810 class SuppressionInfo { |
| 1808 int warnings = 0; | 1811 int warnings = 0; |
| 1809 int hints = 0; | 1812 int hints = 0; |
| 1810 } | 1813 } |
| OLD | NEW |