-
Notifications
You must be signed in to change notification settings - Fork 135
Add Poison to the Kani-GotoC AST #1469
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
Changes from 2 commits
8a386c2
8de20c0
369c446
beba632
f9ab2bc
8a4a47e
791d877
7d33ed2
838a807
b2dbd39
73ae91c
a758c38
7c76620
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,6 +44,11 @@ impl Irep { | |
| } | ||
| } | ||
|
|
||
| pub fn with_comment<T: Into<InternedString>>(self, c: T) -> Self { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cool. doc comment? I know I'm the one who vaguely waved you in the direction of "putting a comment on an irep" but did you dig into exactly how this works? It'd be good to explain I think...
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That one is a bit blurry actually. It will add a comment directly to the irep. I do think we need a more standard way of writing comments like that for alternative back-ends |
||
| // Using Irep:: | ||
giltho marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| self.with_named_sub(IrepId::Comment, Irep::just_string_id(c)) | ||
| } | ||
|
|
||
| pub fn with_named_sub(mut self, key: IrepId, value: Irep) -> Self { | ||
| if !value.is_nil() { | ||
| self.named_sub.insert(key, value); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.