Skip to content

Commit

Permalink
rename type to data_type
Browse files Browse the repository at this point in the history
  • Loading branch information
3473f committed Mar 23, 2024
1 parent b8380f4 commit 7f37a97
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions ros2autodoc/api/doc_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ def _parse_lines(self):
if name:
match = re.search(r"\((.*?)\)", line)
if match:
type = match.group(1)
data_type = match.group(1)
else:
type = ""
data_type = ""
if "type" not in params:
params[name] = {"type": type}
params[name] = {"type": data_type}
elif line.startswith(" "):
params[name]["desc"] = line.strip()
name = None
Expand All @@ -135,11 +135,11 @@ def _parse_lines(self):
if name:
match = re.search(r"\((.*?)\)", line)
if match:
type = match.group(1)
data_type = match.group(1)
else:
type = ""
data_type = ""
if "type" not in subs:
subs[name] = {"type": type}
subs[name] = {"type": data_type}
elif line.startswith(" "):
subs[name]["desc"] = line.strip()
name = None
Expand All @@ -151,11 +151,11 @@ def _parse_lines(self):
if name:
match = re.search(r"\((.*?)\)", line)
if match:
type = match.group(1)
data_type = match.group(1)
else:
type = ""
data_type = ""
if "type" not in pubs:
pubs[name] = {"type": type}
pubs[name] = {"type": data_type}
elif line.startswith(" "):
pubs[name]["desc"] = line.strip()
name = None
Expand All @@ -167,11 +167,11 @@ def _parse_lines(self):
if name:
match = re.search(r"\((.*?)\)", line)
if match:
type = match.group(1)
data_type = match.group(1)
else:
type = ""
data_type = ""
if "type" not in srvs:
srvs[name] = {"type": type}
srvs[name] = {"type": data_type}
elif line.startswith(" "):
srvs[name]["desc"] = line.strip()
name = None
Expand All @@ -183,11 +183,11 @@ def _parse_lines(self):
if name:
match = re.search(r"\((.*?)\)", line)
if match:
type = match.group(1)
data_type = match.group(1)
else:
type = ""
data_type = ""
if "type" not in actions:
actions[name] = {"type": type}
actions[name] = {"type": data_type}
elif line.startswith(" "):
actions[name]["desc"] = line.strip()
name = None
Expand Down

0 comments on commit 7f37a97

Please sign in to comment.