| 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 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   108     ScannerTask; |   108     ScannerTask; | 
|   109 import 'serialization/task.dart' show |   109 import 'serialization/task.dart' show | 
|   110     SerializationTask; |   110     SerializationTask; | 
|   111 import 'script.dart' show |   111 import 'script.dart' show | 
|   112     Script; |   112     Script; | 
|   113 import 'ssa/ssa.dart' show |   113 import 'ssa/ssa.dart' show | 
|   114     HInstruction; |   114     HInstruction; | 
|   115 import 'tracer.dart' show |   115 import 'tracer.dart' show | 
|   116     Tracer; |   116     Tracer; | 
|   117 import 'tokens/token.dart' show |   117 import 'tokens/token.dart' show | 
|   118     COMMENT_TOKEN, |  | 
|   119     EOF_TOKEN, |  | 
|   120     StringToken, |   118     StringToken, | 
|   121     Token, |   119     Token, | 
|   122     TokenPair; |   120     TokenPair; | 
 |   121 import 'tokens/token_constants.dart' as Tokens show | 
 |   122     COMMENT_TOKEN, | 
 |   123     EOF_TOKEN; | 
|   123 import 'tokens/token_map.dart' show |   124 import 'tokens/token_map.dart' show | 
|   124     TokenMap; |   125     TokenMap; | 
|   125 import 'tree/tree.dart' show |   126 import 'tree/tree.dart' show | 
|   126     Node; |   127     Node; | 
|   127 import 'typechecker.dart' show |   128 import 'typechecker.dart' show | 
|   128     TypeCheckerTask; |   129     TypeCheckerTask; | 
|   129 import 'types/types.dart' as ti; |   130 import 'types/types.dart' as ti; | 
|   130 import 'universe/universe.dart' show |   131 import 'universe/universe.dart' show | 
|   131     CallStructure, |   132     CallStructure, | 
|   132     Selector, |   133     Selector, | 
| (...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1517       throw 'Could not find $name in $container'; |  1518       throw 'Could not find $name in $container'; | 
|  1518     } |  1519     } | 
|  1519     return element; |  1520     return element; | 
|  1520   } |  1521   } | 
|  1521  |  1522  | 
|  1522   bool get isMockCompilation => false; |  1523   bool get isMockCompilation => false; | 
|  1523  |  1524  | 
|  1524   Token processAndStripComments(Token currentToken) { |  1525   Token processAndStripComments(Token currentToken) { | 
|  1525     Token firstToken = currentToken; |  1526     Token firstToken = currentToken; | 
|  1526     Token prevToken; |  1527     Token prevToken; | 
|  1527     while (currentToken.kind != EOF_TOKEN) { |  1528     while (currentToken.kind != Tokens.EOF_TOKEN) { | 
|  1528       if (identical(currentToken.kind, COMMENT_TOKEN)) { |  1529       if (identical(currentToken.kind, Tokens.COMMENT_TOKEN)) { | 
|  1529         Token firstCommentToken = currentToken; |  1530         Token firstCommentToken = currentToken; | 
|  1530         while (identical(currentToken.kind, COMMENT_TOKEN)) { |  1531         while (identical(currentToken.kind, Tokens.COMMENT_TOKEN)) { | 
|  1531           currentToken = currentToken.next; |  1532           currentToken = currentToken.next; | 
|  1532         } |  1533         } | 
|  1533         commentMap[currentToken] = firstCommentToken; |  1534         commentMap[currentToken] = firstCommentToken; | 
|  1534         if (prevToken == null) { |  1535         if (prevToken == null) { | 
|  1535           firstToken = currentToken; |  1536           firstToken = currentToken; | 
|  1536         } else { |  1537         } else { | 
|  1537           prevToken.next = currentToken; |  1538           prevToken.next = currentToken; | 
|  1538         } |  1539         } | 
|  1539       } |  1540       } | 
|  1540       prevToken = currentToken; |  1541       prevToken = currentToken; | 
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1782  |  1783  | 
|  1783   @override |  1784   @override | 
|  1784   InterfaceType streamType([DartType elementType]) { |  1785   InterfaceType streamType([DartType elementType]) { | 
|  1785     InterfaceType type = streamClass.computeType(compiler); |  1786     InterfaceType type = streamClass.computeType(compiler); | 
|  1786     if (elementType == null) { |  1787     if (elementType == null) { | 
|  1787       return streamClass.rawType; |  1788       return streamClass.rawType; | 
|  1788     } |  1789     } | 
|  1789     return type.createInstantiation([elementType]); |  1790     return type.createInstantiation([elementType]); | 
|  1790   } |  1791   } | 
|  1791 } |  1792 } | 
| OLD | NEW |