-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Find definitions through function applies
Started in #63 and #70 I think this now covers all (or most) cases Most of this PR is just tests, since the missing code was just missing a few cases in switch cases
- Loading branch information
1 parent
4b86f9d
commit 111d05f
Showing
6 changed files
with
120 additions
and
11 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
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
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,7 @@ | ||
function(attribute) { | ||
attribute: attribute, | ||
|
||
nestedFunc(nestedAttribute):: { | ||
nestedAttribute: nestedAttribute, | ||
}, | ||
} |
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,13 @@ | ||
local lib = import 'goto-root-function-lib.libsonnet'; | ||
local libResolved = (import 'goto-root-function-lib.libsonnet')('test'); | ||
|
||
{ | ||
|
||
fromImport: (import 'goto-root-function-lib.libsonnet')('test').attribute, | ||
fromLib: lib('test').attribute, | ||
fromResolvedLib: libResolved.attribute, | ||
|
||
nestedFromImport: (import 'goto-root-function-lib.libsonnet')('test').nestedFunc('test').nestedAttribute, | ||
nestedFromLib: lib('test').nestedFunc('test').nestedAttribute, | ||
nestedFromResolvedLib: libResolved.nestedFunc('test').nestedAttribute, | ||
} |