Skip to content

Commit

Permalink
Stability improvements (#1027)
Browse files Browse the repository at this point in the history
Bug fixes:
- Partial fix for issue where syntax errors could result either no diagnostic messages, or diagnostic messages with an excessive range (fixes some causes but not all, see #1026)

Technical:
- Remove dead code relating to stable symbols and .NET library stubs
  • Loading branch information
degory committed Jan 23, 2024
1 parent e9fb71a commit 10bd404
Show file tree
Hide file tree
Showing 194 changed files with 1,798 additions and 1,859 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.6.3",
"version": "0.6.6",
"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.6.3-alpha.183</Version>
<Version>0.6.7-alpha.40</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
16 changes: 8 additions & 8 deletions integration-tests/execution/abstract-function-throw/test.ghul
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

class Main is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

class Main is
Expand Down
16 changes: 8 additions & 8 deletions integration-tests/execution/anonymous-function/test.ghul
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

class Main is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
@IL.stub()
namespace Ghul is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

trait ARRAY[E]: Collections.List[E] is
Expand Down Expand Up @@ -129,14 +128,14 @@ namespace Ghul is
si

namespace Collections is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;


Expand Down
16 changes: 8 additions & 8 deletions integration-tests/execution/assembly-import/test.ghul
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;


Expand Down
16 changes: 8 additions & 8 deletions integration-tests/execution/base-class-static-method/test.ghul
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

class Main is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

class Main is
Expand Down
16 changes: 8 additions & 8 deletions integration-tests/execution/box-object-assign/test.ghul
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

class Main is
Expand Down
16 changes: 8 additions & 8 deletions integration-tests/execution/box-object-return-value/test.ghul
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

class Main is
Expand Down
16 changes: 8 additions & 8 deletions integration-tests/execution/boxing-method-arguments/test.ghul
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

class Main is
Expand Down
16 changes: 8 additions & 8 deletions integration-tests/execution/call-reference-parameters/test.ghul
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

use System.Threading.Monitor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;


Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// asserts that calling a struct method for effect via an implemented trait correctly mutates the struct instance's state

namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;


Expand Down
16 changes: 8 additions & 8 deletions integration-tests/execution/case-in-loop/test.ghul
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

class Main is
Expand Down
16 changes: 8 additions & 8 deletions integration-tests/execution/case-statement/test.ghul
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

class Main is
Expand Down
16 changes: 8 additions & 8 deletions integration-tests/execution/class-multiple-traits/test.ghul
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;


Expand Down
16 changes: 8 additions & 8 deletions integration-tests/execution/collection-interop/test.ghul
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace Test is
@IF.not.v3()
use Std = System.Console;
@IF.not.v3()
use object = System.Object;
@IF.not.v3()
use string = System.String;

@IF.v3()








use Std = IO.Std;

use Collections;
Expand Down
Loading

0 comments on commit 10bd404

Please sign in to comment.