@@ -1142,8 +1142,8 @@ class Scanner {
11421142    // Scan the leading line breaks to determine the indentation level if 
11431143    // needed. 
11441144    var  pair =  _scanBlockScalarBreaks (indent);
1145-     indent =  pair.first ;
1146-     var  trailingBreaks =  pair.last ;
1145+     indent =  pair.indent ;
1146+     var  trailingBreaks =  pair.trailingBreaks ;
11471147
11481148    // Scan the block scalar contents. 
11491149    var  buffer =  StringBuffer ();
@@ -1194,8 +1194,8 @@ class Scanner {
11941194
11951195      // Eat the following indentation and spaces. 
11961196      var  pair =  _scanBlockScalarBreaks (indent);
1197-       indent =  pair.first ;
1198-       trailingBreaks =  pair.last ;
1197+       indent =  pair.indent ;
1198+       trailingBreaks =  pair.trailingBreaks ;
11991199    }
12001200
12011201    // Chomp the tail. 
@@ -1210,7 +1210,7 @@ class Scanner {
12101210  /// 
12111211  /// Determines the intendation level if needed. Returns the new indentation 
12121212  /// level and the text of the line breaks. 
1213-    Pair < int , String >  _scanBlockScalarBreaks (int  indent) {
1213+    ({ int  indent , String  trailingBreaks})  _scanBlockScalarBreaks (int  indent) {
12141214    var  maxIndent =  0 ;
12151215    var  breaks =  StringBuffer ();
12161216
@@ -1238,7 +1238,7 @@ class Scanner {
12381238      // be supported by the spec. 
12391239    }
12401240
1241-     return  Pair (indent,  breaks.toString ());
1241+     return  (indent:  indent, trailingBreaks :  breaks.toString ());
12421242  }
12431243
12441244  // Scans a quoted scalar. 
0 commit comments