-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72ae80a
commit 3a472c1
Showing
4 changed files
with
121 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
function Is_Subp_Decl_An_Import_With_Expression | ||
(Subp : Basic_Decl'Class) return Boolean | ||
is (declare | ||
Import_Aspect : constant Aspect := | ||
Subp.P_Get_Aspect (Langkit_Support.Text.To_Unbounded_Text ("Import")); | ||
begin | ||
Exists (Import_Aspect) | ||
and then (To_Lower (+Value (Import_Aspect).Text) /= "false")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
function Is_Subp_Decl_An_Import_With_Expression | ||
(Subp : Basic_Decl'Class) return Boolean | ||
is (declare | ||
Import_Aspect : constant Aspect := | ||
Subp.P_Get_Aspect (Langkit_Support.Text.To_Unbounded_Text ("Import")); | ||
begin | ||
Exists (Import_Aspect) | ||
and then (To_Lower (+Value (Import_Aspect).Text) /= "false")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
driver: unparser | ||
rule: subp_decl | ||
description: | | ||
Test indentation of `f_decls` and `f_expr` on a `DeclExpr`. |