diff options
author | Clément Pit--Claudel <clement.pitclaudel@live.com> | 2015-07-27 11:28:39 -0700 |
---|---|---|
committer | Clément Pit--Claudel <clement.pitclaudel@live.com> | 2015-07-27 11:28:39 -0700 |
commit | 8d1676a6d30e295d57e7e64fc58d103771459974 (patch) | |
tree | a995ec33aa9fa1e4b129161b28c6571998fd4c4b /Source/Dafny/Translator.cs | |
parent | b61088661bea206390f487ed813fd350a50eb084 (diff) |
Clarify the inlining warning.
Diffstat (limited to 'Source/Dafny/Translator.cs')
-rw-r--r-- | Source/Dafny/Translator.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Dafny/Translator.cs b/Source/Dafny/Translator.cs index e2c45558..83078fb5 100644 --- a/Source/Dafny/Translator.cs +++ b/Source/Dafny/Translator.cs @@ -12956,12 +12956,8 @@ namespace Microsoft.Dafny { } else {
// Skip inlining, as it would cause arbitrary expressions to pop up in the trigger
// CLEMENT: Report inlining issue in a VS plugin friendly way
- var info = new AdditionalInformation {
- Token = fexp.tok,
- Length = fexp.tok.val.Length,
- Text = "This call cannot be safely inlined.",
- };
- Resolver.DefaultInformationReporter(info);
+ //CLEMENT this should appear at the outmost call site, not at the innermost. See SnapshotableTrees.dfy
+ Dafny.Util.ReportIssue("Info", fexp.tok, "Some instances of this call cannot safely be inlined.");
}
}
|