internal static StatementListInfo StatementListInfo(StatementListSelection selectedStatements) { return(Syntax.StatementListInfo.Create(selectedStatements)); }
internal static bool TryCreate(BlockSyntax block, TextSpan span, int minCount, int maxCount, out StatementListSelection selectedStatements) { selectedStatements = Create(block, span, minCount, maxCount); return(selectedStatements != null); }
internal static bool TryCreate(SwitchSectionSyntax switchSection, TextSpan span, int minCount, int maxCount, out StatementListSelection selectedStatements) { selectedStatements = Create(switchSection, span, minCount, maxCount); return(selectedStatements != null); }
/// <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); }
/// <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); }