aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-26 18:47:45 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-07-01 06:39:46 +0200
commit06e53f991bee84c881cbea64bb9f7067d9d033fc (patch)
tree7ccf710a07be4325aa9ec8351310149696178a01 /scripts
parent2492b5595c7a61e29096a217e46f9dfe2e0fd6ac (diff)
downloadghdl-06e53f991bee84c881cbea64bb9f7067d9d033fc.tar.gz
ghdl-06e53f991bee84c881cbea64bb9f7067d9d033fc.tar.bz2
ghdl-06e53f991bee84c881cbea64bb9f7067d9d033fc.zip
Fix Codacy problems.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pnodespy.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/pnodespy.py b/scripts/pnodespy.py
index 1f016a82d..f1f637ea7 100755
--- a/scripts/pnodespy.py
+++ b/scripts/pnodespy.py
@@ -66,11 +66,13 @@ def do_iirs_subprg():
@BindToLibGHDL("{classname}__get_kind")
def Get_Kind(node: Iir) -> IirKind:
\"\"\"Get node kind.\"\"\"
+ return 0
@export
@BindToLibGHDL("{classname}__get_location")
def Get_Location(node: Iir) -> LocationType:
\"\"\"\"\"\"
+ return 0
""").format(libname=libname, classname=classname)
)
for k in pnodes.funcs:
@@ -85,6 +87,7 @@ def do_iirs_subprg():
@BindToLibGHDL("{classname}__get_{kname_lower}")
def Get_{kname}(obj: Iir) -> {rtype}:
\"\"\"\"\"\"
+ return 0
@export
@BindToLibGHDL("{classname}__set_{kname_lower}")
def Set_{kname}(obj: Iir, value: {rtype}) -> None:
@@ -259,6 +262,7 @@ def do_libghdl_meta():
:param K: Node to get first array index from.
\"\"\"
+ return 0
@export
@@ -275,11 +279,13 @@ def do_libghdl_meta():
:param K: Node to get last array index from.
\"\"\"
+ return 0
@export
@BindToLibGHDL("vhdl__nodes_meta__get_field_by_index")
def get_field_by_index(K: IirKind) -> int:
\"\"\"\"\"\"
+ return 0
@export
def get_field_type(*args):