예제 #1
0
파일: ImportRemover.cs 프로젝트: xNUTs/PTVS
            public ImportRemovalInfo(ImportStatementInfo statementInfo)
            {
                var node = statementInfo.Statement;

                SiblingCount = statementInfo.Siblings;

                if (node is FromImportStatement)
                {
                    Statement = new RemovedFromImportStatement((FromImportStatement)node);
                }
                else
                {
                    Statement = new RemovedImportStatement((ImportStatement)node);
                }
            }
예제 #2
0
            public ImportRemovalInfo(ImportStatementInfo statementInfo) {
                var node = statementInfo.Statement;
                SiblingCount = statementInfo.Siblings;

                if (node is FromImportStatement) {
                    Statement = new RemovedFromImportStatement((FromImportStatement)node);
                } else {
                    Statement = new RemovedImportStatement((ImportStatement)node);
                }
            }