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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/scanner/scannerlib.dart

Issue 137343002: Handle BOMs in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/scanner/utf8_bytes_scanner.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 scanner; 5 library scanner;
6 6
7 import 'dart:collection' show IterableBase, HashSet; 7 import 'dart:collection' show IterableBase, HashSet;
8 8
9 import '../elements/elements.dart'; 9 import '../elements/elements.dart';
10 import '../elements/modelx.dart' 10 import '../elements/modelx.dart'
11 show ElementX, 11 show ElementX,
12 FunctionElementX, 12 FunctionElementX,
13 TypedefElementX, 13 TypedefElementX,
14 VariableElementX, 14 VariableElementX,
15 FieldElementX, 15 FieldElementX,
16 VariableListElementX, 16 VariableListElementX,
17 ClassElementX, 17 ClassElementX,
18 MetadataAnnotationX, 18 MetadataAnnotationX,
19 MixinApplicationElementX; 19 MixinApplicationElementX;
20 import '../elements/visitor.dart' 20 import '../elements/visitor.dart'
21 show ElementVisitor; 21 show ElementVisitor;
22 import '../dart2jslib.dart'; 22 import '../dart2jslib.dart';
23 import '../native_handler.dart' as native; 23 import '../native_handler.dart' as native;
24 import '../string_validator.dart'; 24 import '../string_validator.dart';
25 import '../tree/tree.dart'; 25 import '../tree/tree.dart';
26 import '../util/characters.dart'; 26 import '../util/characters.dart';
27 import '../util/util.dart'; 27 import '../util/util.dart';
28 import '../source_file.dart' show SourceFile, Utf8BytesSourceFile; 28 import '../source_file.dart' show SourceFile, Utf8BytesSourceFile;
29 import 'dart:convert' show UTF8; 29 import 'dart:convert' show UTF8, UNICODE_BOM_CHARACTER_RUNE;
30 import 'dart:typed_data' show Uint8List; 30 import 'dart:typed_data' show Uint8List;
31 31
32 part 'class_element_parser.dart'; 32 part 'class_element_parser.dart';
33 part 'keyword.dart'; 33 part 'keyword.dart';
34 part 'listener.dart'; 34 part 'listener.dart';
35 part 'parser.dart'; 35 part 'parser.dart';
36 part 'parser_task.dart'; 36 part 'parser_task.dart';
37 part 'partial_parser.dart'; 37 part 'partial_parser.dart';
38 part 'scanner.dart'; 38 part 'scanner.dart';
39 part 'scanner_task.dart'; 39 part 'scanner_task.dart';
40 part 'array_based_scanner.dart'; 40 part 'array_based_scanner.dart';
41 part 'utf8_bytes_scanner.dart'; 41 part 'utf8_bytes_scanner.dart';
42 part 'string_scanner.dart'; 42 part 'string_scanner.dart';
43 part 'token.dart'; 43 part 'token.dart';
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/scanner/utf8_bytes_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698