Chained methods and properties on expressions

オープン
#107 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
powershell
領域
tooling

調査の方向性

Start by reproducing the highlighting with the supplied PowerShell samples in Sublime and compare the regions assigned to Split(), Trim(), and the two .bar expressions. Trace the syntax rules handling chained methods and parenthesized expressions; done means each corresponding method or property receives the same region type.

索引モデルが issue の本文から書いたものです。

説明

bug scope-change

Moving from https://github.com/SublimeText/PowerShell/issues/68
And https://github.com/SublimeText/PowerShell/issues/77

Environment
  • Editor and Version (VS Code, Atom, Sublime): Sublime
  • Your primary theme: Default
Issue Description

There is inconsistency in the chained methods:

$users.Split(",").Trim()

Split and Trim get 2 different regions.

Same applies for

$foo.bar

vs

($foo).bar
Screenshots

image

Expected Behavior
  • Trim() and Split() should be the same region type
  • .bar in first and second case should be the same region type
Code Samples
$users.Split(",").Trim()

$foo.bar
($foo).bar
主要言語
PowerShell
スター
151
フォーク
55
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PowerShell/EditorSyntax のほかの issue

PowerShell/EditorSyntax の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。