genius257 / vscode-autoit

AutoIt language extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=genius257.autoit
MIT License
4 stars 3 forks source link

Wrong AST to string representation for array access in variable declaration information shown on hover. #14

Closed genius257 closed 1 year ago

genius257 commented 1 year ago

Wrong AST to string representation for array access in variable declaration information shown on hover.

Global $aVar = ["", $aRelativeURI[43], UBound($aRelativeURI)>44?$aRelativeURI[44]:"", UBound($aRelativeURI)>45?$aRelativeURI[45]:""]
$aVar

Shows as object property access via the dot notation:

$aVar = ["", $aRelativeURI.43, UBound($aRelativeURI)>44 ? $aRelativeURI.44 : "", UBound($aRelativeURI)>45 ? $aRelativeURI.45 : ""]