Skip to content

Commit

Permalink
fixed #11 decorator issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Feb 15, 2024
1 parent 3b2c364 commit 1534147
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
<build>
<sourceDirectory>src</sourceDirectory>
Expand Down
2 changes: 1 addition & 1 deletion src/lang/python/Parse.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Statement convertStat("FunctionDef",
name,
convertArgs(formals, src),
[convertStat(s, src) | s <- body],
obj.decorators? ? [convertExp(e, src) | e <- nodes(obj.decorators)] : [],
obj.decorator_list? ? [convertExp(e, src) | e <- nodes(obj.decorator_list)] : [],
obj.returns? ? just(convertExp(obj.returns, src)) : nothing(),
obj.typeComment? ? just(obj.typeComment) : nothing()
);
Expand Down

0 comments on commit 1534147

Please sign in to comment.