[YANGTOOLS-1136] Enforce correct pattern arguments Created: 05/Oct/20  Updated: 05/Oct/20  Resolved: 05/Oct/20

Status: Resolved
Project: yangtools
Component/s: parser
Affects Version/s: None
Fix Version/s: 6.0.0

Type: Task Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Current PatternStatement definition requires a PatternConstraint argument, which does not reflect correct structure. Furthermore we end up ignoring any pattern which is not correct, leading to potentially-missed validations.

Refactor PatternStatement to only hold the parsed argument and require that argument to compile.


Generated at Wed Feb 07 20:55:17 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.