Skip to content

Commit

Permalink
Merge branch 'topic/fix_windows_regr' into 'master'
Browse files Browse the repository at this point in the history
Fix test failing on windows. Also fix missing space in error message.

Closes #388

See merge request eng/libadalang/langkit-query-language!335
  • Loading branch information
raph-amiard committed Nov 25, 2024
2 parents 2621dd1 + 49e6eff commit a3a51b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -622,9 +622,8 @@ public LKQLNode visit(Liblkqllang.PatternDetailDelimiterIs patternDetailDelimite
.emitDiagnostic(
CheckerUtils.MessageKind.WARNING,
"'is' syntax is deprecated for patterns. Please consider migrating your"
+ " code via 'lkql refactor -r IS_TO_COLON"
+ patternDetailDelimiterIs.getUnit().getFileName()
+ "'.",
+ " code via 'lkql refactor -r IS_TO_COLON "
+ "path/to/your/rule_file.lkql'.",
null,
SourceSectionWrapper.create(
patternDetailDelimiterIs.getSourceLocationRange(), source));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
gnatcheck: foo.lkql:4:29: 'is' syntax is deprecated for patterns. Please consider migrating your code via 'lkql refactor -r IS_TO_COLON/rules/foo.lkql'.
gnatcheck: foo.lkql:4:29: 'is' syntax is deprecated for patterns. Please consider migrating your code via 'lkql refactor -r IS_TO_COLON path/to/your/rule_file.lkql'.
1. Summary

fully compliant sources : 1
Expand Down

0 comments on commit a3a51b8

Please sign in to comment.