Move all docstring related classes into "docstrings" subpackage
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Mon, 7 Sep 2015 14:54:54 +0000 (17:54 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Mon, 7 Sep 2015 14:54:54 +0000 (17:54 +0300)
63 files changed:
python/src/META-INF/python-core.xml
python/src/com/jetbrains/python/codeInsight/imports/AddImportHelper.java
python/src/com/jetbrains/python/codeInsight/intentions/PyGenerateDocstringIntention.java
python/src/com/jetbrains/python/codeInsight/intentions/SpecifyTypeInDocstringIntention.java
python/src/com/jetbrains/python/configuration/PyIntegratedToolsConfigurable.java
python/src/com/jetbrains/python/documentation/PyDocumentationBuilder.java
python/src/com/jetbrains/python/documentation/PyDocumentationSettings.java
python/src/com/jetbrains/python/documentation/PythonDocumentationProvider.java
python/src/com/jetbrains/python/documentation/docstrings/DocStringFormat.java [moved from python/src/com/jetbrains/python/documentation/DocStringFormat.java with 97% similarity]
python/src/com/jetbrains/python/documentation/docstrings/DocStringLineParser.java [moved from python/src/com/jetbrains/python/documentation/DocStringLineParser.java with 98% similarity]
python/src/com/jetbrains/python/documentation/docstrings/DocStringParameterReference.java [moved from python/src/com/jetbrains/python/documentation/DocStringParameterReference.java with 99% similarity]
python/src/com/jetbrains/python/documentation/docstrings/DocStringReferenceContributor.java [moved from python/src/com/jetbrains/python/documentation/DocStringReferenceContributor.java with 95% similarity]
python/src/com/jetbrains/python/documentation/docstrings/DocStringReferenceProvider.java [moved from python/src/com/jetbrains/python/documentation/DocStringReferenceProvider.java with 87% similarity]
python/src/com/jetbrains/python/documentation/docstrings/DocStringTagCompletionContributor.java [moved from python/src/com/jetbrains/python/documentation/DocStringTagCompletionContributor.java with 98% similarity]
python/src/com/jetbrains/python/documentation/docstrings/DocStringTypeReference.java [moved from python/src/com/jetbrains/python/documentation/DocStringTypeReference.java with 99% similarity]
python/src/com/jetbrains/python/documentation/docstrings/DocStringUpdater.java
python/src/com/jetbrains/python/documentation/docstrings/DocStringUtil.java [moved from python/src/com/jetbrains/python/documentation/DocStringUtil.java with 99% similarity]
python/src/com/jetbrains/python/documentation/docstrings/EpydocString.java [moved from python/src/com/jetbrains/python/documentation/EpydocString.java with 99% similarity]
python/src/com/jetbrains/python/documentation/docstrings/GoogleCodeStyleDocString.java [moved from python/src/com/jetbrains/python/documentation/GoogleCodeStyleDocString.java with 98% similarity]
python/src/com/jetbrains/python/documentation/docstrings/GoogleCodeStyleDocStringUpdater.java
python/src/com/jetbrains/python/documentation/docstrings/NumpyDocString.java [moved from python/src/com/jetbrains/python/documentation/NumpyDocString.java with 98% similarity]
python/src/com/jetbrains/python/documentation/docstrings/NumpyDocStringUpdater.java
python/src/com/jetbrains/python/documentation/docstrings/PlainDocString.java [moved from python/src/com/jetbrains/python/documentation/PlainDocString.java with 98% similarity]
python/src/com/jetbrains/python/documentation/docstrings/PyDocstringGenerator.java [moved from python/src/com/jetbrains/python/documentation/PyDocstringGenerator.java with 99% similarity]
python/src/com/jetbrains/python/documentation/docstrings/PyStructuredDocstringFormatter.java [moved from python/src/com/jetbrains/python/documentation/PyStructuredDocstringFormatter.java with 98% similarity]
python/src/com/jetbrains/python/documentation/docstrings/SectionBasedDocString.java [moved from python/src/com/jetbrains/python/documentation/SectionBasedDocString.java with 99% similarity]
python/src/com/jetbrains/python/documentation/docstrings/SectionBasedDocStringUpdater.java
python/src/com/jetbrains/python/documentation/docstrings/SphinxDocString.java [moved from python/src/com/jetbrains/python/documentation/SphinxDocString.java with 98% similarity]
python/src/com/jetbrains/python/documentation/docstrings/TagBasedDocString.java [moved from python/src/com/jetbrains/python/documentation/TagBasedDocString.java with 99% similarity]
python/src/com/jetbrains/python/documentation/docstrings/TagBasedDocStringUpdater.java
python/src/com/jetbrains/python/editor/PythonEnterHandler.java
python/src/com/jetbrains/python/editor/PythonSpaceHandler.java
python/src/com/jetbrains/python/inspections/PyDocstringInspection.java
python/src/com/jetbrains/python/inspections/PyDocstringTypesInspection.java
python/src/com/jetbrains/python/inspections/quickfix/DocstringQuickFix.java
python/src/com/jetbrains/python/inspections/quickfix/MoveFromFutureImportQuickFix.java
python/src/com/jetbrains/python/inspections/quickfix/PyRemoveParameterQuickFix.java
python/src/com/jetbrains/python/inspections/unresolvedReference/PyUnresolvedReferencesInspection.java
python/src/com/jetbrains/python/patterns/PythonPatterns.java
python/src/com/jetbrains/python/psi/impl/PyClassImpl.java
python/src/com/jetbrains/python/psi/impl/PyFileImpl.java
python/src/com/jetbrains/python/psi/impl/PyFunctionBuilder.java
python/src/com/jetbrains/python/psi/impl/PyFunctionImpl.java
python/src/com/jetbrains/python/psi/impl/PyNamedParameterImpl.java
python/src/com/jetbrains/python/psi/impl/PyTargetExpressionImpl.java
python/src/com/jetbrains/python/psi/impl/stubs/PyTargetExpressionElementType.java
python/src/com/jetbrains/python/refactoring/changeSignature/PyChangeSignatureUsageProcessor.java
python/src/com/jetbrains/python/testing/PyTestRunnerUpdater.java
python/src/com/jetbrains/python/validation/DocStringAnnotator.java
python/testSrc/com/jetbrains/python/EpydocStringTest.java
python/testSrc/com/jetbrains/python/PyEditingTest.java
python/testSrc/com/jetbrains/python/PyQuickDocTest.java
python/testSrc/com/jetbrains/python/PyQuickFixTest.java
python/testSrc/com/jetbrains/python/PyResolveTest.java
python/testSrc/com/jetbrains/python/PySectionBasedDocStringTest.java
python/testSrc/com/jetbrains/python/PySmartEnterTest.java
python/testSrc/com/jetbrains/python/PythonCompletionTest.java
python/testSrc/com/jetbrains/python/PythonHighlightingTest.java
python/testSrc/com/jetbrains/python/PythonInspectionsTest.java
python/testSrc/com/jetbrains/python/fixtures/PyTestCase.java
python/testSrc/com/jetbrains/python/intentions/PyIntentionTest.java
python/testSrc/com/jetbrains/python/refactoring/PyRenameTest.java
python/testSrc/com/jetbrains/python/refactoring/changeSignature/PyChangeSignatureTest.java

index 29489c86a6184c49a6f845828b41c2b11f6e5a64..9a1cb3e3fb1e24812dd848378be17dc4d3443325 100644 (file)
     <search.optionContributor implementation="com.jetbrains.python.configuration.PySearchableOptionContributor"/>
     <moduleService serviceInterface="com.jetbrains.python.documentation.PyDocumentationSettings"
                    serviceImplementation="com.jetbrains.python.documentation.PyDocumentationSettings"/>
-    <psi.referenceContributor implementation="com.jetbrains.python.documentation.DocStringReferenceContributor"/>
-    <completion.contributor language="Python" implementationClass="com.jetbrains.python.documentation.DocStringTagCompletionContributor"/>
+    <psi.referenceContributor implementation="com.jetbrains.python.documentation.docstrings.DocStringReferenceContributor"/>
+    <completion.contributor language="Python" implementationClass="com.jetbrains.python.documentation.docstrings.DocStringTagCompletionContributor"/>
 
     <projectService serviceInterface="com.intellij.psi.search.ProjectScopeBuilder"
                     serviceImplementation="com.jetbrains.python.psi.search.PyProjectScopeBuilder"
index a00419cc37774f02f30211c5af370b02bbba90b7..071a1a9e9bdbfe54010700ea22666bd2e7270c4d 100644 (file)
@@ -29,7 +29,7 @@ import com.intellij.psi.util.QualifiedName;
 import com.intellij.util.ArrayUtil;
 import com.intellij.util.IncorrectOperationException;
 import com.jetbrains.python.codeInsight.PyCodeInsightSettings;
-import com.jetbrains.python.documentation.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
 import com.jetbrains.python.formatter.PyBlock;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.resolve.QualifiedNameFinder;
index 93467d46f3a482e322781c8c7fac5962b0056101..18f2241e648b224a939eb79b73ee789a8a069ef0 100644 (file)
@@ -24,8 +24,8 @@ import com.intellij.psi.PsiFile;
 import com.intellij.psi.util.PsiTreeUtil;
 import com.intellij.util.IncorrectOperationException;
 import com.jetbrains.python.PyBundle;
-import com.jetbrains.python.documentation.DocStringUtil;
-import com.jetbrains.python.documentation.PyDocstringGenerator;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.PyDocstringGenerator;
 import com.jetbrains.python.documentation.doctest.PyDocstringFile;
 import com.jetbrains.python.psi.*;
 import org.jetbrains.annotations.NotNull;
index ea70948b9a0cdd5355d8da3f4879b255ac89d03b..e06bedea1f000fb70675499effa3a70ab82a8bcd 100644 (file)
@@ -27,8 +27,8 @@ import com.intellij.util.ObjectUtils;
 import com.jetbrains.python.PyBundle;
 import com.jetbrains.python.debugger.PySignature;
 import com.jetbrains.python.debugger.PySignatureCacheManager;
-import com.jetbrains.python.documentation.DocStringUtil;
-import com.jetbrains.python.documentation.PyDocstringGenerator;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.PyDocstringGenerator;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.toolbox.Substring;
 import org.jetbrains.annotations.NotNull;
index b85b12075f23cc8d8f516e2aaa3235f279ea488b..99455af4e796c5a95ad636a9c7517e006476ddac 100644 (file)
@@ -43,8 +43,8 @@ import com.jetbrains.python.PyBundle;
 import com.jetbrains.python.PyNames;
 import com.jetbrains.python.PythonFileType;
 import com.jetbrains.python.ReSTService;
-import com.jetbrains.python.documentation.DocStringFormat;
 import com.jetbrains.python.documentation.PyDocumentationSettings;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.packaging.PyPackageManagerUI;
 import com.jetbrains.python.packaging.PyPackageRequirementsSettings;
 import com.jetbrains.python.packaging.PyPackageUtil;
index f6dfd7118d206a7bc6eb94c1e92dbbfaa6a5107a..3ee468448962b445a644e38d310ad18c47491151 100644 (file)
@@ -31,6 +31,8 @@ import com.jetbrains.python.PyBundle;
 import com.jetbrains.python.PyNames;
 import com.jetbrains.python.PythonFileType;
 import com.jetbrains.python.console.PyConsoleUtil;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.PyStructuredDocstringFormatter;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.impl.PyBuiltinCache;
 import com.jetbrains.python.psi.impl.PyCallExpressionHelper;
@@ -52,7 +54,7 @@ import java.util.regex.Pattern;
 
 import static com.jetbrains.python.documentation.DocumentationBuilderKit.*;
 
-class PyDocumentationBuilder {
+public class PyDocumentationBuilder {
   private final PsiElement myElement;
   private final PsiElement myOriginalElement;
   private ChainIterable<String> myResult;
index 248aa6c5f73746aafe24f2ed3dfa3d4f4b113222..26969482f8da1c301587fa1fd02fa61f3b36c61d 100644 (file)
@@ -27,6 +27,7 @@ import com.intellij.util.xmlb.XmlSerializerUtil;
 import com.intellij.util.xmlb.annotations.OptionTag;
 import com.intellij.util.xmlb.annotations.Transient;
 import com.jetbrains.python.PyNames;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.psi.PyFile;
 import com.jetbrains.python.psi.PyTargetExpression;
 import com.jetbrains.python.psi.impl.PyPsiUtils;
index ae6d3a1f862bff74ffce67fbdee68ab1e8855665..c5e17bb0613baca37fb344c7b0a4f840978c82a8 100644 (file)
@@ -36,6 +36,7 @@ import com.intellij.util.Function;
 import com.jetbrains.python.PyNames;
 import com.jetbrains.python.console.PydevConsoleRunner;
 import com.jetbrains.python.console.PydevDocumentationProvider;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.impl.PyBuiltinCache;
 import com.jetbrains.python.psi.resolve.QualifiedNameFinder;
similarity index 97%
rename from python/src/com/jetbrains/python/documentation/DocStringFormat.java
rename to python/src/com/jetbrains/python/documentation/docstrings/DocStringFormat.java
index 99f884aca36f8bae2a4a94b22b696824545dcfea..35b4148ddba3eb831e76d385cd07eff7ad03e2c3 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.intellij.psi.PsiElement;
 import com.intellij.util.Function;
similarity index 98%
rename from python/src/com/jetbrains/python/documentation/DocStringLineParser.java
rename to python/src/com/jetbrains/python/documentation/docstrings/DocStringLineParser.java
index 21ea76a26b4d842c8c640330634a6ce452253968..baae1338dadd2c18db6b1205c76f0878891c9756 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.intellij.openapi.util.text.StringUtil;
 import com.jetbrains.python.psi.PyIndentUtil;
similarity index 99%
rename from python/src/com/jetbrains/python/documentation/DocStringParameterReference.java
rename to python/src/com/jetbrains/python/documentation/docstrings/DocStringParameterReference.java
index 8b291c65d798fd0587456d919c85cfc71262f943..c16df248b0d8375792b841b24c094b8e917a4287 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.google.common.collect.Lists;
 import com.intellij.lang.annotation.HighlightSeverity;
similarity index 95%
rename from python/src/com/jetbrains/python/documentation/DocStringReferenceContributor.java
rename to python/src/com/jetbrains/python/documentation/docstrings/DocStringReferenceContributor.java
index 192a70b8e8e8fe1ebaeef90f26e1148481586089..1804d65e62e551c2f5d119354682c4b79fbd7bbd 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.intellij.psi.PsiReferenceContributor;
 import com.intellij.psi.PsiReferenceRegistrar;
similarity index 87%
rename from python/src/com/jetbrains/python/documentation/DocStringReferenceProvider.java
rename to python/src/com/jetbrains/python/documentation/docstrings/DocStringReferenceProvider.java
index 958d43da5f613b88a6059b731e8b50c0c800bd96..0baa707157c5c53ea380208f57c4d1809250ffff 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.intellij.openapi.util.TextRange;
 import com.intellij.psi.PsiElement;
@@ -22,8 +22,6 @@ import com.intellij.psi.PsiReferenceProvider;
 import com.intellij.psi.util.PsiTreeUtil;
 import com.intellij.util.ProcessingContext;
 import com.jetbrains.python.PyNames;
-import com.jetbrains.python.documentation.DocStringParameterReference.ReferenceType;
-import com.jetbrains.python.documentation.SectionBasedDocString.SectionField;
 import com.jetbrains.python.psi.PyDocStringOwner;
 import com.jetbrains.python.psi.PyImportElement;
 import com.jetbrains.python.psi.PyStringLiteralExpression;
@@ -64,29 +62,29 @@ public class DocStringReferenceProvider extends PsiReferenceProvider {
           final TagBasedDocString taggedDocString = (TagBasedDocString)docString;
           result.addAll(referencesFromNames(expr, offset, docString,
                                             taggedDocString.getTagArguments(TagBasedDocString.PARAM_TAGS),
-                                            ReferenceType.PARAMETER));
+                                            DocStringParameterReference.ReferenceType.PARAMETER));
           result.addAll(referencesFromNames(expr, offset, docString,
                                             taggedDocString.getTagArguments(TagBasedDocString.PARAM_TYPE_TAGS),
-                                            ReferenceType.PARAMETER_TYPE));
+                                            DocStringParameterReference.ReferenceType.PARAMETER_TYPE));
           result.addAll(referencesFromNames(expr, offset, docString,
-                                            docString.getKeywordArgumentSubstrings(), ReferenceType.KEYWORD));
+                                            docString.getKeywordArgumentSubstrings(), DocStringParameterReference.ReferenceType.KEYWORD));
 
           result.addAll(referencesFromNames(expr, offset, docString,
                                             taggedDocString.getTagArguments("var"),
-                                            ReferenceType.VARIABLE));
+                                            DocStringParameterReference.ReferenceType.VARIABLE));
           result.addAll(referencesFromNames(expr, offset, docString,
                                             taggedDocString.getTagArguments("cvar"),
-                                            ReferenceType.CLASS_VARIABLE));
+                                            DocStringParameterReference.ReferenceType.CLASS_VARIABLE));
           result.addAll(referencesFromNames(expr, offset, docString,
                                             taggedDocString.getTagArguments("ivar"),
-                                            ReferenceType.INSTANCE_VARIABLE));
+                                            DocStringParameterReference.ReferenceType.INSTANCE_VARIABLE));
           result.addAll(returnTypes(element, docString, offset));
         }
         else if (docString instanceof SectionBasedDocString) {
           final SectionBasedDocString sectioned = (SectionBasedDocString)docString;
-          result.addAll(referencesFromFields(expr, offset, sectioned.getParameterFields(), ReferenceType.PARAMETER));
-          result.addAll(referencesFromFields(expr, offset, sectioned.getKeywordArgumentFields(), ReferenceType.KEYWORD));
-          result.addAll(referencesFromFields(expr, offset, sectioned.getAttributeFields(), ReferenceType.INSTANCE_VARIABLE));
+          result.addAll(referencesFromFields(expr, offset, sectioned.getParameterFields(), DocStringParameterReference.ReferenceType.PARAMETER));
+          result.addAll(referencesFromFields(expr, offset, sectioned.getKeywordArgumentFields(), DocStringParameterReference.ReferenceType.KEYWORD));
+          result.addAll(referencesFromFields(expr, offset, sectioned.getAttributeFields(), DocStringParameterReference.ReferenceType.INSTANCE_VARIABLE));
           result.addAll(referencesFromFields(expr, offset, sectioned.getReturnFields(), null));
         }
         return result.toArray(new PsiReference[result.size()]);
