@@ -28,59 +28,59 @@ import 'package:collection/collection.dart';
2828
2929/// An enumeration of possible statement completion kinds. 
3030abstract  final  class  DartStatementCompletion  {
31-   static  const  NO_COMPLETION  =  StatementCompletionKind (
31+   static  const  _noCompletion  =  StatementCompletionKind (
3232    'No_COMPLETION' ,
3333    'No completion available' ,
3434  );
35-   static  const  SIMPLE_ENTER  =  StatementCompletionKind (
35+   static  const  _simpleEnter  =  StatementCompletionKind (
3636    'SIMPLE_ENTER' ,
3737    'Insert a newline at the end of the current line' ,
3838  );
39-   static  const  SIMPLE_SEMICOLON  =  StatementCompletionKind (
39+   static  const  _simpleSemicolon  =  StatementCompletionKind (
4040    'SIMPLE_SEMICOLON' ,
4141    'Add a semicolon and newline' ,
4242  );
43-   static  const  COMPLETE_CLASS_DECLARATION  =  StatementCompletionKind (
43+   static  const  _completeClassDeclaration  =  StatementCompletionKind (
4444    'COMPLETE_CLASS_DECLARATION' ,
4545    'Complete class declaration' ,
4646  );
47-   static  const  COMPLETE_CONTROL_FLOW_BLOCK  =  StatementCompletionKind (
47+   static  const  _completeControlFlowBlock  =  StatementCompletionKind (
4848    'COMPLETE_CONTROL_FLOW_BLOCK' ,
4949    'Complete control flow block' ,
5050  );
51-   static  const  COMPLETE_DO_STMT  =  StatementCompletionKind (
51+   static  const  _completeDoStmt  =  StatementCompletionKind (
5252    'COMPLETE_DO_STMT' ,
5353    'Complete do-statement' ,
5454  );
55-   static  const  COMPLETE_IF_STMT  =  StatementCompletionKind (
55+   static  const  _completeIfStmt  =  StatementCompletionKind (
5656    'COMPLETE_IF_STMT' ,
5757    'Complete if-statement' ,
5858  );
59-   static  const  COMPLETE_FOR_STMT  =  StatementCompletionKind (
59+   static  const  _completeForStmt  =  StatementCompletionKind (
6060    'COMPLETE_FOR_STMT' ,
6161    'Complete for-statement' ,
6262  );
63-   static  const  COMPLETE_FOR_EACH_STMT  =  StatementCompletionKind (
63+   static  const  _completeForEachStmt  =  StatementCompletionKind (
6464    'COMPLETE_FOR_EACH_STMT' ,
6565    'Complete for-each-statement' ,
6666  );
67-   static  const  COMPLETE_FUNCTION_DECLARATION  =  StatementCompletionKind (
67+   static  const  _completeFunctionDeclaration  =  StatementCompletionKind (
6868    'COMPLETE_FUNCTION_DECLARATION' ,
6969    'Complete function declaration' ,
7070  );
71-   static  const  COMPLETE_SWITCH_STMT  =  StatementCompletionKind (
71+   static  const  _completeSwitchStmt  =  StatementCompletionKind (
7272    'COMPLETE_SWITCH_STMT' ,
7373    'Complete switch-statement' ,
7474  );
75-   static  const  COMPLETE_TRY_STMT  =  StatementCompletionKind (
75+   static  const  _completeTryStmt  =  StatementCompletionKind (
7676    'COMPLETE_TRY_STMT' ,
7777    'Complete try-statement' ,
7878  );
79-   static  const  COMPLETE_VARIABLE_DECLARATION  =  StatementCompletionKind (
79+   static  const  _completeVariableDeclaration  =  StatementCompletionKind (
8080    'COMPLETE_VARIABLE_DECLARATION' ,
8181    'Complete variable declaration' ,
8282  );
83-   static  const  COMPLETE_WHILE_STMT  =  StatementCompletionKind (
83+   static  const  _completeWhiteStmt  =  StatementCompletionKind (
8484    'COMPLETE_WHILE_STMT' ,
8585    'Complete while-statement' ,
8686  );
@@ -133,7 +133,7 @@ class StatementCompletionKind {
133133/// The computer for Dart statement completions. 
134134class  StatementCompletionProcessor  {
135135  static  final  _noCompletion =  StatementCompletion (
136-     DartStatementCompletion .NO_COMPLETION ,
136+     DartStatementCompletion ._noCompletion ,
137137    SourceChange ('' , edits:  []),
138138  );
139139
@@ -403,7 +403,7 @@ class StatementCompletionProcessor {
403403      sb.append (' ' );
404404      _appendEmptyBraces (sb, true );
405405      _insertBuilder (sb);
406-       _setCompletion (DartStatementCompletion .COMPLETE_CLASS_DECLARATION );
406+       _setCompletion (DartStatementCompletion ._completeClassDeclaration );
407407      return  true ;
408408    }
409409    return  false ;
@@ -459,7 +459,7 @@ class StatementCompletionProcessor {
459459    }
460460    var  offset =  _appendNewlinePlusIndentAt (parent.end);
461461    exitPosition =  Position (file, offset +  delta +  previousInsertions);
462-     _setCompletion (DartStatementCompletion .COMPLETE_CONTROL_FLOW_BLOCK );
462+     _setCompletion (DartStatementCompletion ._completeControlFlowBlock );
463463    return  true ;
464464  }
465465
@@ -542,7 +542,7 @@ class StatementCompletionProcessor {
542542        exitPosition! .offset +  exitDelta,
543543      );
544544    }
545-     _setCompletion (DartStatementCompletion .COMPLETE_DO_STMT );
545+     _setCompletion (DartStatementCompletion ._completeDoStmt );
546546    return  true ;
547547  }
548548
@@ -623,7 +623,7 @@ class StatementCompletionProcessor {
623623      _appendEmptyBraces (sb, exitPosition ==  null );
624624    }
625625    _insertBuilder (sb);
626-     _setCompletion (DartStatementCompletion .COMPLETE_FOR_EACH_STMT );
626+     _setCompletion (DartStatementCompletion ._completeForEachStmt );
627627    return  true ;
628628  }
629629
@@ -724,7 +724,7 @@ class StatementCompletionProcessor {
724724      }
725725    }
726726    _insertBuilder (sb, replacementLength);
727-     _setCompletion (DartStatementCompletion .COMPLETE_FOR_STMT );
727+     _setCompletion (DartStatementCompletion ._completeForStmt );
728728    return  true ;
729729  }
730730
@@ -778,7 +778,7 @@ class StatementCompletionProcessor {
778778    sb.append (' ' );
779779    _appendEmptyBraces (sb, true );
780780    _insertBuilder (sb);
781-     _setCompletion (DartStatementCompletion .COMPLETE_FUNCTION_DECLARATION );
781+     _setCompletion (DartStatementCompletion ._completeFunctionDeclaration );
782782    return  true ;
783783  }
784784
@@ -814,7 +814,7 @@ class StatementCompletionProcessor {
814814          insertOffset =  _appendNewlinePlusIndent ();
815815        }
816816        _setCompletionAt (
817-           DartStatementCompletion .SIMPLE_SEMICOLON ,
817+           DartStatementCompletion ._simpleSemicolon ,
818818          insertOffset +  delta,
819819        );
820820        return  true ;
@@ -863,7 +863,7 @@ class StatementCompletionProcessor {
863863        }
864864        _appendEmptyBraces (sb, true );
865865        _insertBuilder (sb);
866-         _setCompletion (DartStatementCompletion .COMPLETE_IF_STMT );
866+         _setCompletion (DartStatementCompletion ._completeIfStmt );
867867        return  true ;
868868      }
869869      return  false ;
@@ -878,7 +878,7 @@ class StatementCompletionProcessor {
878878    return  _complete_ifOrWhileStatement (
879879      node,
880880      stmt,
881-       DartStatementCompletion .COMPLETE_IF_STMT ,
881+       DartStatementCompletion ._completeIfStmt ,
882882    );
883883  }
884884
@@ -953,7 +953,7 @@ class StatementCompletionProcessor {
953953    _addInsertEdit (exit, indent +  eol);
954954    exit +=  indent.length +  previousInsertions;
955955
956-     _setCompletionAt (DartStatementCompletion .SIMPLE_ENTER , exit);
956+     _setCompletionAt (DartStatementCompletion ._simpleEnter , exit);
957957    return  true ;
958958  }
959959
@@ -967,7 +967,7 @@ class StatementCompletionProcessor {
967967      _addInsertEdit (loc, indent +  eol);
968968      offset =  loc +  indent.length;
969969    }
970-     _setCompletionAt (DartStatementCompletion .SIMPLE_ENTER , offset);
970+     _setCompletionAt (DartStatementCompletion ._simpleEnter , offset);
971971    return  true ;
972972  }
973973
@@ -985,7 +985,7 @@ class StatementCompletionProcessor {
985985      var  insertOffset =  error.offset +  error.length;
986986      _addInsertEdit (insertOffset, ';' );
987987      var  offset =  _appendNewlinePlusIndent () +  1  /*';'*/  +  previousInsertions;
988-       _setCompletionAt (DartStatementCompletion .SIMPLE_SEMICOLON , offset);
988+       _setCompletionAt (DartStatementCompletion ._simpleSemicolon , offset);
989989      return  true ;
990990    }
991991    return  false ;
@@ -1037,7 +1037,7 @@ class StatementCompletionProcessor {
10371037      }
10381038    }
10391039    _insertBuilder (sb);
1040-     _setCompletion (DartStatementCompletion .COMPLETE_SWITCH_STMT );
1040+     _setCompletion (DartStatementCompletion ._completeSwitchStmt );
10411041    return  true ;
10421042  }
10431043
@@ -1136,7 +1136,7 @@ class StatementCompletionProcessor {
11361136        }
11371137      }
11381138    }
1139-     _setCompletion (DartStatementCompletion .COMPLETE_TRY_STMT );
1139+     _setCompletion (DartStatementCompletion ._completeTryStmt );
11401140    return  true ;
11411141  }
11421142
@@ -1146,7 +1146,7 @@ class StatementCompletionProcessor {
11461146    }
11471147    _addInsertEdit (node.end, ';' );
11481148    exitPosition =  Position (file, _appendNewlinePlusIndentAt (node.end) +  1 );
1149-     _setCompletion (DartStatementCompletion .COMPLETE_VARIABLE_DECLARATION );
1149+     _setCompletion (DartStatementCompletion ._completeVariableDeclaration );
11501150    return  true ;
11511151  }
11521152
@@ -1164,7 +1164,7 @@ class StatementCompletionProcessor {
11641164    return  _complete_ifOrWhileStatement (
11651165      node,
11661166      stmt,
1167-       DartStatementCompletion .COMPLETE_WHILE_STMT ,
1167+       DartStatementCompletion ._completeWhiteStmt ,
11681168    );
11691169  }
11701170
0 commit comments