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

Improve xml index expr type checking #22088

Conversation

rdhananjaya
Copy link
Member

@rdhananjaya rdhananjaya commented Mar 23, 2020

Emit warning when deprecated child access is used. (Fixes #22053)
Emit error when non int/string index is used. (Fixes #22052)

Purpose

Describe the problems, issues, or needs driving this feature/fix and include links to related issues.

Fixes #

Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

  • Read the Contributing Guide
  • Updated Change Log
  • Checked Tooling Support (#)
  • Added necessary tests
    • Unit Tests
    • Spec Conformance Tests
    • Integration Tests
    • Ballerina By Example Tests
  • Increased Test Coverage
  • Added necessary documentation
    • API documentation
    • Module documentation in Module.md files
    • Ballerina By Examples

Emit warning when deprecated child access is used.
Emit error when non int/string index is used.
@rdhananjaya rdhananjaya added this to the 1.2.1 milestone Mar 23, 2020
@rdhananjaya rdhananjaya added the Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. label Mar 23, 2020
@codecov-io
Copy link

codecov-io commented Mar 23, 2020

Codecov Report

Merging #22088 into ballerina-1.2.x will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff                @@
##           ballerina-1.2.x   #22088   +/-   ##
================================================
  Coverage            14.59%   14.59%           
================================================
  Files                   51       51           
  Lines                 1411     1411           
  Branches               219      219           
================================================
  Hits                   206      206           
  Misses                1189     1189           
  Partials                16       16           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef12717...7abcec6. Read the comment docs.

@ldclakmal ldclakmal modified the milestones: 1.2.1, Ballerina 1.2.1 Mar 25, 2020
@MaryamZi
Copy link
Member

The PR to the master branch #22106 was merged.

@MaryamZi MaryamZi merged commit b2b47a6 into ballerina-platform:ballerina-1.2.x Mar 30, 2020
@rdhananjaya rdhananjaya deleted the xml-warning-child-index-access branch April 8, 2020 02:54
@hasithaa
Copy link
Contributor

hasithaa commented May 15, 2020

@rdhananjaya Did we add this fix to master?

Found the PR. #22106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants