This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Array Range Ellipsis Syntax Suggestions #61
Open
Description
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[...]"
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ScottCarda commentedon Jul 22, 2019
The branch I am working on this issue is:
https://github.com/ScottCarda/qsharp-compiler/tree/sccarda/arryRangeCA
bettinaheim commentedon 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.