forked from KolibriOS/kolibrios
[asmxygen] Handle label commented with @return or @param as a function
git-svn-id: svn://kolibrios.org@8989 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
aa79e1a449
commit
d063163da3
@ -1894,7 +1894,11 @@ def get_declarations(asm_file_contents, asm_file_name):
|
|||||||
comment = r.comment
|
comment = r.comment
|
||||||
# Only handle non-local labels
|
# Only handle non-local labels
|
||||||
if name[0] != '.' and name != "@@" and name != "$Revision":
|
if name[0] != '.' and name != "@@" and name != "$Revision":
|
||||||
elements.append(AsmLabel(r.location(), name, comment))
|
if '@return' in comment or '@param' in comment:
|
||||||
|
element = AsmFunction(r.location(), name, comment, '', [], [])
|
||||||
|
else:
|
||||||
|
element = AsmLabel(r.location(), name, comment)
|
||||||
|
elements.append(element)
|
||||||
elif r.curr() == '=':
|
elif r.curr() == '=':
|
||||||
# Save the identifier as a set constant
|
# Save the identifier as a set constant
|
||||||
id_add_kind(first_word, ID_KIND_SET_CONSTANT)
|
id_add_kind(first_word, ID_KIND_SET_CONSTANT)
|
||||||
|
Loading…
Reference in New Issue
Block a user