Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Array Range Ellipsis Syntax Suggestions #61

Open
ScottCarda opened this issue Jul 22, 2019 · 2 comments
Open

Array Range Ellipsis Syntax Suggestions #61

ScottCarda opened this issue Jul 22, 2019 · 2 comments
Labels
feature New feature to be added good first issue Good for newcomers

Comments

@ScottCarda
Copy link

We want to add code action that will simplify array index range expressions.

Examples:
"ary[0..2..Length(ary)-1]" would become "ary[...2...]"
"ary[Length(ary)-1..-2..0]" would become "ary[...-2...]"
"ary[5..2..Length(ary)-1]" would become "ary[5..2...]"
"ary[0..2..5]" would become "ary[...2..5]"
"ary[5..Length(ary)-1]" would become "ary[5...]"
"ary[0..5]" would become "ary[...5]"
"ary[0..Length(ary)-1]" would become "ary[...]"

@ScottCarda ScottCarda added the enhancement New request or suggestion for an improvement label Jul 22, 2019
@ScottCarda
Copy link
Author

The branch I am working on this issue is:
https://github.com/ScottCarda/qsharp-compiler/tree/sccarda/arryRangeCA

@bettinaheim
Copy link
Contributor

bettinaheim commented Jul 24, 2019

This is temporarily on hold until I (or someone else ;) ) can get around to extend the SymbolInfo to contain nested expressions and the corresponding filter method to implement the closest match for Hover etc.

@bettinaheim bettinaheim added the feature New feature to be added label Jul 29, 2019
@bettinaheim bettinaheim added the status: blocked Waiting for external dependencies label Aug 21, 2019
@bettinaheim bettinaheim added good first issue Good for newcomers and removed status: blocked Waiting for external dependencies labels Apr 20, 2020
@bamarsha bamarsha removed the enhancement New request or suggestion for an improvement label Feb 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature to be added good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants