Exemple #1
0
 internal static StatementListInfo StatementListInfo(StatementListSelection selectedStatements)
 {
     return(Syntax.StatementListInfo.Create(selectedStatements));
 }
Exemple #2
0
 internal static bool TryCreate(BlockSyntax block, TextSpan span, int minCount, int maxCount, out StatementListSelection selectedStatements)
 {
     selectedStatements = Create(block, span, minCount, maxCount);
     return(selectedStatements != null);
 }
Exemple #3
0
 internal static bool TryCreate(SwitchSectionSyntax switchSection, TextSpan span, int minCount, int maxCount, out StatementListSelection selectedStatements)
 {
     selectedStatements = Create(switchSection, span, minCount, maxCount);
     return(selectedStatements != null);
 }
Exemple #4
0
 /// <summary>
 /// Creates a new <see cref="StatementListSelection"/> based on the specified block and span.
 /// </summary>
 /// <param name="block"></param>
 /// <param name="span"></param>
 /// <param name="selectedStatements"></param>
 /// <returns>True if the specified span contains at least one statement; otherwise, false.</returns>
 public static bool TryCreate(BlockSyntax block, TextSpan span, out StatementListSelection selectedStatements)
 {
     selectedStatements = Create(block, span, 1, int.MaxValue);
     return(selectedStatements != null);
 }
Exemple #5
0
 /// <summary>
 /// Creates a new <see cref="StatementListSelection"/> based on the specified switch section and span.
 /// </summary>
 /// <param name="switchSection"></param>
 /// <param name="span"></param>
 /// <param name="selectedStatements"></param>
 /// <returns>True if the specified span contains at least one statement; otherwise, false.</returns>
 public static bool TryCreate(SwitchSectionSyntax switchSection, TextSpan span, out StatementListSelection selectedStatements)
 {
     selectedStatements = Create(switchSection, span, 1, int.MaxValue);
     return(selectedStatements != null);
 }