File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/PowerShellEditorServices/Services Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ public async Task<IEnumerable<SymbolReference>> GetDefinitionOfSymbolAsync(
293
293
{
294
294
List < SymbolReference > declarations = new ( ) ;
295
295
declarations . AddRange ( scriptFile . References . TryGetReferences ( symbol ) . Where ( i => i . IsDeclaration ) ) ;
296
- if ( declarations . Any ( ) )
296
+ if ( declarations . Count > 0 )
297
297
{
298
298
_logger . LogDebug ( $ "Found possible declaration in same file ${ declarations } ") ;
299
299
return declarations ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ namespace Microsoft.PowerShell.EditorServices.Services.TextDocument
14
14
/// </summary>
15
15
public sealed class ScriptRegion : IScriptExtent
16
16
{
17
- public TextEdit ToTextEdit ( ) => new ( ) { NewText = Text , Range = ToRange ( ) } ;
17
+ internal TextEdit ToTextEdit ( ) => new ( ) { NewText = Text , Range = ToRange ( ) } ;
18
18
19
19
public Range ToRange ( )
20
20
{
@@ -34,7 +34,7 @@ public Range ToRange()
34
34
}
35
35
36
36
// Same as PowerShell's EmptyScriptExtent
37
- public bool IsEmpty ( )
37
+ internal bool IsEmpty ( )
38
38
{
39
39
return StartLineNumber == 0 && StartColumnNumber == 0
40
40
&& EndLineNumber == 0 && EndColumnNumber == 0
@@ -43,7 +43,7 @@ public bool IsEmpty()
43
43
}
44
44
45
45
// Do not use PowerShell's ContainsLineAndColumn, it's nonsense.
46
- public bool ContainsPosition ( int line , int column )
46
+ internal bool ContainsPosition ( int line , int column )
47
47
{
48
48
return StartLineNumber <= line && line <= EndLineNumber
49
49
&& StartColumnNumber <= column && column <= EndColumnNumber ;
You can’t perform that action at this time.
0 commit comments