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 ParseOption/DeviateOption to ignore not-supported statements #238

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

wenovus
Copy link
Collaborator

@wenovus wenovus commented Nov 29, 2022

// DeviateOptions contains options for how deviations are handled.
type DeviateOptions struct {
	// IgnoreDeviateNotSupported indicates to the parser to retain nodes
	// that are marked with "deviate not-supported". An example use case is
	// where the user wants to interact with different targets that have
	// different support for a leaf without having to use a second instance
	// of an AST.
	IgnoreDeviateNotSupported bool
}

@wenovus wenovus requested a review from robshakir November 29, 2022 01:11
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 84.006% when pulling c71ae34 on ignore-not-supported into 03fa68f on master.

@wenovus wenovus requested a review from greg-dennis December 1, 2022 20:43
@wenovus wenovus merged commit fc70dac into master Dec 2, 2022
@wenovus wenovus deleted the ignore-not-supported branch December 2, 2022 00:45
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.

3 participants