Skip to content
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
@ScottCarda

Description

@ScottCarda

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[...]"

Activity

ScottCarda

ScottCarda commented on Jul 22, 2019

@ScottCarda
Author
bettinaheim

bettinaheim commented on Jul 24, 2019

@bettinaheim
Contributor

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.

removed
enhancementNew request or suggestion for an improvement
on Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ScottCarda@bamarsha@bettinaheim

        Issue actions

          Array Range Ellipsis Syntax Suggestions · Issue #61 · microsoft/qsharp-compiler