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

Side by Side Diff: pkg/analyzer/lib/src/generated/scanner.dart

Issue 909373003: Report an error on Dart Source reading exception. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 engine.scanner; 5 library engine.scanner;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'error.dart'; 9 import 'error.dart';
10 import 'java_engine.dart'; 10 import 'java_engine.dart';
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1809 1809
1810 static const ScannerErrorCode MISSING_DIGIT = 1810 static const ScannerErrorCode MISSING_DIGIT =
1811 const ScannerErrorCode('MISSING_DIGIT', "Decimal digit expected"); 1811 const ScannerErrorCode('MISSING_DIGIT', "Decimal digit expected");
1812 1812
1813 static const ScannerErrorCode MISSING_HEX_DIGIT = 1813 static const ScannerErrorCode MISSING_HEX_DIGIT =
1814 const ScannerErrorCode('MISSING_HEX_DIGIT', "Hexidecimal digit expected"); 1814 const ScannerErrorCode('MISSING_HEX_DIGIT', "Hexidecimal digit expected");
1815 1815
1816 static const ScannerErrorCode MISSING_QUOTE = 1816 static const ScannerErrorCode MISSING_QUOTE =
1817 const ScannerErrorCode('MISSING_QUOTE', "Expected quote (' or \")"); 1817 const ScannerErrorCode('MISSING_QUOTE', "Expected quote (' or \")");
1818 1818
1819 static const ScannerErrorCode UNABLE_GET_CONTENT =
1820 const ScannerErrorCode('UNABLE_GET_CONTENT', "Unable to get content");
1821
1819 static const ScannerErrorCode UNTERMINATED_MULTI_LINE_COMMENT = 1822 static const ScannerErrorCode UNTERMINATED_MULTI_LINE_COMMENT =
1820 const ScannerErrorCode( 1823 const ScannerErrorCode(
1821 'UNTERMINATED_MULTI_LINE_COMMENT', 1824 'UNTERMINATED_MULTI_LINE_COMMENT',
1822 "Unterminated multi-line comment"); 1825 "Unterminated multi-line comment");
1823 1826
1824 static const ScannerErrorCode UNTERMINATED_STRING_LITERAL = 1827 static const ScannerErrorCode UNTERMINATED_STRING_LITERAL =
1825 const ScannerErrorCode( 1828 const ScannerErrorCode(
1826 'UNTERMINATED_STRING_LITERAL', 1829 'UNTERMINATED_STRING_LITERAL',
1827 "Unterminated string literal"); 1830 "Unterminated string literal");
1828 1831
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
2637 CommentToken get precedingComments => _precedingComment; 2640 CommentToken get precedingComments => _precedingComment;
2638 2641
2639 void set precedingComments(CommentToken comment) { 2642 void set precedingComments(CommentToken comment) {
2640 _precedingComment = comment; 2643 _precedingComment = comment;
2641 _setCommentParent(_precedingComment); 2644 _setCommentParent(_precedingComment);
2642 } 2645 }
2643 2646
2644 @override 2647 @override
2645 Token copy() => new TokenWithComment(type, offset, precedingComments); 2648 Token copy() => new TokenWithComment(type, offset, precedingComments);
2646 } 2649 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698