-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Closes #2624) Add FortranWriter().schedule_node()
.
#2628
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2628 +/- ##
=======================================
Coverage 99.86% 99.86%
=======================================
Files 356 356
Lines 48438 48454 +16
=======================================
+ Hits 48373 48389 +16
Misses 65 65 ☔ View full report in Codecov by Sentry. |
src/psyclone/psyir/nodes/schedule.py
Outdated
def debug_string(self): | ||
debug_string = "" | ||
for statement in self.children: | ||
debug_string += statement.debug_string() | ||
return debug_string | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this (and associated test) now that a "schedule_node" visitor has been introduced to the Writer, do we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, I'd forgotten this defaults to DebugWriter
and thus to FortranWriter
. They're now removed.
…to `FortranWriter`.
Schedule().debug_string()
and FortranWriter().schedule_node()
.FortranWriter().schedule_node()
.
Avoids defaulting to
str(schedule)
forSchedule().debug_string()
and raising aVisitorError
usingFortranWriter()(Schedule())
.