Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c91003c
Improve variable type inference
MartinGC94 Jun 20, 2023
691cd63
Merge branch 'PowerShell:master' into ImproveVarInference
MartinGC94 Jan 23, 2024
e833446
Merge branch 'PowerShell:master' into ImproveVarInference
MartinGC94 Feb 10, 2024
a5356b7
Merge branch 'PowerShell:master' into ImproveVarInference
MartinGC94 Apr 17, 2024
e57665a
Merge branch 'PowerShell:master' into ImproveVarInference
MartinGC94 Aug 25, 2024
9220460
Merge branch 'PowerShell:master' into ImproveVarInference
MartinGC94 Sep 7, 2024
69688d2
Merge branch 'master' into ImproveVarInference
MartinGC94 Feb 18, 2025
80ef9b0
Merge branch 'master' into ImproveVarInference
iSazonov Feb 18, 2025
09db4e3
Merge branch 'PowerShell:master' into ImproveVarInference
MartinGC94 Feb 19, 2025
e2a4a57
Handle type inference for attributed assignments
MartinGC94 Feb 19, 2025
4630c8c
Replace "var" with actual type
MartinGC94 Feb 19, 2025
4fd7abf
Fix type inference for vars assigned in Do loops.
MartinGC94 Feb 24, 2025
9edf92c
Merge branch 'master' into ImproveVarInference
MartinGC94 Feb 28, 2025
2a9825d
Handle redirected vars
MartinGC94 Feb 28, 2025
66449ed
Add comments
MartinGC94 Feb 28, 2025
96daaa8
Address feedback
MartinGC94 Mar 2, 2025
3fcc47f
Apply suggestions from code review
MartinGC94 Mar 3, 2025
f2b8058
Address feedback
MartinGC94 Mar 3, 2025
4203f68
Update the scope logic
MartinGC94 Mar 3, 2025
548af19
Rename var and add comments
MartinGC94 Mar 3, 2025
6314103
Fix test
MartinGC94 Mar 4, 2025
abe50cb
Add missing test
MartinGC94 Mar 4, 2025
df646e0
Update test/powershell/engine/Api/TypeInference.Tests.ps1
MartinGC94 Mar 4, 2025
24d76b8
Apply suggestions from code review
MartinGC94 Mar 5, 2025
2e2eec1
Address feedback
MartinGC94 Mar 6, 2025
86328b7
Merge conflict
MartinGC94 Mar 6, 2025
4aa929c
Add missing assignment
MartinGC94 Mar 6, 2025
8216056
Fix another "as" statement
MartinGC94 Mar 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5524,7 +5524,7 @@ private static void AddUniqueVariable(HashSet<string> hashedResults, List<Comple
}
}

private static readonly HashSet<string> s_varModificationCommands = new(StringComparer.OrdinalIgnoreCase)
internal static readonly HashSet<string> s_varModificationCommands = new(StringComparer.OrdinalIgnoreCase)
{
"New-Variable",
"nv",
Expand All @@ -5533,13 +5533,13 @@ private static void AddUniqueVariable(HashSet<string> hashedResults, List<Comple
"sv"
};

private static readonly string[] s_varModificationParameters = new string[]
internal static readonly string[] s_varModificationParameters = new string[]
{
"Name",
"Value"
};

private static readonly string[] s_outVarParameters = new string[]
internal static readonly string[] s_outVarParameters = new string[]
{
"ErrorVariable",
"ev",
Expand All @@ -5552,13 +5552,13 @@ private static void AddUniqueVariable(HashSet<string> hashedResults, List<Comple

};

private static readonly string[] s_pipelineVariableParameters = new string[]
internal static readonly string[] s_pipelineVariableParameters = new string[]
{
"PipelineVariable",
"pv"
};

private static readonly HashSet<string> s_localScopeCommandNames = new(StringComparer.OrdinalIgnoreCase)
internal static readonly HashSet<string> s_localScopeCommandNames = new(StringComparer.OrdinalIgnoreCase)
{
"Microsoft.PowerShell.Core\\ForEach-Object",
"ForEach-Object",
Expand Down
Loading
Loading