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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/FileBasedSource.java

Issue 267293006: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/FileBasedSource.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/FileBasedSource.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/FileBasedSource.java
index 03f4e3f638ba577053782338fe96d41caf8dbeb6..2d0f07e20517c8617c24d6f12dcccba834da22b3 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/FileBasedSource.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/FileBasedSource.java
@@ -319,6 +319,7 @@ public class FileBasedSource implements Source {
* Returns a {@link FileInputStream} for the {@link #file} with skipped optional leading UTF-8
* BOM.
*/
+ @DartOmit
private FileInputStream getFileInputStreamWithoutBOM() throws Exception {
FileInputStream in = new FileInputStream(file);
// check if there is an UTF-8 BOM
@@ -349,6 +350,7 @@ public class FileBasedSource implements Source {
/**
* Skips an optional UTF-8 BOM.
*/
+ @DartOmit
private void skipOptionalBOM(ByteBuffer byteBuffer) {
if (byteBuffer.remaining() >= 3 && byteBuffer.get(0) == (byte) 0xEF
&& byteBuffer.get(1) == (byte) 0xBB && byteBuffer.get(2) == (byte) 0xBF) {
« no previous file with comments | « no previous file | editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698