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

Unified Diff: runtime/vm/parser.cc

Issue 2759393005: Cleanup change. (Closed)
Patch Set: Created 3 years, 9 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 | « runtime/vm/object_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 20ab695405b4df8ebd5c0bf1a742b9424a1f3918..23ca9317e3d68753a6981d935d120a7f088af64b 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -13474,7 +13474,7 @@ AstNode* Parser::ParseListLiteral(TokenPosition type_pos,
if (I->type_checks() && !element_type.IsDynamicType() &&
(!elem->AsLiteralNode()->literal().IsNull() &&
!elem->AsLiteralNode()->literal().IsInstanceOf(
- element_type, TypeArguments::Handle(Z), &bound_error))) {
+ element_type, Object::null_type_arguments(), &bound_error))) {
// If the failure is due to a bound error, display it instead.
if (!bound_error.IsNull()) {
ReportError(bound_error);
@@ -14311,8 +14311,8 @@ AstNode* Parser::ParseNewOperator(Token::Kind op_kind) {
ASSERT(!type_bound.IsMalformed());
Error& bound_error = Error::Handle(Z);
ASSERT(!is_top_level_); // We cannot check unresolved types.
- if (!const_instance.IsInstanceOf(type_bound, TypeArguments::Handle(Z),
- &bound_error)) {
+ if (!const_instance.IsInstanceOf(
+ type_bound, Object::null_type_arguments(), &bound_error)) {
type_bound = ClassFinalizer::NewFinalizedMalformedType(
bound_error, script_, new_pos,
"const factory result is not an instance of '%s'",
« no previous file with comments | « runtime/vm/object_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698