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

Side by Side Diff: pkg/analyzer/lib/src/summary/uri.dart

Issue 2669863003: Handle invalid URIs in summaries. (Closed)
Patch Set: Created 3 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
OLDNEW
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
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.
4
5 /**
6 * Return `true` is the [uriStr] represents a syntactically correct URI.
7 */
8 bool isValidUri(String uriStr) {
Brian Wilkerson 2017/02/01 21:02:10 I can't see any uses of this function (probably ju
scheglov 2017/02/01 21:08:47 You're right, we don't use it. I will remove the f
9 try {
10 Uri.parse(uriStr);
11 return true;
12 } on FormatException {
13 return false;
14 }
15 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698