예제 #1
0
        private static Selection GetStmtContextSelection(Declaration target)
        {
            switch (target.DeclarationType)
            {
            case DeclarationType.Variable:
                return(target.GetVariableStmtContextSelection());

            case DeclarationType.Constant:
                return(target.GetConstStmtContextSelection());

            default:
                return(target.Context.GetSelection());
            }
        }
예제 #2
0
 private Selection GetStmtContextSelection(Declaration target)
 {
     return(target.DeclarationType == DeclarationType.Variable
         ? target.GetVariableStmtContextSelection()
         : target.GetConstStmtContextSelection());
 }