-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More Refactor disconnect, package body and package declaration
- Loading branch information
1 parent
7416d11
commit 95586ab
Showing
10 changed files
with
244 additions
and
204 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
// You can obtain one at http://mozilla.org/MPL/2.0/. | ||
// | ||
// Copyright (c) 2023, Olof Kraigher [email protected] | ||
use crate::analysis::tests::{check_diagnostics, LibraryBuilder}; | ||
use crate::analysis::tests::{check_diagnostics, check_no_diagnostics, LibraryBuilder}; | ||
use crate::data::error_codes::ErrorCode; | ||
use crate::Diagnostic; | ||
|
||
|
@@ -116,7 +116,7 @@ begin | |
end arch; | ||
", | ||
); | ||
check_diagnostics(builder.analyze(), vec![]) | ||
check_no_diagnostics(&builder.analyze()) | ||
} | ||
|
||
#[test] | ||
|
@@ -186,10 +186,17 @@ end arch; | |
); | ||
check_diagnostics( | ||
builder.analyze(), | ||
vec![Diagnostic::new( | ||
code.s1("bar"), | ||
"No declaration of 'bar'", | ||
ErrorCode::Unresolved, | ||
)], | ||
vec![ | ||
Diagnostic::new( | ||
code.s1("bar"), | ||
"No declaration of 'bar'", | ||
ErrorCode::Unresolved, | ||
), | ||
Diagnostic::new( | ||
code.s1("bar"), | ||
"No declaration of 'bar'", | ||
ErrorCode::Unresolved, | ||
), | ||
], | ||
) | ||
} |
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
Oops, something went wrong.