| 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 native; | 5 library native; | 
| 6 | 6 | 
| 7 import 'dart:collection' show Queue; | 7 import 'dart:collection' show Queue; | 
| 8 import 'dart:uri'; |  | 
| 9 import 'dart2jslib.dart' hide SourceString; | 8 import 'dart2jslib.dart' hide SourceString; | 
| 10 import 'dart_types.dart'; | 9 import 'dart_types.dart'; | 
| 11 import 'elements/elements.dart'; | 10 import 'elements/elements.dart'; | 
| 12 import 'js_backend/js_backend.dart'; | 11 import 'js_backend/js_backend.dart'; | 
| 13 import 'resolution/resolution.dart' show ResolverVisitor; | 12 import 'resolution/resolution.dart' show ResolverVisitor; | 
| 14 import 'scanner/scannerlib.dart'; | 13 import 'scanner/scannerlib.dart'; | 
| 15 import 'ssa/ssa.dart'; | 14 import 'ssa/ssa.dart'; | 
| 16 import 'tree/tree.dart'; | 15 import 'tree/tree.dart'; | 
| 17 import 'universe/universe.dart' show SideEffects; | 16 import 'universe/universe.dart' show SideEffects; | 
| 18 import 'util/util.dart'; | 17 import 'util/util.dart'; | 
| (...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1019           'native "..." syntax is restricted to functions with zero parameters', | 1018           'native "..." syntax is restricted to functions with zero parameters', | 
| 1020           node: nativeBody); | 1019           node: nativeBody); | 
| 1021     } | 1020     } | 
| 1022     LiteralString jsCode = nativeBody.asLiteralString(); | 1021     LiteralString jsCode = nativeBody.asLiteralString(); | 
| 1023     builder.push(new HForeign.statement( | 1022     builder.push(new HForeign.statement( | 
| 1024         new js.LiteralStatement(jsCode.dartString.slowToString()), | 1023         new js.LiteralStatement(jsCode.dartString.slowToString()), | 
| 1025         <HInstruction>[], | 1024         <HInstruction>[], | 
| 1026         new SideEffects())); | 1025         new SideEffects())); | 
| 1027   } | 1026   } | 
| 1028 } | 1027 } | 
| OLD | NEW | 
|---|