This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/core/export: fix optional output bug
Fixes #662 Change-Id: Iac1198c0eabd9fcdbfa89db5c20d2c03d931afc5 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/8325 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
- Loading branch information
Showing
13 changed files
with
222 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,43 @@ | ||
-- in.cue -- | ||
a: int | *2 | ||
a: int | *2 | ||
b?: 4 | 5 | ||
c: [string]: int | ||
-- out/definition -- | ||
a: int | *2 | ||
a: int | *2 | ||
b?: 4 | 5 | ||
c: { | ||
[string]: int | ||
} | ||
-- out/doc -- | ||
[] | ||
[a] | ||
[c] | ||
-- out/value -- | ||
== Simplified | ||
{ | ||
a: *2 | int | ||
c: {} | ||
} | ||
== Raw | ||
{ | ||
a: *2 | int | ||
a: *2 | int | ||
b?: 4 | 5 | ||
c: {} | ||
} | ||
== Final | ||
{ | ||
a: 2 | ||
c: {} | ||
} | ||
== All | ||
{ | ||
a: *2 | int | ||
a: *2 | int | ||
b?: 4 | 5 | ||
c: {} | ||
} | ||
== Eval | ||
{ | ||
a: 2 | ||
b?: 4 | 5 | ||
c: {} | ||
} |
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 |
---|---|---|
|
@@ -85,3 +85,19 @@ sub: { | |
} | ||
} | ||
} | ||
== Eval | ||
{ | ||
#top: 4 | ||
sub: { | ||
#sub: 5 | ||
a: { | ||
3 | ||
#foo: 4 | ||
} | ||
b: { | ||
#bar: 5 | ||
#baz: "foo" | ||
[1, 2] | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -55,3 +55,7 @@ a: { | |
_#val: 6 | ||
} | ||
} | ||
== Eval | ||
{ | ||
a: {} | ||
} |
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,53 @@ | ||
|
||
-- uplot.cue -- | ||
#LineConfig: { | ||
lineColor?: string | ||
} | ||
|
||
#GraphFieldConfig: #LineConfig & { | ||
drawStyle?: int | ||
} | ||
-- out/definition -- | ||
#LineConfig: { | ||
lineColor?: string | ||
} | ||
#GraphFieldConfig: { | ||
#LineConfig | ||
drawStyle?: int | ||
} | ||
-- out/doc -- | ||
[] | ||
[#LineConfig] | ||
[#GraphFieldConfig] | ||
-- out/value -- | ||
== Simplified | ||
{} | ||
== Raw | ||
{ | ||
#LineConfig: { | ||
lineColor?: string | ||
} | ||
#GraphFieldConfig: { | ||
lineColor?: string | ||
} | ||
} | ||
== Final | ||
{} | ||
== All | ||
{ | ||
#LineConfig: { | ||
lineColor?: string | ||
} | ||
#GraphFieldConfig: { | ||
lineColor?: string | ||
} | ||
} | ||
== Eval | ||
{ | ||
#LineConfig: { | ||
lineColor?: string | ||
} | ||
#GraphFieldConfig: { | ||
lineColor?: string | ||
} | ||
} |
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 |
---|---|---|
|
@@ -65,3 +65,12 @@ g: 4 | |
f: 4 | ||
g: 4 | ||
} | ||
== Eval | ||
{ | ||
a: 1 | ||
b: 1 | ||
c: 2 | ||
e: 3 | ||
f: 4 | ||
g: 4 | ||
} |
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