-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
..._test/fake_bpy_module_test/analyzer_test_data/base_analyzer_test/expect/generic_types.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<document source="<string>"> | ||
<source-filename> | ||
option.rst | ||
<module> | ||
<name> | ||
module_1 | ||
<description> | ||
<class generic_types="_GenericType1"> | ||
<name> | ||
ClassA | ||
<description> | ||
<base-class-list> | ||
<attribute-list> | ||
<function-list> | ||
<function function_type="method" generic_types="_GenericType2" option="overload"> | ||
<name> | ||
method_1 | ||
<description> | ||
<argument-list> | ||
<argument argument_type="arg"> | ||
<name> | ||
arg_1 | ||
<description> | ||
<default-value> | ||
<data-type-list> | ||
<data-type> | ||
_GenericType1 | ||
<argument argument_type="arg"> | ||
<name> | ||
arg_2 | ||
<description> | ||
<default-value> | ||
<data-type-list> | ||
<data-type> | ||
_GenericType2 | ||
<return> | ||
<description> | ||
<data-type-list> | ||
<function function_type="method" generic_types="_GenericType1" option="overload"> | ||
<name> | ||
method_1 | ||
<description> | ||
<argument-list> | ||
<argument argument_type="arg"> | ||
<name> | ||
arg_1 | ||
<description> | ||
<default-value> | ||
<data-type-list> | ||
<data-type> | ||
_GenericType1 | ||
<return> | ||
<description> | ||
<data-type-list> |
16 changes: 16 additions & 0 deletions
16
...e_bpy_module_test/analyzer_test_data/base_analyzer_test/input/generic_types.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.. module:: module_1 | ||
|
||
.. class:: ClassA | ||
|
||
:generic-types: _GenericType1 | ||
|
||
.. method:: method_1(arg_1, arg_2) | ||
|
||
:type arg_1: _GenericType1 | ||
:type arg_2: _GenericType2 | ||
:generic-types: _GenericType2 | ||
|
||
.. function:: method_1(arg_1) | ||
|
||
:type arg_1: _GenericType1 | ||
:generic-types: _GenericType1 |