Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
chromium.googlesource.com-external-github.com-dart-lang-test
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
chromium.googlesource.com-external-github.com-dart-lang-test
Commits
a3794781
Commit
a3794781
authored
9 years ago
by
Kevin Moore
Browse files
Options
Downloads
Patches
Plain Diff
silence analyzer about downcast
R=nweiz@google.com Review URL:
https://codereview.chromium.org//1059883002
parent
7f54ecc4
No related branches found
Branches containing commit
Tags
0.12.0-beta.6
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/util/string_literal_iterator_test.dart
+3
-2
3 additions, 2 deletions
test/util/string_literal_iterator_test.dart
with
3 additions
and
2 deletions
test/util/string_literal_iterator_test.dart
+
3
−
2
View file @
a3794781
...
...
@@ -239,7 +239,8 @@ Matcher _isRune(String char) {
/// Parses [dart], which should be a string literal, into a
/// [StringLiteralIterator].
StringLiteralIterator
_parse
(
String
dart
)
{
var
literal
=
parseCompilationUnit
(
"final str =
$dart
;"
)
.
declarations
.
single
.
variables
.
variables
.
single
.
initializer
;
var
declaration
=
parseCompilationUnit
(
"final str =
$dart
;"
)
.
declarations
.
single
;
var
literal
=
declaration
.
variables
.
variables
.
single
.
initializer
;
return
new
StringLiteralIterator
(
literal
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment