@@ -621,7 +621,7 @@ public async Task FindsReferencesOnMethod()
621
621
public async Task FindsPropertyDefinition ( )
622
622
{
623
623
SymbolReference symbol = await GetDefinition ( FindsTypeSymbolsDefinitionData . PropertySourceDetails ) . ConfigureAwait ( true ) ;
624
- Assert . Equal ( "var SomePropWithDefault" , symbol . Id ) ;
624
+ Assert . Equal ( "prop SomePropWithDefault" , symbol . Id ) ;
625
625
Assert . Equal ( "[string] $SomePropWithDefault" , symbol . Name ) ;
626
626
Assert . Equal ( SymbolType . Property , symbol . Type ) ;
627
627
Assert . True ( symbol . IsDeclaration ) ;
@@ -634,14 +634,14 @@ public async Task FindsReferencesOnProperty()
634
634
Assert . Collection ( symbols ,
635
635
( i ) =>
636
636
{
637
- Assert . Equal ( "var SomeProp" , i . Id ) ;
637
+ Assert . Equal ( "prop SomeProp" , i . Id ) ;
638
638
Assert . Equal ( "[int] $SomeProp" , i . Name ) ;
639
639
Assert . Equal ( SymbolType . Property , i . Type ) ;
640
640
Assert . True ( i . IsDeclaration ) ;
641
641
} ,
642
642
( i ) =>
643
643
{
644
- Assert . Equal ( "var SomeProp" , i . Id ) ;
644
+ Assert . Equal ( "prop SomeProp" , i . Id ) ;
645
645
Assert . Equal ( "(property) SomeProp" , i . Name ) ;
646
646
Assert . Equal ( SymbolType . Property , i . Type ) ;
647
647
Assert . False ( i . IsDeclaration ) ;
@@ -655,14 +655,14 @@ public void FindsOccurrencesOnProperty()
655
655
Assert . Collection ( symbols ,
656
656
( i ) =>
657
657
{
658
- Assert . Equal ( "var SomePropWithDefault" , i . Id ) ;
658
+ Assert . Equal ( "prop SomePropWithDefault" , i . Id ) ;
659
659
Assert . Equal ( "[string] $SomePropWithDefault" , i . Name ) ;
660
660
Assert . Equal ( SymbolType . Property , i . Type ) ;
661
661
Assert . True ( i . IsDeclaration ) ;
662
662
} ,
663
663
( i ) =>
664
664
{
665
- Assert . Equal ( "var SomePropWithDefault" , i . Id ) ;
665
+ Assert . Equal ( "prop SomePropWithDefault" , i . Id ) ;
666
666
Assert . Equal ( "(property) SomePropWithDefault" , i . Name ) ;
667
667
Assert . Equal ( SymbolType . Property , i . Type ) ;
668
668
Assert . False ( i . IsDeclaration ) ;
@@ -673,15 +673,15 @@ public void FindsOccurrencesOnProperty()
673
673
public async Task FindsEnumMemberDefinition ( )
674
674
{
675
675
SymbolReference symbol = await GetDefinition ( FindsTypeSymbolsDefinitionData . EnumMemberSourceDetails ) . ConfigureAwait ( true ) ;
676
- Assert . Equal ( "var Second" , symbol . Id ) ;
676
+ Assert . Equal ( "prop Second" , symbol . Id ) ;
677
677
// Doesn't include [MyEnum]:: because that'd be redundant in the outline.
678
678
Assert . Equal ( "Second" , symbol . Name ) ;
679
679
Assert . Equal ( SymbolType . EnumMember , symbol . Type ) ;
680
680
Assert . True ( symbol . IsDeclaration ) ;
681
681
AssertIsRegion ( symbol . NameRegion , 41 , 5 , 41 , 11 ) ;
682
682
683
683
symbol = await GetDefinition ( FindsReferencesOnTypeSymbolsData . EnumMemberSourceDetails ) . ConfigureAwait ( true ) ;
684
- Assert . Equal ( "var First" , symbol . Id ) ;
684
+ Assert . Equal ( "prop First" , symbol . Id ) ;
685
685
Assert . Equal ( "First" , symbol . Name ) ;
686
686
Assert . Equal ( SymbolType . EnumMember , symbol . Type ) ;
687
687
Assert . True ( symbol . IsDeclaration ) ;
@@ -695,14 +695,14 @@ public async Task FindsReferencesOnEnumMember()
695
695
Assert . Collection ( symbols ,
696
696
( i ) =>
697
697
{
698
- Assert . Equal ( "var First" , i . Id ) ;
698
+ Assert . Equal ( "prop First" , i . Id ) ;
699
699
Assert . Equal ( "First" , i . Name ) ;
700
700
Assert . Equal ( SymbolType . EnumMember , i . Type ) ;
701
701
Assert . True ( i . IsDeclaration ) ;
702
702
} ,
703
703
( i ) =>
704
704
{
705
- Assert . Equal ( "var First" , i . Id ) ;
705
+ Assert . Equal ( "prop First" , i . Id ) ;
706
706
// The reference is just a member invocation, and so indistinguishable from a property.
707
707
Assert . Equal ( "(property) First" , i . Name ) ;
708
708
Assert . Equal ( SymbolType . Property , i . Type ) ;
@@ -732,7 +732,8 @@ public void FindsSymbolsInFile()
732
732
Assert . Equal ( 7 , symbols . Count ( i => i . Type == SymbolType . Function ) ) ;
733
733
Assert . Equal ( 8 , symbols . Count ( i => i . Type == SymbolType . Variable ) ) ;
734
734
Assert . Equal ( 4 , symbols . Count ( i => i . Type == SymbolType . Parameter ) ) ;
735
- Assert . Equal ( 14 , symbols . Count ( i => i . Id . StartsWith ( "var " ) ) ) ;
735
+ Assert . Equal ( 12 , symbols . Count ( i => i . Id . StartsWith ( "var " ) ) ) ;
736
+ Assert . Equal ( 2 , symbols . Count ( i => i . Id . StartsWith ( "prop " ) ) ) ;
736
737
737
738
SymbolReference symbol = symbols . First ( i => i . Type == SymbolType . Function ) ;
738
739
Assert . Equal ( "fn AFunction" , symbol . Id ) ;
@@ -760,7 +761,7 @@ public void FindsSymbolsInFile()
760
761
Assert . True ( symbol . IsDeclaration ) ;
761
762
762
763
symbol = Assert . Single ( symbols . Where ( i => i . Type == SymbolType . Property ) ) ;
763
- Assert . Equal ( "var AProperty" , symbol . Id ) ;
764
+ Assert . Equal ( "prop AProperty" , symbol . Id ) ;
764
765
Assert . Equal ( "[string] $AProperty" , symbol . Name ) ;
765
766
Assert . True ( symbol . IsDeclaration ) ;
766
767
@@ -780,7 +781,7 @@ public void FindsSymbolsInFile()
780
781
Assert . True ( symbol . IsDeclaration ) ;
781
782
782
783
symbol = Assert . Single ( symbols . Where ( i => i . Type == SymbolType . EnumMember ) ) ;
783
- Assert . Equal ( "var AValue" , symbol . Id ) ;
784
+ Assert . Equal ( "prop AValue" , symbol . Id ) ;
784
785
Assert . Equal ( "AValue" , symbol . Name ) ;
785
786
Assert . True ( symbol . IsDeclaration ) ;
786
787
}
@@ -806,7 +807,7 @@ public void FindsSymbolsWithNewLineInFile()
806
807
AssertIsRegion ( symbol . ScriptRegion , 8 , 5 , 10 , 6 ) ;
807
808
808
809
symbol = Assert . Single ( symbols . Where ( i => i . Type == SymbolType . Property ) ) ;
809
- Assert . Equal ( "var SomePropWithDefault" , symbol . Id ) ;
810
+ Assert . Equal ( "prop SomePropWithDefault" , symbol . Id ) ;
810
811
AssertIsRegion ( symbol . NameRegion , 15 , 5 , 15 , 25 ) ;
811
812
AssertIsRegion ( symbol . ScriptRegion , 12 , 5 , 15 , 40 ) ;
812
813
@@ -822,7 +823,7 @@ public void FindsSymbolsWithNewLineInFile()
822
823
AssertIsRegion ( symbol . ScriptRegion , 25 , 1 , 28 , 2 ) ;
823
824
824
825
symbol = Assert . Single ( symbols . Where ( i => i . Type == SymbolType . EnumMember ) ) ;
825
- Assert . Equal ( "var First" , symbol . Id ) ;
826
+ Assert . Equal ( "prop First" , symbol . Id ) ;
826
827
AssertIsRegion ( symbol . NameRegion , 27 , 5 , 27 , 10 ) ;
827
828
AssertIsRegion ( symbol . ScriptRegion , 27 , 5 , 27 , 10 ) ;
828
829
}
0 commit comments