@@ -110,7 +108,7 @@ public class DocStringReferenceProvider extends PsiReferenceProvider {
                                                         int offset,
                                                         @NotNull StructuredDocString docString,
                                                         @NotNull List<Substring> paramNames,
-                                                        @NotNull ReferenceType refType) {
+                                                        @NotNull DocStringParameterReference.ReferenceType refType) {
     List<PsiReference> result = new ArrayList<PsiReference>();
     for (Substring name : paramNames) {
       final String s = name.toString();
@@ -118,7 +116,7 @@ public class DocStringReferenceProvider extends PsiReferenceProvider {
         final TextRange range = name.getTextRange().shiftRight(offset);
         result.add(new DocStringParameterReference(element, range, refType));
       }
-      if (refType.equals(ReferenceType.PARAMETER_TYPE)) {
+      if (refType.equals(DocStringParameterReference.ReferenceType.PARAMETER_TYPE)) {
         final Substring type = docString.getParamTypeSubstring(s);
         if (type != null) {
           result.addAll(parseTypeReferences(element, type, offset));
@@ -131,10 +129,10 @@ public class DocStringReferenceProvider extends PsiReferenceProvider {
   @NotNull
   private static List<PsiReference> referencesFromFields(@NotNull PyStringLiteralExpression element,
                                                          int offset,
-                                                         @NotNull List<SectionField> fields,
-                                                         @Nullable ReferenceType nameRefType) {
+                                                         @NotNull List<SectionBasedDocString.SectionField> fields,
+                                                         @Nullable DocStringParameterReference.ReferenceType nameRefType) {
     final List<PsiReference> result = new ArrayList<PsiReference>();
-    for (SectionField field : fields) {
+    for (SectionBasedDocString.SectionField field : fields) {
       final Substring nameSub = field.getNameAsSubstring();
       if (nameRefType != null && nameSub != null && !nameSub.isEmpty()) {
         final TextRange range = nameSub.getTextRange().shiftRight(offset);
similarity index 98%
rename from python/src/com/jetbrains/python/documentation/DocStringTagCompletionContributor.java
rename to python/src/com/jetbrains/python/documentation/docstrings/DocStringTagCompletionContributor.java
index 64ca33f267d42d702d1bfc03376d1a0d27bafbd1..7980431e835881659ee92b61ed23ab6fdd15de73 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.intellij.codeInsight.completion.*;
 import com.intellij.codeInsight.lookup.LookupElementBuilder;
similarity index 99%
rename from python/src/com/jetbrains/python/documentation/DocStringTypeReference.java
rename to python/src/com/jetbrains/python/documentation/docstrings/DocStringTypeReference.java
index f32850c5a0be76125c51d12764ec8aef4d845e99..680c84d45479e7dc7a9f0d386e2de212ab4d1d36 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.google.common.collect.Lists;
 import com.intellij.codeInsight.completion.CompletionUtil;
 import com.intellij.openapi.util.TextRange;
 import com.intellij.psi.*;
+import com.intellij.psi.util.QualifiedName;
 import com.intellij.util.IncorrectOperationException;
 import com.jetbrains.python.PyNames;
 import com.jetbrains.python.psi.*;
-import com.intellij.psi.util.QualifiedName;
 import com.jetbrains.python.psi.impl.ResolveResultList;
 import com.jetbrains.python.psi.resolve.ImportedResolveResult;
 import com.jetbrains.python.psi.resolve.QualifiedNameFinder;
index 1c5775a99b98b46ff949b45e966731337380c71f..fecefd9cc9c17a4b7c764dce855e38dbc066b733 100644 (file)
@@ -17,7 +17,6 @@ package com.jetbrains.python.documentation.docstrings;
 
 import com.intellij.openapi.util.TextRange;
 import com.intellij.openapi.util.text.StringUtil;
-import com.jetbrains.python.documentation.DocStringLineParser;
 import com.jetbrains.python.psi.PyIndentUtil;
 import com.jetbrains.python.toolbox.Substring;
 import org.jetbrains.annotations.NotNull;
similarity index 99%
rename from python/src/com/jetbrains/python/documentation/DocStringUtil.java
rename to python/src/com/jetbrains/python/documentation/docstrings/DocStringUtil.java
index 3247e4802ceeb1a6f81e7f966194ecee74d7833c..a1e26d99a20f03aaf166835b0926be43ed5bb435 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.intellij.lang.ASTNode;
 import com.intellij.openapi.module.Module;
@@ -28,6 +28,7 @@ import com.intellij.psi.PsiFile;
 import com.intellij.psi.util.PsiTreeUtil;
 import com.intellij.util.ArrayUtil;
 import com.jetbrains.python.codeInsight.controlflow.ScopeOwner;
+import com.jetbrains.python.documentation.PyDocumentationSettings;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.impl.PyPsiUtils;
 import com.jetbrains.python.psi.impl.PyStringLiteralExpressionImpl;
similarity index 99%
rename from python/src/com/jetbrains/python/documentation/EpydocString.java
rename to python/src/com/jetbrains/python/documentation/docstrings/EpydocString.java
index 386af6c9c7fc876b39c3f5849d88a5e5222690d0..25fb496e9139b0e82e6560f5140f6f7ebf567f04 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.xml.util.XmlTagUtilBase;
similarity index 98%
rename from python/src/com/jetbrains/python/documentation/GoogleCodeStyleDocString.java
rename to python/src/com/jetbrains/python/documentation/docstrings/GoogleCodeStyleDocString.java
index ae02f2074e170b4e1e260b12a3d378d5a17012a3..c78adc902e2a84b16e59c3317c74af652fa7f915 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.intellij.openapi.util.Pair;
 import com.intellij.openapi.util.text.StringUtil;
index 5e590552f6be2e000f0a20cad54ce6a90be883af..390b1b01a299c4e33ca0db17f28e36484e193721 100644 (file)
@@ -15,7 +15,6 @@
  */
 package com.jetbrains.python.documentation.docstrings;
 
-import com.jetbrains.python.documentation.SectionBasedDocString;
 import com.jetbrains.python.toolbox.Substring;
 import org.jetbrains.annotations.NotNull;
 
similarity index 98%
rename from python/src/com/jetbrains/python/documentation/NumpyDocString.java
rename to python/src/com/jetbrains/python/documentation/docstrings/NumpyDocString.java
index 0211a068361f8f0196e73f4c4130f2120335ff14..16172ab27cfad064842db5d58276438bdb117e42 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.intellij.openapi.util.Pair;
 import com.jetbrains.python.PyNames;
index 32d2047d6e2bf7e524bad1e148b74edf3430e4af..a0a77cfd7c08db1b2bfdec05cd196f3538188991 100644 (file)
@@ -15,8 +15,7 @@
  */
 package com.jetbrains.python.documentation.docstrings;
 
-import com.jetbrains.python.documentation.SectionBasedDocString;
-import com.jetbrains.python.documentation.SectionBasedDocString.Section;
+import com.jetbrains.python.documentation.docstrings.SectionBasedDocString.Section;
 import com.jetbrains.python.toolbox.Substring;
 import org.jetbrains.annotations.NotNull;
 
similarity index 98%
rename from python/src/com/jetbrains/python/documentation/PlainDocString.java
rename to python/src/com/jetbrains/python/documentation/docstrings/PlainDocString.java
index c88c061e65f85438b51b39ba379932c2483d6b21..b5c89f3c81f54f98066801f984752959e574b565 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.jetbrains.python.psi.PyIndentUtil;
 import com.jetbrains.python.psi.StructuredDocString;
similarity index 99%
rename from python/src/com/jetbrains/python/documentation/PyDocstringGenerator.java
rename to python/src/com/jetbrains/python/documentation/docstrings/PyDocstringGenerator.java
index d78bda5a7e364627912ec03e47a5392ba0fca341..247d8ebf731a73e106e3b37fd2e4b60a67bb9ca6 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.google.common.base.Preconditions;
 import com.google.common.collect.Lists;
@@ -40,7 +40,6 @@ import com.jetbrains.python.PyNames;
 import com.jetbrains.python.codeInsight.PyCodeInsightSettings;
 import com.jetbrains.python.debugger.PySignature;
 import com.jetbrains.python.debugger.PySignatureCacheManager;
-import com.jetbrains.python.documentation.docstrings.*;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.toolbox.Substring;
 import org.jetbrains.annotations.NotNull;
similarity index 98%
rename from python/src/com/jetbrains/python/documentation/PyStructuredDocstringFormatter.java
rename to python/src/com/jetbrains/python/documentation/docstrings/PyStructuredDocstringFormatter.java
index ddfc9cd66aac8176d524c77b745b0a6eb812f63e..526af32c444c39ab6cd65f3c11b4c18f4535fbcc 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.google.common.collect.Lists;
 import com.intellij.execution.process.ProcessOutput;
@@ -26,6 +26,7 @@ import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.openapi.vfs.encoding.EncodingProjectManager;
 import com.intellij.psi.PsiElement;
 import com.jetbrains.python.PythonHelpersLocator;
+import com.jetbrains.python.documentation.PyDocumentationBuilder;
 import com.jetbrains.python.psi.StructuredDocString;
 import com.jetbrains.python.sdk.PySdkUtil;
 import com.jetbrains.python.sdk.PythonEnvUtil;
similarity index 99%
rename from python/src/com/jetbrains/python/documentation/SectionBasedDocString.java
rename to python/src/com/jetbrains/python/documentation/docstrings/SectionBasedDocString.java
index a2ee4fa2085c3753f5751b3dd8f5b3233378a1f1..835051471573d37729296a0ce0bd2985f3a0ffd5 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
index 585534a1493da91ef59cb375662c7296d9130140..860fe3326c1286bb55a1a756a11d59c7d1d9bba9 100644 (file)
@@ -20,9 +20,8 @@ import com.intellij.openapi.util.Condition;
 import com.intellij.openapi.util.Pair;
 import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.util.containers.ContainerUtil;
-import com.jetbrains.python.documentation.SectionBasedDocString;
-import com.jetbrains.python.documentation.SectionBasedDocString.Section;
-import com.jetbrains.python.documentation.SectionBasedDocString.SectionField;
+import com.jetbrains.python.documentation.docstrings.SectionBasedDocString.Section;
+import com.jetbrains.python.documentation.docstrings.SectionBasedDocString.SectionField;
 import com.jetbrains.python.psi.PyIndentUtil;
 import com.jetbrains.python.toolbox.Substring;
 import org.jetbrains.annotations.NotNull;
similarity index 98%
rename from python/src/com/jetbrains/python/documentation/SphinxDocString.java
rename to python/src/com/jetbrains/python/documentation/docstrings/SphinxDocString.java
index 68ebe3728977bbd34a7c9a1388e46aa1515ee2ef..5f850863cdc19577eb599f175c0a9bb41f1281d3 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.jetbrains.python.toolbox.Substring;
 import org.jetbrains.annotations.NotNull;
similarity index 99%
rename from python/src/com/jetbrains/python/documentation/TagBasedDocString.java
rename to python/src/com/jetbrains/python/documentation/docstrings/TagBasedDocString.java
index 669d4f523f291e5823d6ff99c75f164c7692d57d..745c4f2a953e614b6e72771fd1d5406cbfe79579 100644 (file)
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package com.jetbrains.python.documentation;
+package com.jetbrains.python.documentation.docstrings;
 
 import com.google.common.collect.Maps;
 import com.intellij.openapi.util.TextRange;
index eda1b91b6d4a5b379bbe52d8ac072a2ed994cf61..a7cbc1aecaa253058568df5b878f914bc11af007 100644 (file)
@@ -15,7 +15,6 @@
  */
 package com.jetbrains.python.documentation.docstrings;
 
-import com.jetbrains.python.documentation.TagBasedDocString;
 import com.jetbrains.python.toolbox.Substring;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
index 64677f0f23e40d2943bd659664c896c8aeff4629..c4b87f5fc1b06e1d265ffb2e7694f6eedcd7c70f 100644 (file)
@@ -35,8 +35,8 @@ import com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil;
 import com.intellij.psi.util.PsiTreeUtil;
 import com.jetbrains.python.PyTokenTypes;
 import com.jetbrains.python.codeInsight.PyCodeInsightSettings;
-import com.jetbrains.python.documentation.DocStringUtil;
-import com.jetbrains.python.documentation.PyDocstringGenerator;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.PyDocstringGenerator;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.impl.PyStringLiteralExpressionImpl;
 import org.jetbrains.annotations.NotNull;
index 822a7323ffed328664fd9c5c03dbec1560070c46..e1c36da2f456046194796ab83866a3094f9096f3 100644 (file)
@@ -25,7 +25,7 @@ import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.psi.PsiElement;
 import com.intellij.psi.PsiFile;
 import com.intellij.psi.util.PsiTreeUtil;
-import com.jetbrains.python.documentation.PyDocstringGenerator;
+import com.jetbrains.python.documentation.docstrings.PyDocstringGenerator;
 import com.jetbrains.python.psi.PyDocStringOwner;
 import org.jetbrains.annotations.NotNull;
 
index bef55660f381017ba9a4e24d65cab0ba9dd68469..cd922e8846e289806b1e42818e624175174db49e 100644 (file)
@@ -26,8 +26,8 @@ import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.psi.PsiElement;
 import com.intellij.psi.PsiElementVisitor;
 import com.jetbrains.python.PyBundle;
-import com.jetbrains.python.documentation.DocStringUtil;
-import com.jetbrains.python.documentation.PlainDocString;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.PlainDocString;
 import com.jetbrains.python.inspections.quickfix.DocstringQuickFix;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.testing.PythonUnitTestUtil;
index e012ebf08176687e3a32e82b8196eab5f6b167ad..2826dc8d6b6f199d4190e5ffa25c8e4979c872c8 100644 (file)
@@ -23,7 +23,7 @@ import com.jetbrains.python.PyBundle;
 import com.jetbrains.python.debugger.PySignature;
 import com.jetbrains.python.debugger.PySignatureCacheManager;
 import com.jetbrains.python.debugger.PySignatureUtil;
-import com.jetbrains.python.documentation.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
 import com.jetbrains.python.psi.PyElementGenerator;
 import com.jetbrains.python.psi.PyFunction;
 import com.jetbrains.python.psi.PyStringLiteralExpression;
index 294b592048e34915b2517276514fbbc089a4c611..0622727ebc1b1526c76bfc6ecacf139019815e40 100644 (file)
@@ -29,7 +29,7 @@ import com.intellij.psi.util.PsiTreeUtil;
 import com.intellij.util.IncorrectOperationException;
 import com.jetbrains.python.PyBundle;
 import com.jetbrains.python.codeInsight.intentions.PyGenerateDocstringIntention;
-import com.jetbrains.python.documentation.PyDocstringGenerator;
+import com.jetbrains.python.documentation.docstrings.PyDocstringGenerator;
 import com.jetbrains.python.psi.*;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
index 87f2e1d315cff24081b3ed504fc5bf06f48ed8ec..585a6d1a3b6de3bf58c9abc4008346f238695c0d 100644 (file)
@@ -21,7 +21,7 @@ import com.intellij.openapi.project.Project;
 import com.intellij.psi.PsiElement;
 import com.intellij.psi.PsiFile;
 import com.jetbrains.python.PyBundle;
-import com.jetbrains.python.documentation.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
 import com.jetbrains.python.psi.PyFile;
 import com.jetbrains.python.psi.PyStringLiteralExpression;
 import org.jetbrains.annotations.NotNull;
index bd872fdee632c0b8aef3dbf42f043ab9ce923dac..2b1f60056fc4bcddce664f79a23f6f22bc65e28b 100644 (file)
@@ -22,7 +22,7 @@ import com.intellij.psi.PsiElement;
 import com.intellij.psi.util.PsiTreeUtil;
 import com.intellij.usageView.UsageInfo;
 import com.jetbrains.python.PyBundle;
-import com.jetbrains.python.documentation.PyDocstringGenerator;
+import com.jetbrains.python.documentation.docstrings.PyDocstringGenerator;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.resolve.PyResolveContext;
 import com.jetbrains.python.refactoring.PyRefactoringUtil;
index dafcd4fa648f726e170de63ea8fd64c007ed3b81..c14ddd47642779edb746812e1d845efd2f1d5c89 100644 (file)
@@ -49,8 +49,8 @@ import com.jetbrains.python.codeInsight.imports.AutoImportQuickFix;
 import com.jetbrains.python.codeInsight.imports.OptimizeImportsQuickFix;
 import com.jetbrains.python.codeInsight.imports.PythonReferenceImporter;
 import com.jetbrains.python.console.PydevConsoleRunner;
-import com.jetbrains.python.documentation.DocStringParameterReference;
-import com.jetbrains.python.documentation.DocStringTypeReference;
+import com.jetbrains.python.documentation.docstrings.DocStringParameterReference;
+import com.jetbrains.python.documentation.docstrings.DocStringTypeReference;
 import com.jetbrains.python.inspections.*;
 import com.jetbrains.python.inspections.quickfix.*;
 import com.jetbrains.python.packaging.PyPIPackageUtil;
index 5f7d6b9ca64a7f33d77849a365a0f39de06f9a49..643d76135f048bb1332beb6f40fd37e43c9d7b9a 100644 (file)
@@ -22,7 +22,7 @@ import com.intellij.psi.PsiElement;
 import com.intellij.psi.util.PsiTreeUtil;
 import com.intellij.util.ProcessingContext;
 import com.jetbrains.python.codeInsight.controlflow.ScopeOwner;
-import com.jetbrains.python.documentation.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.resolve.PyResolveContext;
 import com.jetbrains.python.psi.types.TypeEvalContext;
index 0ff40fc7f636368d52d8596ac301a926f6770558..284ab4aedc37c7e4f626ecf0b6f633c69610019f 100644 (file)
@@ -39,7 +39,7 @@ import com.jetbrains.python.PythonDialectsTokenSetProvider;
 import com.jetbrains.python.codeInsight.controlflow.ControlFlowCache;
 import com.jetbrains.python.codeInsight.controlflow.ScopeOwner;
 import com.jetbrains.python.codeInsight.dataflow.scope.ScopeUtil;
-import com.jetbrains.python.documentation.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.resolve.PyResolveContext;
 import com.jetbrains.python.psi.resolve.PyResolveUtil;
index 31f1a2fd01283b7530cf2334d9f9c1aca771fca5..fbc2fb36539fc582ddc289d468e4024cfa78b55f 100644 (file)
@@ -42,7 +42,7 @@ import com.jetbrains.python.PyNames;
 import com.jetbrains.python.PythonFileType;
 import com.jetbrains.python.PythonLanguage;
 import com.jetbrains.python.codeInsight.controlflow.ControlFlowCache;
-import com.jetbrains.python.documentation.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
 import com.jetbrains.python.inspections.PythonVisitorFilter;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.resolve.QualifiedNameFinder;
index 5842ca27a31c573d9dd6a6321bfa76cbc9d0bc1c..1ea473310d3aeafa6092ec5df8d9a28172067270 100644 (file)
@@ -20,8 +20,8 @@ import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.psi.PsiElement;
 import com.intellij.util.ArrayUtil;
 import com.jetbrains.python.PyNames;
-import com.jetbrains.python.documentation.DocStringFormat;
-import com.jetbrains.python.documentation.PyDocstringGenerator;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
+import com.jetbrains.python.documentation.docstrings.PyDocstringGenerator;
 import com.jetbrains.python.psi.*;
 import org.jetbrains.annotations.NotNull;
 
index 66e9248e076184566b06383e2266f686a8166e66..cdf338ee18cf837133fd1db14f1c81fd183fee38 100644 (file)
@@ -41,7 +41,7 @@ import com.jetbrains.python.PyTokenTypes;
 import com.jetbrains.python.codeInsight.controlflow.ControlFlowCache;
 import com.jetbrains.python.codeInsight.controlflow.ScopeOwner;
 import com.jetbrains.python.codeInsight.dataflow.scope.ScopeUtil;
-import com.jetbrains.python.documentation.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.resolve.QualifiedNameFinder;
 import com.jetbrains.python.psi.stubs.PyClassStub;
index 904f20994ed8d963af8b1e92ac6468cab4e4ee17..4a7479fdc5178a968442359f57ae8109afb2b15b 100644 (file)
@@ -35,7 +35,7 @@ import com.jetbrains.python.PyTokenTypes;
 import com.jetbrains.python.PythonDialectsTokenSetProvider;
 import com.jetbrains.python.codeInsight.controlflow.ScopeOwner;
 import com.jetbrains.python.codeInsight.dataflow.scope.ScopeUtil;
-import com.jetbrains.python.documentation.NumpyDocString;
+import com.jetbrains.python.documentation.docstrings.NumpyDocString;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.resolve.PyResolveContext;
 import com.jetbrains.python.psi.stubs.PyNamedParameterStub;
index 9c901130fdb533fd0a7e88812048f2adfb93a14e..b1681339bde521dde64badf5176449243f222a30 100644 (file)
@@ -37,7 +37,7 @@ import com.jetbrains.python.codeInsight.controlflow.ControlFlowCache;
 import com.jetbrains.python.codeInsight.controlflow.ScopeOwner;
 import com.jetbrains.python.codeInsight.dataflow.scope.Scope;
 import com.jetbrains.python.codeInsight.dataflow.scope.ScopeUtil;
-import com.jetbrains.python.documentation.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.impl.references.PyQualifiedReference;
 import com.jetbrains.python.psi.impl.references.PyTargetReference;
index 28e706281efaca6f6f152874d0ecbc280a84e026..ec3aa1deb3944bda539212bf88273a16c0792672 100644 (file)
@@ -24,13 +24,13 @@ import com.intellij.psi.stubs.StubElement;
 import com.intellij.psi.stubs.StubInputStream;
 import com.intellij.psi.stubs.StubOutputStream;
 import com.intellij.psi.util.PsiTreeUtil;
+import com.intellij.psi.util.QualifiedName;
 import com.intellij.util.io.StringRef;
 import com.jetbrains.python.PyElementTypes;
 import com.jetbrains.python.PyNames;
 import com.jetbrains.python.PythonDialectsTokenSetProvider;
-import com.jetbrains.python.documentation.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
 import com.jetbrains.python.psi.*;
-import com.intellij.psi.util.QualifiedName;
 import com.jetbrains.python.psi.impl.PyTargetExpressionImpl;
 import com.jetbrains.python.psi.stubs.*;
 import org.jetbrains.annotations.NotNull;
index 319106eea9ef37ab6820235c80987c417476c56e..6ab464b5a7b14339359c53bb19d9dd0cca44adfa 100644 (file)
@@ -33,7 +33,7 @@ import com.intellij.util.containers.HashSet;
 import com.intellij.util.containers.MultiMap;
 import com.jetbrains.python.PyNames;
 import com.jetbrains.python.PythonLanguage;
-import com.jetbrains.python.documentation.PyDocstringGenerator;
+import com.jetbrains.python.documentation.docstrings.PyDocstringGenerator;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.search.PyOverridingMethodsSearch;
 import com.jetbrains.python.refactoring.PyRefactoringUtil;
index ff2684dbd4c933b87777297699e7c90422b89561..67449b9b2d2a749034474324632745d9595194d1 100644 (file)
@@ -34,8 +34,8 @@ import com.intellij.psi.util.PsiTreeUtil;
 import com.jetbrains.python.PyNames;
 import com.jetbrains.python.PythonFileType;
 import com.jetbrains.python.PythonModuleTypeBase;
-import com.jetbrains.python.documentation.DocStringFormat;
 import com.jetbrains.python.documentation.PyDocumentationSettings;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.packaging.PyPackageUtil;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.sdk.PythonSdkType;
index df887b56f238fae0c88359b51ae40d671662a051..4b7cff3afacf796a95f1c6ad4a40340f1d3d55a3 100644 (file)
@@ -18,7 +18,7 @@ package com.jetbrains.python.validation;
 import com.intellij.lang.annotation.Annotation;
 import com.intellij.openapi.util.TextRange;
 import com.jetbrains.python.PyNames;
-import com.jetbrains.python.documentation.*;
+import com.jetbrains.python.documentation.docstrings.*;
 import com.jetbrains.python.highlighting.PyHighlighter;
 import com.jetbrains.python.psi.*;
 
index c9d0b87df81586a655609a9fcdd94b81c04e3d23..2746f76e15a171c5743a3998d68e6ba56823fe41 100644 (file)
@@ -16,7 +16,7 @@
 package com.jetbrains.python;
 
 import com.intellij.testFramework.UsefulTestCase;
-import com.jetbrains.python.documentation.EpydocString;
+import com.jetbrains.python.documentation.docstrings.EpydocString;
 import com.jetbrains.python.toolbox.Substring;
 import org.jetbrains.annotations.NotNull;
 
index 9d3c5fadef69753e0e6726cc66a54ed69ace1ac6..96bb0501f8056e40cae85f6e4424ffa5475a3af6 100644 (file)
@@ -25,7 +25,7 @@ import com.intellij.openapi.editor.LogicalPosition;
 import com.intellij.openapi.editor.ex.EditorSettingsExternalizable;
 import com.intellij.openapi.util.Computable;
 import com.intellij.psi.PsiFile;
-import com.jetbrains.python.documentation.DocStringFormat;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.fixtures.PyTestCase;
 import com.jetbrains.python.psi.LanguageLevel;
 import org.jetbrains.annotations.NotNull;
index 824c1106b50b9f275e3a985631e15eb7f0fe4e37..2496c5df31c7b5efa919e34ec5e569ca4e2187e9 100644 (file)
@@ -20,9 +20,9 @@ import com.intellij.openapi.vfs.VfsUtil;
 import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.psi.PsiElement;
 import com.intellij.testFramework.TestDataFile;
-import com.jetbrains.python.documentation.DocStringFormat;
 import com.jetbrains.python.documentation.PyDocumentationSettings;
 import com.jetbrains.python.documentation.PythonDocumentationProvider;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.fixtures.LightMarkedTestCase;
 import com.jetbrains.python.fixtures.PyTestCase;
 import com.jetbrains.python.psi.*;
index 27f9d21758837a2c5b8e785b0f360d153d7a784b..8040ea0cc5549c9514786439be934b9be9b9aca0 100644 (file)
@@ -20,7 +20,7 @@ import com.intellij.codeInspection.ex.InspectionProfileImpl;
 import com.intellij.testFramework.TestDataFile;
 import com.intellij.testFramework.TestDataPath;
 import com.jetbrains.python.codeInsight.PyCodeInsightSettings;
-import com.jetbrains.python.documentation.DocStringFormat;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.fixtures.PyTestCase;
 import com.jetbrains.python.inspections.*;
 import com.jetbrains.python.inspections.unresolvedReference.PyUnresolvedReferencesInspection;
index a616c64dcda2703d5e964cafae7190ab5666884e..e5de1b1b9b417e667bb375e5366b1f5eceaff56a 100644 (file)
@@ -23,7 +23,7 @@ import com.intellij.psi.util.PsiTreeUtil;
 import com.intellij.testFramework.UsefulTestCase;
 import com.jetbrains.python.codeInsight.controlflow.ScopeOwner;
 import com.jetbrains.python.codeInsight.dataflow.scope.ScopeUtil;
-import com.jetbrains.python.documentation.DocStringFormat;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.fixtures.PyResolveTestCase;
 import com.jetbrains.python.psi.*;
 import com.jetbrains.python.psi.impl.PyPsiUtils;
index 85219a1893885243a3a02bf2ed165fa1cff114e7..c5f41e5db09551f1b7df40fc2b2e821cb92ab693 100644 (file)
@@ -18,12 +18,12 @@ package com.jetbrains.python;
 import com.intellij.psi.PsiElement;
 import com.intellij.psi.search.PsiElementProcessor;
 import com.intellij.psi.util.PsiTreeUtil;
-import com.jetbrains.python.documentation.DocStringUtil;
-import com.jetbrains.python.documentation.GoogleCodeStyleDocString;
-import com.jetbrains.python.documentation.NumpyDocString;
-import com.jetbrains.python.documentation.SectionBasedDocString;
-import com.jetbrains.python.documentation.SectionBasedDocString.Section;
-import com.jetbrains.python.documentation.SectionBasedDocString.SectionField;
+import com.jetbrains.python.documentation.docstrings.DocStringUtil;
+import com.jetbrains.python.documentation.docstrings.GoogleCodeStyleDocString;
+import com.jetbrains.python.documentation.docstrings.NumpyDocString;
+import com.jetbrains.python.documentation.docstrings.SectionBasedDocString;
+import com.jetbrains.python.documentation.docstrings.SectionBasedDocString.Section;
+import com.jetbrains.python.documentation.docstrings.SectionBasedDocString.SectionField;
 import com.jetbrains.python.fixtures.PyTestCase;
 import com.jetbrains.python.psi.PyStringLiteralExpression;
 import com.jetbrains.python.toolbox.Substring;
index 6266d05733923a9239ca1208e70dbb8cd83f2910..e6f3302154fcbe100a26282a84b53dcdcf855b8c 100644 (file)
@@ -23,8 +23,8 @@ import com.intellij.openapi.application.Result;
 import com.intellij.openapi.command.WriteCommandAction;
 import com.intellij.openapi.editor.Editor;
 import com.jetbrains.python.codeInsight.PyCodeInsightSettings;
-import com.jetbrains.python.documentation.DocStringFormat;
 import com.jetbrains.python.documentation.PyDocumentationSettings;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.fixtures.PyTestCase;
 import org.jetbrains.annotations.NotNull;
 
index c57a5eaae24468cc771e8d4e6630f5641efff578..c394a878081f9d2e235fb83f2d72011d6058d3c4 100644 (file)
@@ -23,8 +23,8 @@ import com.intellij.codeInsight.lookup.Lookup;
 import com.intellij.codeInsight.lookup.LookupElement;
 import com.intellij.codeInsight.lookup.LookupElementBuilder;
 import com.intellij.testFramework.PsiTestUtil;
-import com.jetbrains.python.documentation.DocStringFormat;
 import com.jetbrains.python.documentation.PyDocumentationSettings;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.fixtures.PyTestCase;
 import com.jetbrains.python.psi.LanguageLevel;
 import org.jetbrains.annotations.Nullable;
index 73ab49e28659db3b8c9465d12449cb9d424a0939..865d2006b695c54dff49f14ece6c94ff876c529a 100644 (file)
@@ -20,8 +20,8 @@ import com.intellij.openapi.editor.colors.EditorColorsScheme;
 import com.intellij.openapi.editor.colors.TextAttributesKey;
 import com.intellij.openapi.editor.markup.EffectType;
 import com.intellij.openapi.editor.markup.TextAttributes;
-import com.jetbrains.python.documentation.DocStringFormat;
 import com.jetbrains.python.documentation.PyDocumentationSettings;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.fixtures.PyTestCase;
 import com.jetbrains.python.psi.LanguageLevel;
 import com.jetbrains.python.psi.impl.PythonLanguageLevelPusher;
index 377e4b0c9126f270968b30f250b2bf8e13be9ec1..99293512d117b4b8b4b3c95a34b226006128bd02 100644 (file)
@@ -18,7 +18,7 @@ package com.jetbrains.python;
 import com.intellij.codeInspection.InspectionProfileEntry;
 import com.intellij.codeInspection.LocalInspectionTool;
 import com.intellij.codeInspection.ex.LocalInspectionToolWrapper;
-import com.jetbrains.python.documentation.DocStringFormat;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.fixtures.PyTestCase;
 import com.jetbrains.python.inspections.*;
 import com.jetbrains.python.psi.LanguageLevel;
index 864ce614b867a2a4449c6618ae5ebad1a83db9ad..6f485c53fcb43bc2626e3b5f1f9872682738d874 100644 (file)
@@ -61,8 +61,8 @@ import com.intellij.util.IncorrectOperationException;
 import com.jetbrains.python.PythonHelpersLocator;
 import com.jetbrains.python.PythonLanguage;
 import com.jetbrains.python.PythonTestUtil;
-import com.jetbrains.python.documentation.DocStringFormat;
 import com.jetbrains.python.documentation.PyDocumentationSettings;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.formatter.PyCodeStyleSettings;
 import com.jetbrains.python.psi.LanguageLevel;
 import com.jetbrains.python.psi.PyClass;
index de62a0b23fadde0d55cb4110e6648ff8e8ca9460..a19c4978aaf20190b8f1e4640a66c61762f5ce34 100644 (file)
@@ -19,8 +19,8 @@ import com.intellij.codeInsight.CodeInsightSettings;
 import com.intellij.codeInsight.intention.IntentionAction;
 import com.jetbrains.python.PyBundle;
 import com.jetbrains.python.codeInsight.PyCodeInsightSettings;
-import com.jetbrains.python.documentation.DocStringFormat;
 import com.jetbrains.python.documentation.PyDocumentationSettings;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.fixtures.PyTestCase;
 import com.jetbrains.python.psi.LanguageLevel;
 import com.jetbrains.python.psi.impl.PythonLanguageLevelPusher;
index a5f9a3db46ef50e011de2da11f5514e38f871c60..83655d41d80850448cf2a0de02d32012694b345f 100644 (file)
@@ -22,7 +22,7 @@ import com.intellij.psi.PsiElement;
 import com.intellij.refactoring.BaseRefactoringProcessor;
 import com.intellij.testFramework.PlatformTestUtil;
 import com.jetbrains.python.PythonTestUtil;
-import com.jetbrains.python.documentation.DocStringFormat;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.fixtures.PyTestCase;
 import com.jetbrains.python.psi.LanguageLevel;
 
index 1125fd56f4065d97e7831c9c15183e073c1a55f9..066f7b7f3c8f254ef1be716205dfff80c748419c 100644 (file)
@@ -23,7 +23,7 @@ import com.intellij.util.Function;
 import com.intellij.util.containers.ContainerUtil;
 import com.jetbrains.python.PyBundle;
 import com.jetbrains.python.PythonFileType;
-import com.jetbrains.python.documentation.DocStringFormat;
+import com.jetbrains.python.documentation.docstrings.DocStringFormat;
 import com.jetbrains.python.fixtures.PyTestCase;
 import com.jetbrains.python.psi.LanguageLevel;
 import com.jetbrains.python.psi.PyFunction;