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

Side by Side Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java

Issue 82903007: Improved HTML parsing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean-up Created 7 years 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 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. 2 * Copyright (c) 2012, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
(...skipping 2452 matching lines...) Expand 10 before | Expand all | Expand 10 after
2463 throw new AnalysisException("An HTML file became a non-HTML file: " 2463 throw new AnalysisException("An HTML file became a non-HTML file: "
2464 + source.getFullName()); 2464 + source.getFullName());
2465 } 2465 }
2466 } 2466 }
2467 HtmlEntryImpl htmlCopy = ((HtmlEntry) sourceEntry).getWritableCopy(); 2467 HtmlEntryImpl htmlCopy = ((HtmlEntry) sourceEntry).getWritableCopy();
2468 if (thrownException == null) { 2468 if (thrownException == null) {
2469 LineInfo lineInfo = task.getLineInfo(); 2469 LineInfo lineInfo = task.getLineInfo();
2470 HtmlUnit unit = task.getHtmlUnit(); 2470 HtmlUnit unit = task.getHtmlUnit();
2471 htmlCopy.setValue(SourceEntry.LINE_INFO, lineInfo); 2471 htmlCopy.setValue(SourceEntry.LINE_INFO, lineInfo);
2472 htmlCopy.setValue(HtmlEntry.PARSED_UNIT, unit); 2472 htmlCopy.setValue(HtmlEntry.PARSED_UNIT, unit);
2473 htmlCopy.setValue(HtmlEntry.PARSE_ERRORS, task.getErrors());
2473 htmlCopy.setValue(HtmlEntry.REFERENCED_LIBRARIES, task.getReferencedLi braries()); 2474 htmlCopy.setValue(HtmlEntry.REFERENCED_LIBRARIES, task.getReferencedLi braries());
2474 2475
2475 ChangeNoticeImpl notice = getNotice(source); 2476 ChangeNoticeImpl notice = getNotice(source);
2476 notice.setErrors(htmlEntry.getAllErrors(), lineInfo); 2477 notice.setErrors(htmlEntry.getAllErrors(), lineInfo);
2477 } else { 2478 } else {
2478 htmlCopy.recordParseError(); 2479 htmlCopy.recordParseError();
2479 } 2480 }
2480 htmlCopy.setException(thrownException); 2481 htmlCopy.setException(thrownException);
2481 cache.put(source, htmlCopy); 2482 cache.put(source, htmlCopy);
2482 htmlEntry = htmlCopy; 2483 htmlEntry = htmlCopy;
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
2868 libraries.add(dependentLibrary); 2869 libraries.add(dependentLibrary);
2869 } 2870 }
2870 } 2871 }
2871 for (Source librarySource : libraries) { 2872 for (Source librarySource : libraries) {
2872 invalidateLibraryResolution(librarySource); 2873 invalidateLibraryResolution(librarySource);
2873 } 2874 }
2874 } 2875 }
2875 cache.remove(source); 2876 cache.remove(source);
2876 } 2877 }
2877 } 2878 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698