Skip to content

Commit

Permalink
Hide compiler generated namespace names (#1170)
Browse files Browse the repository at this point in the history
Enhancements:
- Hide compiler generated namespace names for global symbols in diagnostics and in VSCode language extension output

Bugs fixed:
- Redundant error reported when attempting to destructure the result of a previous semantic error
- Errors in assignments not always reliably reported if the left part of the assigned is a destructure pattern

Technical:
- Fix up integration test config to consistently use the published compiler executable when editing tests in VSCode
- Mark classy type arguments as wild in preparation for generic constructor type argument inference
  • Loading branch information
degory committed Apr 13, 2024
1 parent 8c89132 commit c0b184a
Show file tree
Hide file tree
Showing 252 changed files with 472 additions and 928 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
]
},
"ghul.compiler": {
"version": "0.8.39",
"version": "0.8.40",
"commands": [
"ghul-compiler"
]
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>0.8.38-alpha.31</Version>
<Version>0.8.41-alpha.2</Version>
<NoWarn>$(NoWarn);NU1507</NoWarn>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
8 changes: 2 additions & 6 deletions integration-tests/execution/anonymous-function/ghul.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"compiler": "../../../ghul",
"prefix": "../../../lib",
"source": [
"."
]
}
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/array-argument/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/array-count/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/boolean-short-circuit/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/cast-reference-types/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/closure-nested-capture/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/control-flow/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/enum/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/global-functions-2/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/global-functions-3/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/global-functions-4/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/has-value-struct-1/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/hello-world/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/let-in-1/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/let-in-2/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/let-in-3/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/let-in-4/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/let-in-5/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/named-tuple-elements/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
5 changes: 1 addition & 4 deletions integration-tests/execution/overload-resolution/ghul.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"compiler": "../../../bin/Release/net8.0/ghul",
"source": [
"."
]
"compiler": "dotnet ../../../publish/ghul.dll"
}
Loading

0 comments on commit c0b184a

Please sign in to comment.