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

refactor: set 'treat as' on enter-sut instruction #819

Merged
merged 13 commits into from
Mar 18, 2020

Conversation

AirQuick
Copy link
Member

@AirQuick AirQuick commented Mar 9, 2020

This pull request adds treat as to some parameters (x:call[@function] and not-yet-implemented x:apply`) in the compiled stylesheet/query.

This treat as is not mandatory, because @as is handled when mode="test:generate-variable-declarations" generates the variable. So this change is for robustness and for balance between the other code branches in xsl:choose.

@AirQuick AirQuick added this to the v1.6.0 milestone Mar 9, 2020
@commit-lint
Copy link

commit-lint bot commented Mar 9, 2020

Code Refactoring

  • set 'treat as' on enter-sut instruction (a843fc9)

Tests

  • xslt: duplicate xspec-param-as.xspec as *_stylesheet.xspec (56db455)
  • adapt xspec-param-as.xspec to XQuery (3f89a92)
  • add multi-param scenario to function-param test (23c79bc)
  • xslt: use mirror.xsl in xspec-param-as_stylesheet.xspec (f43783d)

Contributors

@AirQuick

@AirQuick AirQuick merged commit 3cb3a4b into xspec:master Mar 18, 2020
@AirQuick AirQuick deleted the enter-sut-treat-as branch March 18, 2020 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant