python-delphi-lsp 3.6.0__cp310-abi3-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- delphi_lsp/__init__.py +184 -0
- delphi_lsp/_version.py +1 -0
- delphi_lsp/agent_cache.py +1574 -0
- delphi_lsp/agent_cli.py +902 -0
- delphi_lsp/agent_context.py +3907 -0
- delphi_lsp/agent_cpg.py +349 -0
- delphi_lsp/agent_cpg_builder.py +666 -0
- delphi_lsp/agent_layers.py +1410 -0
- delphi_lsp/agent_metrics.py +526 -0
- delphi_lsp/agent_protocol.py +445 -0
- delphi_lsp/agent_relations.py +1881 -0
- delphi_lsp/agent_templates.py +614 -0
- delphi_lsp/agent_wiki.py +2853 -0
- delphi_lsp/agent_workspace.py +860 -0
- delphi_lsp/ast_serialize.py +126 -0
- delphi_lsp/binary.py +250 -0
- delphi_lsp/comment_builder.py +28 -0
- delphi_lsp/consts.py +345 -0
- delphi_lsp/delphi_lsp_native.pyd +0 -0
- delphi_lsp/delphiast_lexer.py +399 -0
- delphi_lsp/delphiast_parser.py +2189 -0
- delphi_lsp/delphiast_tokens.py +41 -0
- delphi_lsp/grammar.py +459 -0
- delphi_lsp/incremental.py +1139 -0
- delphi_lsp/lark_builder.py +2684 -0
- delphi_lsp/lark_tokens.py +236 -0
- delphi_lsp/lexical_scanner.py +30 -0
- delphi_lsp/lsp_server.py +6698 -0
- delphi_lsp/metrics.py +1452 -0
- delphi_lsp/native_bridge.py +300 -0
- delphi_lsp/navigation_cache.py +189 -0
- delphi_lsp/nodes.py +462 -0
- delphi_lsp/parallel_outline.py +662 -0
- delphi_lsp/parse_artifacts.py +969 -0
- delphi_lsp/parser.py +342 -0
- delphi_lsp/parser_backend.py +139 -0
- delphi_lsp/preprocessor.py +1122 -0
- delphi_lsp/progress.py +26 -0
- delphi_lsp/project_config.py +285 -0
- delphi_lsp/project_discovery.py +932 -0
- delphi_lsp/project_indexer.py +470 -0
- delphi_lsp/py.typed +1 -0
- delphi_lsp/response_cache.py +465 -0
- delphi_lsp/semantic.py +394 -0
- delphi_lsp/semantic_builder.py +2302 -0
- delphi_lsp/source_reader.py +17 -0
- delphi_lsp/wiki_external_sort.py +392 -0
- delphi_lsp/wiki_memory.py +548 -0
- delphi_lsp/workspace.py +83 -0
- delphi_lsp/writer.py +73 -0
- python_delphi_lsp-3.6.0.dist-info/METADATA +766 -0
- python_delphi_lsp-3.6.0.dist-info/RECORD +56 -0
- python_delphi_lsp-3.6.0.dist-info/WHEEL +4 -0
- python_delphi_lsp-3.6.0.dist-info/entry_points.txt +3 -0
- python_delphi_lsp-3.6.0.dist-info/licenses/LICENSE +373 -0
- python_delphi_lsp-3.6.0.dist-info/sboms/python-delphi-lsp.cyclonedx.json +770 -0
delphi_lsp/__init__.py
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
from pkgutil import extend_path
|
|
2
|
+
|
|
3
|
+
# Keep source-tree test runs able to see the compiled submodule from the
|
|
4
|
+
# installed wheel in the isolated native environment.
|
|
5
|
+
__path__ = extend_path(__path__, __name__)
|
|
6
|
+
|
|
7
|
+
from ._version import __version__
|
|
8
|
+
from .binary import BinarySerializer, dumps, loads
|
|
9
|
+
from .comment_builder import build_comment_nodes
|
|
10
|
+
from .consts import AttributeName, SyntaxNodeType
|
|
11
|
+
from .grammar import GRAMMAR_RULES, build_grammar
|
|
12
|
+
from .lark_tokens import (
|
|
13
|
+
BASE_TERMINALS,
|
|
14
|
+
KEYWORD_TERMINALS,
|
|
15
|
+
KEYWORDS,
|
|
16
|
+
build_grammar_snippet,
|
|
17
|
+
)
|
|
18
|
+
from .lsp_server import LspWorkspaceState, create_server
|
|
19
|
+
from .metrics import (
|
|
20
|
+
CyclomaticMetrics,
|
|
21
|
+
HalsteadMetrics,
|
|
22
|
+
LineMetrics,
|
|
23
|
+
MetricProblem,
|
|
24
|
+
ProjectMetrics,
|
|
25
|
+
RoutineComplexity,
|
|
26
|
+
UnitMetrics,
|
|
27
|
+
analyze_project,
|
|
28
|
+
analyze_unit,
|
|
29
|
+
)
|
|
30
|
+
from .nodes import (
|
|
31
|
+
CommentNode,
|
|
32
|
+
CompoundSyntaxNode,
|
|
33
|
+
ParserException,
|
|
34
|
+
SyntaxNode,
|
|
35
|
+
SyntaxTreeException,
|
|
36
|
+
ValuedSyntaxNode,
|
|
37
|
+
)
|
|
38
|
+
from .parser import DelphiParseError, DelphiParser, ParseResult, StringTransform, parse
|
|
39
|
+
from .preprocessor import (
|
|
40
|
+
CommentInfo,
|
|
41
|
+
IncludeLoader,
|
|
42
|
+
PreprocessedSource,
|
|
43
|
+
Preprocessor,
|
|
44
|
+
PreprocessorOptions,
|
|
45
|
+
)
|
|
46
|
+
from .progress import ProgressCallback, ProgressEvent
|
|
47
|
+
from .project_discovery import (
|
|
48
|
+
DelphiProjectDiscovery,
|
|
49
|
+
DiscoveryProblem,
|
|
50
|
+
discover_delphi_project,
|
|
51
|
+
)
|
|
52
|
+
from .project_indexer import (
|
|
53
|
+
GetUnitSyntaxHook,
|
|
54
|
+
IncludeFileInfo,
|
|
55
|
+
ProjectIndexer,
|
|
56
|
+
ProjectIndexResult,
|
|
57
|
+
ProjectProblem,
|
|
58
|
+
ProjectProblemType,
|
|
59
|
+
UnitErrorInfo,
|
|
60
|
+
UnitInfo,
|
|
61
|
+
UnitParsedHook,
|
|
62
|
+
)
|
|
63
|
+
from .semantic import (
|
|
64
|
+
ArrayTypeRef,
|
|
65
|
+
ClassOfTypeRef,
|
|
66
|
+
ClassTypeRef,
|
|
67
|
+
EnumTypeRef,
|
|
68
|
+
FileTypeRef,
|
|
69
|
+
GenericInstanceTypeRef,
|
|
70
|
+
InterfaceTypeRef,
|
|
71
|
+
Modifier,
|
|
72
|
+
NamedTypeRef,
|
|
73
|
+
PointerTypeRef,
|
|
74
|
+
ProcTypeRef,
|
|
75
|
+
RecordTypeRef,
|
|
76
|
+
ReferenceKind,
|
|
77
|
+
ReferenceTypeRef,
|
|
78
|
+
Scope,
|
|
79
|
+
ScopeKind,
|
|
80
|
+
SetTypeRef,
|
|
81
|
+
SourceRange,
|
|
82
|
+
SubrangeTypeRef,
|
|
83
|
+
Symbol,
|
|
84
|
+
SymbolIndex,
|
|
85
|
+
SymbolKind,
|
|
86
|
+
SymbolReference,
|
|
87
|
+
TypeParameterRef,
|
|
88
|
+
TypeRef,
|
|
89
|
+
UnknownTypeRef,
|
|
90
|
+
Visibility,
|
|
91
|
+
)
|
|
92
|
+
from .semantic_builder import SemanticBuilder, SemanticModel, SemanticProblem
|
|
93
|
+
from .workspace import WorkspaceSemanticResult, build_workspace_semantics
|
|
94
|
+
from .writer import SyntaxTreeWriter
|
|
95
|
+
|
|
96
|
+
__all__ = [
|
|
97
|
+
'BASE_TERMINALS',
|
|
98
|
+
'GRAMMAR_RULES',
|
|
99
|
+
'KEYWORDS',
|
|
100
|
+
'KEYWORD_TERMINALS',
|
|
101
|
+
'ArrayTypeRef',
|
|
102
|
+
'AttributeName',
|
|
103
|
+
'BinarySerializer',
|
|
104
|
+
'ClassOfTypeRef',
|
|
105
|
+
'ClassTypeRef',
|
|
106
|
+
'CommentInfo',
|
|
107
|
+
'CommentNode',
|
|
108
|
+
'CompoundSyntaxNode',
|
|
109
|
+
'CyclomaticMetrics',
|
|
110
|
+
'DelphiParseError',
|
|
111
|
+
'DelphiParser',
|
|
112
|
+
'DelphiProjectDiscovery',
|
|
113
|
+
'DiscoveryProblem',
|
|
114
|
+
'EnumTypeRef',
|
|
115
|
+
'FileTypeRef',
|
|
116
|
+
'GenericInstanceTypeRef',
|
|
117
|
+
'GetUnitSyntaxHook',
|
|
118
|
+
'HalsteadMetrics',
|
|
119
|
+
'IncludeFileInfo',
|
|
120
|
+
'IncludeLoader',
|
|
121
|
+
'InterfaceTypeRef',
|
|
122
|
+
'LineMetrics',
|
|
123
|
+
'LspWorkspaceState',
|
|
124
|
+
'MetricProblem',
|
|
125
|
+
'Modifier',
|
|
126
|
+
'NamedTypeRef',
|
|
127
|
+
'ParseResult',
|
|
128
|
+
'ParserException',
|
|
129
|
+
'PointerTypeRef',
|
|
130
|
+
'PreprocessedSource',
|
|
131
|
+
'Preprocessor',
|
|
132
|
+
'PreprocessorOptions',
|
|
133
|
+
'ProcTypeRef',
|
|
134
|
+
'ProgressCallback',
|
|
135
|
+
'ProgressEvent',
|
|
136
|
+
'ProjectIndexResult',
|
|
137
|
+
'ProjectIndexer',
|
|
138
|
+
'ProjectMetrics',
|
|
139
|
+
'ProjectProblem',
|
|
140
|
+
'ProjectProblemType',
|
|
141
|
+
'RecordTypeRef',
|
|
142
|
+
'ReferenceKind',
|
|
143
|
+
'ReferenceTypeRef',
|
|
144
|
+
'RoutineComplexity',
|
|
145
|
+
'Scope',
|
|
146
|
+
'ScopeKind',
|
|
147
|
+
'SemanticBuilder',
|
|
148
|
+
'SemanticModel',
|
|
149
|
+
'SemanticProblem',
|
|
150
|
+
'SetTypeRef',
|
|
151
|
+
'SourceRange',
|
|
152
|
+
'StringTransform',
|
|
153
|
+
'SubrangeTypeRef',
|
|
154
|
+
'Symbol',
|
|
155
|
+
'SymbolIndex',
|
|
156
|
+
'SymbolKind',
|
|
157
|
+
'SymbolReference',
|
|
158
|
+
'SyntaxNode',
|
|
159
|
+
'SyntaxNodeType',
|
|
160
|
+
'SyntaxTreeException',
|
|
161
|
+
'SyntaxTreeWriter',
|
|
162
|
+
'TypeParameterRef',
|
|
163
|
+
'TypeRef',
|
|
164
|
+
'UnitErrorInfo',
|
|
165
|
+
'UnitInfo',
|
|
166
|
+
'UnitMetrics',
|
|
167
|
+
'UnitParsedHook',
|
|
168
|
+
'UnknownTypeRef',
|
|
169
|
+
'ValuedSyntaxNode',
|
|
170
|
+
'Visibility',
|
|
171
|
+
'WorkspaceSemanticResult',
|
|
172
|
+
'__version__',
|
|
173
|
+
'analyze_project',
|
|
174
|
+
'analyze_unit',
|
|
175
|
+
'build_comment_nodes',
|
|
176
|
+
'build_grammar',
|
|
177
|
+
'build_grammar_snippet',
|
|
178
|
+
'build_workspace_semantics',
|
|
179
|
+
'create_server',
|
|
180
|
+
'discover_delphi_project',
|
|
181
|
+
'dumps',
|
|
182
|
+
'loads',
|
|
183
|
+
'parse',
|
|
184
|
+
]
|
delphi_lsp/_version.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "3.6.0"
|