robotcode-robot 0.75.0__py3-none-any.whl → 0.76.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- robotcode/robot/__version__.py +1 -1
- robotcode/robot/diagnostics/document_cache_helper.py +62 -4
- robotcode/robot/diagnostics/entities.py +4 -5
- robotcode/robot/diagnostics/imports_manager.py +37 -21
- robotcode/robot/diagnostics/library_doc.py +93 -108
- robotcode/robot/diagnostics/model_helper.py +1 -1
- robotcode/robot/diagnostics/namespace.py +352 -266
- robotcode/robot/diagnostics/namespace_analyzer.py +36 -6
- robotcode/robot/diagnostics/workspace_config.py +1 -0
- {robotcode_robot-0.75.0.dist-info → robotcode_robot-0.76.1.dist-info}/METADATA +2 -2
- {robotcode_robot-0.75.0.dist-info → robotcode_robot-0.76.1.dist-info}/RECORD +13 -13
- {robotcode_robot-0.75.0.dist-info → robotcode_robot-0.76.1.dist-info}/WHEEL +0 -0
- {robotcode_robot-0.75.0.dist-info → robotcode_robot-0.76.1.dist-info}/licenses/LICENSE.txt +0 -0
@@ -1131,12 +1131,22 @@ class NamespaceAnalyzer(Visitor, ModelHelper):
|
|
1131
1131
|
if name_token is None:
|
1132
1132
|
return
|
1133
1133
|
|
1134
|
+
found = False
|
1134
1135
|
entries = self.namespace.get_import_entries()
|
1135
1136
|
if entries and self.namespace.document:
|
1136
1137
|
for v in entries.values():
|
1137
1138
|
if v.import_source == self.namespace.source and v.import_range == range_from_token(name_token):
|
1138
|
-
|
1139
|
-
|
1139
|
+
for k in self._namespace_references:
|
1140
|
+
if type(k) == type(v) and k.library_doc.source_or_origin == v.library_doc.source_or_origin:
|
1141
|
+
self._namespace_references[k].add(
|
1142
|
+
Location(self.namespace.document.document_uri, v.import_range)
|
1143
|
+
)
|
1144
|
+
found = True
|
1145
|
+
break
|
1146
|
+
if not found:
|
1147
|
+
if v not in self._namespace_references:
|
1148
|
+
self._namespace_references[v] = set()
|
1149
|
+
break
|
1140
1150
|
|
1141
1151
|
def visit_ResourceImport(self, node: ResourceImport) -> None: # noqa: N802
|
1142
1152
|
if get_robot_version() >= (6, 1):
|
@@ -1146,12 +1156,22 @@ class NamespaceAnalyzer(Visitor, ModelHelper):
|
|
1146
1156
|
if name_token is None:
|
1147
1157
|
return
|
1148
1158
|
|
1159
|
+
found = False
|
1149
1160
|
entries = self.namespace.get_import_entries()
|
1150
1161
|
if entries and self.namespace.document:
|
1151
1162
|
for v in entries.values():
|
1152
1163
|
if v.import_source == self.namespace.source and v.import_range == range_from_token(name_token):
|
1153
|
-
|
1154
|
-
|
1164
|
+
for k in self._namespace_references:
|
1165
|
+
if type(k) == type(v) and k.library_doc.source_or_origin == v.library_doc.source_or_origin:
|
1166
|
+
self._namespace_references[k].add(
|
1167
|
+
Location(self.namespace.document.document_uri, v.import_range)
|
1168
|
+
)
|
1169
|
+
found = True
|
1170
|
+
break
|
1171
|
+
if not found:
|
1172
|
+
if v not in self._namespace_references:
|
1173
|
+
self._namespace_references[v] = set()
|
1174
|
+
break
|
1155
1175
|
|
1156
1176
|
def visit_LibraryImport(self, node: LibraryImport) -> None: # noqa: N802
|
1157
1177
|
if get_robot_version() >= (6, 1):
|
@@ -1161,9 +1181,19 @@ class NamespaceAnalyzer(Visitor, ModelHelper):
|
|
1161
1181
|
if name_token is None:
|
1162
1182
|
return
|
1163
1183
|
|
1184
|
+
found = False
|
1164
1185
|
entries = self.namespace.get_import_entries()
|
1165
1186
|
if entries and self.namespace.document:
|
1166
1187
|
for v in entries.values():
|
1167
1188
|
if v.import_source == self.namespace.source and v.import_range == range_from_token(name_token):
|
1168
|
-
|
1169
|
-
|
1189
|
+
for k in self._namespace_references:
|
1190
|
+
if type(k) == type(v) and k.library_doc.source_or_origin == v.library_doc.source_or_origin:
|
1191
|
+
self._namespace_references[k].add(
|
1192
|
+
Location(self.namespace.document.document_uri, v.import_range)
|
1193
|
+
)
|
1194
|
+
found = True
|
1195
|
+
break
|
1196
|
+
if not found:
|
1197
|
+
if v not in self._namespace_references:
|
1198
|
+
self._namespace_references[v] = set()
|
1199
|
+
break
|
@@ -48,6 +48,7 @@ class CacheConfig(ConfigBase):
|
|
48
48
|
save_location: CacheSaveLocation = CacheSaveLocation.WORKSPACE_STORAGE
|
49
49
|
ignored_libraries: List[str] = field(default_factory=list)
|
50
50
|
ignored_variables: List[str] = field(default_factory=list)
|
51
|
+
ignore_arguments_for_library: List[str] = field(default_factory=list)
|
51
52
|
|
52
53
|
|
53
54
|
@config_section("robotcode.analysis.robot")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: robotcode-robot
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.76.1
|
4
4
|
Summary: Support classes for RobotCode for handling Robot Framework projects.
|
5
5
|
Project-URL: Homepage, https://robotcode.io
|
6
6
|
Project-URL: Donate, https://github.com/sponsors/d-biehl
|
@@ -26,7 +26,7 @@ Classifier: Topic :: Utilities
|
|
26
26
|
Classifier: Typing :: Typed
|
27
27
|
Requires-Python: >=3.8
|
28
28
|
Requires-Dist: platformdirs<4.2.0,>=3.2.0
|
29
|
-
Requires-Dist: robotcode-core==0.
|
29
|
+
Requires-Dist: robotcode-core==0.76.1
|
30
30
|
Requires-Dist: robotframework>=4.1.0
|
31
31
|
Requires-Dist: tomli>=1.1.0; python_version < '3.11'
|
32
32
|
Description-Content-Type: text/markdown
|
@@ -1,20 +1,20 @@
|
|
1
1
|
robotcode/robot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
robotcode/robot/__version__.py,sha256=
|
2
|
+
robotcode/robot/__version__.py,sha256=JYMWad1hoQA4r17GzBIhK4in6LVyBr7OqBPAmFHo8cc,23
|
3
3
|
robotcode/robot/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
4
4
|
robotcode/robot/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
robotcode/robot/config/loader.py,sha256=LpGqJAdysvVSZpccW-Il52xn9RMBBb9X94emlBY7zCc,6077
|
6
6
|
robotcode/robot/config/model.py,sha256=QzniYg-pxQucKJDg7_lSodWg6DKwhTaVf_wN3biUXCk,86499
|
7
7
|
robotcode/robot/config/utils.py,sha256=c_WZg39DJgM6kXcAH_h-v68qhf1eStJ0TslTawaJoZw,2827
|
8
8
|
robotcode/robot/diagnostics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
|
-
robotcode/robot/diagnostics/document_cache_helper.py,sha256=
|
10
|
-
robotcode/robot/diagnostics/entities.py,sha256=
|
9
|
+
robotcode/robot/diagnostics/document_cache_helper.py,sha256=XLOqPl88Rbo_01pt8Zx2jMH38m5kvoOnASNDoe8BK_0,22292
|
10
|
+
robotcode/robot/diagnostics/entities.py,sha256=djUbkVSLmwlg9E-jvW_jw7h6yjpSl6YmTpDDzUNB0-8,11051
|
11
11
|
robotcode/robot/diagnostics/errors.py,sha256=VavgWYuHoW5sTT16j2rl9hxMhWxBKNSFsNmHWPzARQQ,1413
|
12
|
-
robotcode/robot/diagnostics/imports_manager.py,sha256=
|
13
|
-
robotcode/robot/diagnostics/library_doc.py,sha256=
|
14
|
-
robotcode/robot/diagnostics/model_helper.py,sha256=
|
15
|
-
robotcode/robot/diagnostics/namespace.py,sha256=
|
16
|
-
robotcode/robot/diagnostics/namespace_analyzer.py,sha256=
|
17
|
-
robotcode/robot/diagnostics/workspace_config.py,sha256=
|
12
|
+
robotcode/robot/diagnostics/imports_manager.py,sha256=eMt3Quac1hV5zq6CO45afhUOiL4usww3YTNSyt1bZrE,56185
|
13
|
+
robotcode/robot/diagnostics/library_doc.py,sha256=KNwaudGA4u9Eu9-fMbRxRAlp16hADGwUjfjQnnsOJO0,97047
|
14
|
+
robotcode/robot/diagnostics/model_helper.py,sha256=3-6lZluPQaT9KstHLfV0jsRUAjTfrkUOomSXiMPKoQg,29868
|
15
|
+
robotcode/robot/diagnostics/namespace.py,sha256=EhbHHX2c-Yy_j1YBzC6PFxNVCY50E2LB3kGOT-qgDZ4,85145
|
16
|
+
robotcode/robot/diagnostics/namespace_analyzer.py,sha256=tElI2NzcCRnsvPqv7wYaV2p5E22VyqEwQQ90FOOjadI,50086
|
17
|
+
robotcode/robot/diagnostics/workspace_config.py,sha256=lWNq1KmGGJ9cHFNHn0QTCBHHzgz4AewTw0l-W4TKrj0,1803
|
18
18
|
robotcode/robot/utils/__init__.py,sha256=OjNPMn_XSnfaMCyKd8Kmq6vlRt6mIGlzW4qiiD3ykUg,447
|
19
19
|
robotcode/robot/utils/ast.py,sha256=N7PobxXjpPWwv6UBa-GBn5wn6RAsiRm8unP6UZt0P6M,10193
|
20
20
|
robotcode/robot/utils/markdownformatter.py,sha256=IVVnCYJLpX8-sK73n3AjtjBVirB-Xa3U2ZudAtFUOD0,11621
|
@@ -23,7 +23,7 @@ robotcode/robot/utils/robot_path.py,sha256=qKBh1cEnReBBLKkWu4gB9EzM-scAwE4xJc1m6
|
|
23
23
|
robotcode/robot/utils/stubs.py,sha256=6-DMI_CQVJHDgG13t-zINKGCRb_Q7MQPm0_AkfhAEvE,748
|
24
24
|
robotcode/robot/utils/variables.py,sha256=fEl8S37lb_mD4hn2MZRAlkiuLGBjAOeZVK0r2o2CfPw,742
|
25
25
|
robotcode/robot/utils/visitor.py,sha256=uYLqEhGPmzWKWI3SSrmCaYMwtKvNShvbiPZ4b3FavX8,3241
|
26
|
-
robotcode_robot-0.
|
27
|
-
robotcode_robot-0.
|
28
|
-
robotcode_robot-0.
|
29
|
-
robotcode_robot-0.
|
26
|
+
robotcode_robot-0.76.1.dist-info/METADATA,sha256=FzvEJBPswx4Ksi8xZGDq-j8czgFtRoZG__Zvbv3ckqY,2209
|
27
|
+
robotcode_robot-0.76.1.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
|
28
|
+
robotcode_robot-0.76.1.dist-info/licenses/LICENSE.txt,sha256=B05uMshqTA74s-0ltyHKI6yoPfJ3zYgQbvcXfDVGFf8,10280
|
29
|
+
robotcode_robot-0.76.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|