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

Enable filtering on a range of assertions #6077

Merged

Conversation

keyboardDrummer
Copy link
Member

What was changed?

Besides --filter-position :<line>, also support --filter-position :<start>-<end>, --filter-position :<start>- and --filter-position :-<end>

How has this been tested?

Extended existing test

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@keyboardDrummer keyboardDrummer enabled auto-merge (squash) January 24, 2025 13:05
@MikaelMayer MikaelMayer disabled auto-merge January 24, 2025 13:55
MikaelMayer
MikaelMayer previously approved these changes Jan 24, 2025
Copy link
Member

@MikaelMayer MikaelMayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disabling auto-merge so that you can choose to apply suggestions, otherwise looks good 👍

class LineRange(int start, int end) {
public int Start { get; } = start;
public int End { get; } = end;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few GitHub warnings above

public int End { get; } = end;

public bool Contains(int value) {
return start <= value && value <= end;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok to consider end to be inclusive here.

Source/DafnyDriver/CliCompilation.cs Outdated Show resolved Hide resolved
@keyboardDrummer keyboardDrummer enabled auto-merge (squash) January 24, 2025 14:00
@keyboardDrummer keyboardDrummer merged commit 76a7caa into dafny-lang:master Jan 24, 2025
22 checks passed
@keyboardDrummer keyboardDrummer deleted the filterPositionRange branch January 24, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants