diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-01-16 15:58:26 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-01-16 15:58:46 +0100 |
commit | d95bbfc2163378d23ef24c7d838eaf3b76af4b9e (patch) | |
tree | 3b45ea867aa927b3f823eb6effdb90768da64415 /pyGHDL/lsp | |
parent | e5c609f31d485dcb5796103d5b8b0cf332960070 (diff) | |
download | ghdl-d95bbfc2163378d23ef24c7d838eaf3b76af4b9e.tar.gz ghdl-d95bbfc2163378d23ef24c7d838eaf3b76af4b9e.tar.bz2 ghdl-d95bbfc2163378d23ef24c7d838eaf3b76af4b9e.zip |
pyGHDL: remove dependency on attr
Diffstat (limited to 'pyGHDL/lsp')
-rw-r--r-- | pyGHDL/lsp/lsp.py | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/pyGHDL/lsp/lsp.py b/pyGHDL/lsp/lsp.py index 60f32be76..eaa0cdfac 100644 --- a/pyGHDL/lsp/lsp.py +++ b/pyGHDL/lsp/lsp.py @@ -1,8 +1,6 @@ import os import logging import json -import attr -from attr.validators import instance_of try: from urllib.parse import unquote, quote @@ -275,37 +273,3 @@ class SymbolKind(object): Number = 16 Boolean = 17 Array = 18 - - -@attr.s -class HoverInfo(object): - language = attr.ib() - value = attr.ib() - - -@attr.s -class Completion(object): - label = attr.ib() - kind = attr.ib() - detail = attr.ib() - documentation = attr.ib() - - -@attr.s -class Position(object): - line = attr.ib() - character = attr.ib() - - -@attr.s -class Range(object): - start = attr.ib(validator=instance_of(Position)) - end = attr.ib(validator=instance_of(Position)) - - -@attr.s -class Diagnostic(object): - range = attr.ib(validator=instance_of(Range)) - severity = attr.ib() - source = attr.ib() - message = attr.ib() |