Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add markdown formatting to hover messages #1396

Merged
merged 24 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
45eb081
add formatting to hover messages
chioni16 Jun 26, 2023
10fda92
add a parameter to expland_type to decide if tags should be added or not
chioni16 Jul 1, 2023
e18a8ee
clippy + fmt + intersperse use fully qualified path
chioni16 Jul 3, 2023
0b8aa17
fix test cases + remove commented code
chioni16 Jul 3, 2023
f8f9512
Merge branch 'main' into hover-formatting
chioni16 Jul 7, 2023
6094852
use to_string method instead of expanded_ty
chioni16 Jul 11, 2023
c0b4877
add markdown to struct fields + add hover to struct members
chioni16 Jul 11, 2023
d2d7c28
display constant and storage variables + show contracts
chioni16 Jul 11, 2023
0017c07
improve function signature in hovers
chioni16 Jul 11, 2023
c63dfe3
builtin
chioni16 Jul 11, 2023
b5feed0
remove extra whitespace from tags
chioni16 Jul 11, 2023
11467bf
do not use markdown on hover messages
chioni16 Jul 12, 2023
b1ce7a3
contract name + miscellaneous
chioni16 Jul 13, 2023
62b3db8
identifiers of length 1
chioni16 Jul 17, 2023
e21027e
fix test cases
chioni16 Jul 17, 2023
6ad946e
base contracts
chioni16 Jul 17, 2023
de82337
cargo fmt
chioni16 Jul 17, 2023
c5f8308
enum variants use markdown
chioni16 Jul 17, 2023
756f3ab
contract variable
chioni16 Jul 19, 2023
46daabd
variable name
chioni16 Jul 19, 2023
44a904b
use join instead of intersperse
chioni16 Jul 24, 2023
8a6f6a2
create a new method to get exclusive ranges
chioni16 Jul 27, 2023
bacb66f
Merge branch 'main' into hover-formatting
chioni16 Jul 27, 2023
09c6677
Merge branch 'main' into hover-formatting
seanyoung Jul 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions solang-parser/src/pt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,19 @@ impl Loc {
}
}

/// Returns this location's end.
/// The returned endpoint is not part of the range.
/// This is used when a half-open range is needed.
///
/// # Panics
///
/// If this location is not a file.
#[track_caller]
#[inline]
pub fn exclusive_end(&self) -> usize {
self.end() + 1
}

/// Replaces this location's start with `other`'s.
///
/// # Panics
Expand Down
Loading
Loading