File tree 17 files changed +626
-707
lines changed
PowerShellEditorServices.Test/Language
PowerShellEditorServices.Test.Shared
17 files changed +626
-707
lines changed Original file line number Diff line number Diff line change 5
5
6
6
namespace Microsoft . PowerShell . EditorServices . Test . Shared . Definition
7
7
{
8
- public class FindsDotSourcedFile
8
+ public static class FindsDotSourcedFileData
9
9
{
10
- public static readonly ScriptRegion SourceDetails =
11
- new ScriptRegion (
12
- file : TestUtilities . NormalizePath ( "References/DotSources.ps1" ) ,
13
- text : string . Empty ,
14
- startLineNumber : 1 ,
15
- startColumnNumber : 3 ,
16
- startOffset : 0 ,
17
- endLineNumber : 0 ,
18
- endColumnNumber : 0 ,
19
- endOffset : 0 ) ;
10
+ public static readonly ScriptRegion SourceDetails = new (
11
+ file : TestUtilities . NormalizePath ( "References/DotSources.ps1" ) ,
12
+ text : string . Empty ,
13
+ startLineNumber : 1 ,
14
+ startColumnNumber : 3 ,
15
+ startOffset : 0 ,
16
+ endLineNumber : 0 ,
17
+ endColumnNumber : 0 ,
18
+ endOffset : 0 ) ;
20
19
}
21
20
}
Original file line number Diff line number Diff line change 5
5
6
6
namespace Microsoft . PowerShell . EditorServices . Test . Shared . Definition
7
7
{
8
- public class FindsFunctionDefinition
8
+ public static class FindsFunctionDefinitionData
9
9
{
10
- public static readonly ScriptRegion SourceDetails =
11
- new ScriptRegion (
12
- file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
13
- text : string . Empty ,
14
- startLineNumber : 3 ,
15
- startColumnNumber : 12 ,
16
- startOffset : 0 ,
17
- endLineNumber : 0 ,
18
- endColumnNumber : 0 ,
19
- endOffset : 0 ) ;
10
+ public static readonly ScriptRegion SourceDetails = new (
11
+ file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
12
+ text : string . Empty ,
13
+ startLineNumber : 3 ,
14
+ startColumnNumber : 12 ,
15
+ startOffset : 0 ,
16
+ endLineNumber : 0 ,
17
+ endColumnNumber : 0 ,
18
+ endOffset : 0 ) ;
20
19
}
21
20
}
Original file line number Diff line number Diff line change 5
5
6
6
namespace Microsoft . PowerShell . EditorServices . Test . Shared . Definition
7
7
{
8
- public class FindsFunctionDefinitionInDotSourceReference
8
+ public static class FindsFunctionDefinitionInDotSourceReferenceData
9
9
{
10
- public static readonly ScriptRegion SourceDetails =
11
- new ScriptRegion (
12
- file : TestUtilities . NormalizePath ( "References/FileWithReferences.ps1" ) ,
13
- text : string . Empty ,
14
- startLineNumber : 3 ,
15
- startColumnNumber : 6 ,
16
- startOffset : 0 ,
17
- endLineNumber : 0 ,
18
- endColumnNumber : 0 ,
19
- endOffset : 0 ) ;
10
+ public static readonly ScriptRegion SourceDetails = new (
11
+ file : TestUtilities . NormalizePath ( "References/FileWithReferences.ps1" ) ,
12
+ text : string . Empty ,
13
+ startLineNumber : 3 ,
14
+ startColumnNumber : 6 ,
15
+ startOffset : 0 ,
16
+ endLineNumber : 0 ,
17
+ endColumnNumber : 0 ,
18
+ endOffset : 0 ) ;
20
19
}
21
20
}
Original file line number Diff line number Diff line change 5
5
6
6
namespace Microsoft . PowerShell . EditorServices . Test . Shared . Definition
7
7
{
8
- public class FindsFunctionDefinitionInWorkspace
8
+ public static class FindsFunctionDefinitionInWorkspaceData
9
9
{
10
- public static readonly ScriptRegion SourceDetails =
11
- new ScriptRegion (
12
- file : TestUtilities . NormalizePath ( "References/ReferenceFileD.ps1" ) ,
13
- text : string . Empty ,
14
- startLineNumber : 1 ,
15
- startColumnNumber : 2 ,
16
- startOffset : 0 ,
17
- endLineNumber : 0 ,
18
- endColumnNumber : 0 ,
19
- endOffset : 0 ) ;
10
+ public static readonly ScriptRegion SourceDetails = new (
11
+ file : TestUtilities . NormalizePath ( "References/ReferenceFileD.ps1" ) ,
12
+ text : string . Empty ,
13
+ startLineNumber : 1 ,
14
+ startColumnNumber : 2 ,
15
+ startOffset : 0 ,
16
+ endLineNumber : 0 ,
17
+ endColumnNumber : 0 ,
18
+ endOffset : 0 ) ;
20
19
}
21
20
}
Original file line number Diff line number Diff line change 5
5
6
6
namespace Microsoft . PowerShell . EditorServices . Test . Shared . Definition
7
7
{
8
- public class FindsVariableDefinition
8
+ public static class FindsVariableDefinitionData
9
9
{
10
- public static readonly ScriptRegion SourceDetails =
11
- new ScriptRegion (
12
- file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
13
- text : string . Empty ,
14
- startLineNumber : 8 ,
15
- startColumnNumber : 3 ,
16
- startOffset : 0 ,
17
- endLineNumber : 0 ,
18
- endColumnNumber : 0 ,
19
- endOffset : 0 ) ;
10
+ public static readonly ScriptRegion SourceDetails = new (
11
+ file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
12
+ text : string . Empty ,
13
+ startLineNumber : 8 ,
14
+ startColumnNumber : 3 ,
15
+ startOffset : 0 ,
16
+ endLineNumber : 0 ,
17
+ endColumnNumber : 0 ,
18
+ endOffset : 0 ) ;
20
19
}
21
20
}
Original file line number Diff line number Diff line change 5
5
6
6
namespace Microsoft . PowerShell . EditorServices . Test . Shared . Occurrences
7
7
{
8
- public class FindOccurrencesOnParameter
8
+ public static class FindOccurrencesOnParameterData
9
9
{
10
- public static readonly ScriptRegion SourceDetails =
11
- new ScriptRegion (
12
- file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
13
- text : string . Empty ,
14
- startLineNumber : 1 ,
15
- startColumnNumber : 31 ,
16
- startOffset : 0 ,
17
- endLineNumber : 0 ,
18
- endColumnNumber : 0 ,
19
- endOffset : 0 ) ;
10
+ public static readonly ScriptRegion SourceDetails = new (
11
+ file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
12
+ text : string . Empty ,
13
+ startLineNumber : 1 ,
14
+ startColumnNumber : 31 ,
15
+ startOffset : 0 ,
16
+ endLineNumber : 0 ,
17
+ endColumnNumber : 0 ,
18
+ endOffset : 0 ) ;
20
19
}
21
20
}
Original file line number Diff line number Diff line change 5
5
6
6
namespace Microsoft . PowerShell . EditorServices . Test . Shared . Occurrences
7
7
{
8
- public class FindsOccurrencesOnFunction
8
+ public static class FindsOccurrencesOnFunctionData
9
9
{
10
- public static readonly ScriptRegion SourceDetails =
11
- new ScriptRegion (
12
- file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
13
- text : string . Empty ,
14
- startLineNumber : 1 ,
15
- startColumnNumber : 17 ,
16
- startOffset : 0 ,
17
- endLineNumber : 0 ,
18
- endColumnNumber : 0 ,
19
- endOffset : 0 ) ;
10
+ public static readonly ScriptRegion SourceDetails = new (
11
+ file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
12
+ text : string . Empty ,
13
+ startLineNumber : 1 ,
14
+ startColumnNumber : 17 ,
15
+ startOffset : 0 ,
16
+ endLineNumber : 0 ,
17
+ endColumnNumber : 0 ,
18
+ endOffset : 0 ) ;
20
19
}
21
20
}
Original file line number Diff line number Diff line change 5
5
6
6
namespace Microsoft . PowerShell . EditorServices . Test . Shared . ParameterHint
7
7
{
8
- public class FindsParameterSetsOnCommand
8
+ public static class FindsParameterSetsOnCommandData
9
9
{
10
- public static readonly ScriptRegion SourceDetails =
11
- new ScriptRegion (
12
- file : TestUtilities . NormalizePath ( "ParameterHints/ParamHints.ps1" ) ,
13
- text : string . Empty ,
14
- startLineNumber : 1 ,
15
- startColumnNumber : 14 ,
16
- startOffset : 0 ,
17
- endLineNumber : 0 ,
18
- endColumnNumber : 0 ,
19
- endOffset : 0 ) ;
10
+ public static readonly ScriptRegion SourceDetails = new (
11
+ file : TestUtilities . NormalizePath ( "ParameterHints/ParamHints.ps1" ) ,
12
+ text : string . Empty ,
13
+ startLineNumber : 1 ,
14
+ startColumnNumber : 14 ,
15
+ startOffset : 0 ,
16
+ endLineNumber : 0 ,
17
+ endColumnNumber : 0 ,
18
+ endOffset : 0 ) ;
20
19
}
21
20
}
Original file line number Diff line number Diff line change 5
5
6
6
namespace Microsoft . PowerShell . EditorServices . Test . Shared . ParameterHint
7
7
{
8
- public class FindsParameterSetsOnCommandWithSpaces
8
+ public static class FindsParameterSetsOnCommandWithSpacesData
9
9
{
10
- public static readonly ScriptRegion SourceDetails =
11
- new ScriptRegion (
12
- file : TestUtilities . NormalizePath ( "ParameterHints/ParamHints.ps1" ) ,
13
- text : string . Empty ,
14
- startLineNumber : 9 ,
15
- startColumnNumber : 31 ,
16
- startOffset : 0 ,
17
- endLineNumber : 0 ,
18
- endColumnNumber : 0 ,
19
- endOffset : 0 ) ;
10
+ public static readonly ScriptRegion SourceDetails = new (
11
+ file : TestUtilities . NormalizePath ( "ParameterHints/ParamHints.ps1" ) ,
12
+ text : string . Empty ,
13
+ startLineNumber : 9 ,
14
+ startColumnNumber : 31 ,
15
+ startOffset : 0 ,
16
+ endLineNumber : 0 ,
17
+ endColumnNumber : 0 ,
18
+ endOffset : 0 ) ;
20
19
}
21
20
}
Original file line number Diff line number Diff line change 5
5
6
6
namespace Microsoft . PowerShell . EditorServices . Test . Shared . References
7
7
{
8
- public class FindsReferencesOnBuiltInCommandWithAlias
8
+ public static class FindsReferencesOnBuiltInCommandWithAliasData
9
9
{
10
- public static readonly ScriptRegion SourceDetails =
11
- new ScriptRegion (
12
- file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
13
- text : string . Empty ,
14
- startLineNumber : 14 ,
15
- startColumnNumber : 3 ,
16
- startOffset : 0 ,
17
- endLineNumber : 0 ,
18
- endColumnNumber : 0 ,
19
- endOffset : 0 ) ;
10
+ public static readonly ScriptRegion SourceDetails = new (
11
+ file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
12
+ text : string . Empty ,
13
+ startLineNumber : 14 ,
14
+ startColumnNumber : 3 ,
15
+ startOffset : 0 ,
16
+ endLineNumber : 0 ,
17
+ endColumnNumber : 0 ,
18
+ endOffset : 0 ) ;
20
19
}
21
- public class FindsReferencesOnBuiltInAlias
20
+ public static class FindsReferencesOnBuiltInAliasData
22
21
{
23
- public static readonly ScriptRegion SourceDetails =
24
- new ScriptRegion (
25
- file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
26
- text : string . Empty ,
27
- startLineNumber : 15 ,
28
- startColumnNumber : 2 ,
29
- startOffset : 0 ,
30
- endLineNumber : 0 ,
31
- endColumnNumber : 0 ,
32
- endOffset : 0 ) ;
22
+ public static readonly ScriptRegion SourceDetails = new (
23
+ file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
24
+ text : string . Empty ,
25
+ startLineNumber : 15 ,
26
+ startColumnNumber : 2 ,
27
+ startOffset : 0 ,
28
+ endLineNumber : 0 ,
29
+ endColumnNumber : 0 ,
30
+ endOffset : 0 ) ;
33
31
}
34
32
}
35
-
Original file line number Diff line number Diff line change 5
5
6
6
namespace Microsoft . PowerShell . EditorServices . Test . Shared . References
7
7
{
8
- public class FindsReferencesOnFunction
8
+ public static class FindsReferencesOnFunctionData
9
9
{
10
- public static readonly ScriptRegion SourceDetails =
11
- new ScriptRegion (
12
- file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
13
- text : string . Empty ,
14
- startLineNumber : 3 ,
15
- startColumnNumber : 8 ,
16
- startOffset : 0 ,
17
- endLineNumber : 0 ,
18
- endColumnNumber : 0 ,
19
- endOffset : 0 ) ;
10
+ public static readonly ScriptRegion SourceDetails = new (
11
+ file : TestUtilities . NormalizePath ( "References/SimpleFile.ps1" ) ,
12
+ text : string . Empty ,
13
+ startLineNumber : 3 ,
14
+ startColumnNumber : 8 ,
15
+ startOffset : 0 ,
16
+ endLineNumber : 0 ,
17
+ endColumnNumber : 0 ,
18
+ endOffset : 0 ) ;
20
19
}
21
20
}
22
-
Original file line number Diff line number Diff line change 5
5
6
6
namespace Microsoft . PowerShell . EditorServices . Test . Shared . References
7
7
{
8
- public class FindsReferencesOnFunctionMultiFileDotSourceFileB
8
+ public static class FindsReferencesOnFunctionMultiFileDotSourceFileB
9
9
{
10
- public static readonly ScriptRegion SourceDetails =
11
- new ScriptRegion (
12
- file : TestUtilities . NormalizePath ( "References/ReferenceFileB.ps1" ) ,
13
- text : string . Empty ,
14
- startLineNumber : 5 ,
15
- startColumnNumber : 8 ,
16
- startOffset : 0 ,
17
- endLineNumber : 0 ,
18
- endColumnNumber : 0 ,
19
- endOffset : 0 ) ;
10
+ public static readonly ScriptRegion SourceDetails = new (
11
+ file : TestUtilities . NormalizePath ( "References/ReferenceFileB.ps1" ) ,
12
+ text : string . Empty ,
13
+ startLineNumber : 5 ,
14
+ startColumnNumber : 8 ,
15
+ startOffset : 0 ,
16
+ endLineNumber : 0 ,
17
+ endColumnNumber : 0 ,
18
+ endOffset : 0 ) ;
20
19
}
21
- public class FindsReferencesOnFunctionMultiFileDotSourceFileC
20
+
21
+ public static class FindsReferencesOnFunctionMultiFileDotSourceFileC
22
22
{
23
- public static readonly ScriptRegion SourceDetails =
24
- new ScriptRegion (
25
- file : TestUtilities . NormalizePath ( "References/ReferenceFileC.ps1" ) ,
26
- text : string . Empty ,
27
- startLineNumber : 4 ,
28
- startColumnNumber : 10 ,
29
- startOffset : 0 ,
30
- endLineNumber : 0 ,
31
- endColumnNumber : 0 ,
32
- endOffset : 0 ) ;
23
+ public static readonly ScriptRegion SourceDetails = new (
24
+ file : TestUtilities . NormalizePath ( "References/ReferenceFileC.ps1" ) ,
25
+ text : string . Empty ,
26
+ startLineNumber : 4 ,
27
+ startColumnNumber : 10 ,
28
+ startOffset : 0 ,
29
+ endLineNumber : 0 ,
30
+ endColumnNumber : 0 ,
31
+ endOffset : 0 ) ;
33
32
}
34
33
}
35
-
You can’t perform that action at this time.
0 commit comments