CrefCompletionProviderTests.vb 33.8 KB
Newer Older
1 2
' Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

R
Ravi Chande 已提交
3 4
Imports System.Composition
Imports System.Threading
C
Cyrus Najmabadi 已提交
5
Imports System.Threading.Tasks
R
Ravi Chande 已提交
6 7 8 9 10 11 12
Imports Microsoft.CodeAnalysis.Completion
Imports Microsoft.CodeAnalysis.Editor.UnitTests
Imports Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces
Imports Microsoft.CodeAnalysis.FindSymbols
Imports Microsoft.CodeAnalysis.Host.Mef
Imports Microsoft.CodeAnalysis.LanguageServices
Imports Microsoft.CodeAnalysis.Text
13
Imports Microsoft.CodeAnalysis.VisualBasic.Completion.Providers
R
Ravi Chande 已提交
14
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
15 16 17 18 19

Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Completion.CompletionProviders
    Public Class CrefCompletionProviderTests
        Inherits AbstractVisualBasicCompletionProviderTests

20 21 22 23
        Public Sub New(workspaceFixture As VisualBasicTestWorkspaceFixture)
            MyBase.New(workspaceFixture)
        End Sub

M
Matt Warren 已提交
24
        Friend Overrides Function CreateCompletionProvider() As CompletionProvider
25 26 27
            Return New CrefCompletionProvider()
        End Function

28
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
29
        Public Async Function TestNotOutsideCref() As Task
30 31 32 33 34 35 36 37
            Dim text = <File>
Class C
    ''' $$
    Sub Foo()
    End Sub
End Class
</File>.Value

C
Cyrus Najmabadi 已提交
38 39
            Await VerifyNoItemsExistAsync(text)
        End Function
40

41
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
42
        Public Async Function TestNotOutsideCref2() As Task
43 44 45 46 47 48 49 50
            Dim text = <File>
Class C
    $$
    Sub Foo()
    End Sub
End Class
</File>.Value

C
Cyrus Najmabadi 已提交
51 52
            Await VerifyNoItemsExistAsync(text)
        End Function
53

54
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
55
        Public Async Function TestNotOutsideCref3() As Task
56 57 58 59 60 61 62 63
            Dim text = <File>
Class C
    Sub Foo()
        Me.$$
    End Sub
End Class
</File>.Value

C
Cyrus Najmabadi 已提交
64 65
            Await VerifyNoItemsExistAsync(text)
        End Function
66

67
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
68
        Public Async Function TestAfterCrefOpenQuote() As Task
69 70 71 72 73 74 75 76 77 78 79
            Dim text = <File><![CDATA[
Imports System

''' <summary>
''' <see cref="$$
''' </summary>
Module Program
    Sub Foo()
    End Sub
End Module]]></File>.Value

C
Cyrus Najmabadi 已提交
80 81
            Await VerifyAnyItemExistsAsync(text)
        End Function
82

83
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
84
        Public Async Function TestRightSideOfQualifiedName() As Task
85 86 87 88 89 90 91 92 93 94 95
            Dim text = <File><![CDATA[
Imports System

''' <summary>
''' <see cref="Program.$$"
''' </summary>
Module Program
    Sub Foo()
    End Sub
End Module]]></File>.Value

C
Cyrus Najmabadi 已提交
96 97
            Await VerifyItemExistsAsync(text, "Foo()")
        End Function
98

99
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
100
        Public Async Function TestNotInTypeParameterContext() As Task
101 102 103 104 105 106 107 108 109 110 111
            Dim text = <File><![CDATA[
Imports System

''' <summary>
''' <see cref="Program(Of $$
''' </summary>
Class Program(Of T)
    Sub Foo()
    End Sub
End Class]]></File>.Value

C
Cyrus Najmabadi 已提交
112 113
            Await VerifyItemIsAbsentAsync(text, "Integer")
        End Function
114

115
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
116
        Public Async Function TestInSignature_FirstParameter() As Task
117 118 119 120 121 122 123 124 125 126 127
            Dim text = <File><![CDATA[
Imports System

''' <summary>
''' <see cref="Program(Of T).Foo($$"
''' </summary>
Class Program(Of T)
    Sub Foo(z as Integer)
    End Sub
End Class]]></File>.Value

C
Cyrus Najmabadi 已提交
128 129 130
            Await VerifyItemExistsAsync(text, "Integer")
            Await VerifyItemIsAbsentAsync(text, "Foo(Integer")
        End Function
131

132
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
133
        Public Async Function TestInSignature_SecondParameter() As Task
134 135 136 137 138 139 140 141 142 143 144
            Dim text = <File><![CDATA[
Imports System

''' <summary>
''' <see cref="Program(Of T).Foo(Integer, $$"
''' </summary>
Class Program(Of T)
    Sub Foo(z as Integer, q as Integer)
    End Sub
End Class]]></File>.Value

C
Cyrus Najmabadi 已提交
145 146
            Await VerifyItemExistsAsync(text, "Integer")
        End Function
147

148
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
149
        Public Async Function TestNotAfterSignature() As Task
150 151 152 153 154 155 156 157 158 159 160
            Dim text = <File><![CDATA[
Imports System

''' <summary>
''' <see cref="Program(Of T).Foo(Integer, Integer)$$"
''' </summary>
Class Program(Of T)
    Sub Foo(z as Integer, q as Integer)
    End Sub
End Class]]></File>.Value

C
Cyrus Najmabadi 已提交
161 162
            Await VerifyNoItemsExistAsync(text)
        End Function
163
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
164
        Public Async Function TestNotAfterDotAfterSignature() As Task
165 166 167 168 169 170 171 172 173 174 175
            Dim text = <File><![CDATA[
Imports System

''' <summary>
''' <see cref="Program(Of T).Foo(Integer, Integer).$$"
''' </summary>
Class Program(Of T)
    Sub Foo(z as Integer, q as Integer)
    End Sub
End Class]]></File>.Value

C
Cyrus Najmabadi 已提交
176 177
            Await VerifyNoItemsExistAsync(text)
        End Function
178

179
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
180
        Public Async Function TestMethodParametersIncluded() As Task
181 182 183 184 185 186 187 188 189
            Dim text = <File><![CDATA[
''' <summary>
''' <see cref="Program(Of T).$$"
''' </summary>
Class Program(Of T)
    Sub Foo(ByRef z As Integer, ByVal x As Integer, ParamArray xx As Integer())
    End Sub
End Class]]></File>.Value

C
Cyrus Najmabadi 已提交
190 191
            Await VerifyItemExistsAsync(text, "Foo(ByRef Integer, Integer, Integer())")
        End Function
192

193
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
194
        Public Async Function TestTypesSuggestedWithTypeParameters() As Task
195 196 197 198 199 200 201 202 203 204
            Dim text = <File><![CDATA[
''' <summary>
''' <see cref="$$"
''' </summary>
Class Program(Of TTypeParameter)
End Class

Class Program
End Class]]></File>.Value

C
Cyrus Najmabadi 已提交
205 206 207
            Await VerifyItemExistsAsync(text, "Program")
            Await VerifyItemExistsAsync(text, "Program(Of TTypeParameter)")
        End Function
208
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
209
        Public Async Function TestOperators() As Task
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
            Dim text = <File><![CDATA[Imports System
Imports System.Collections.Generic
Imports System.Linq

Module Program
    Sub Main(args As String())

    End Sub
End Module

Class C
    ''' <summary>
    '''  <see cref="<see cref="C.$$"
    ''' </summary>
    ''' <param name="c"></param>
    ''' <returns></returns>
    Public Shared Operator +(c As C)

    End Operator
End Class]]></File>.Value

C
Cyrus Najmabadi 已提交
231 232
            Await VerifyItemExistsAsync(text, "Operator +(C)")
        End Function
233

234
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
235
        Public Async Function TestModOperator() As Task
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
            Dim text = <File><![CDATA[Imports System
Imports System.Collections.Generic
Imports System.Linq

Module Program
    Sub Main(args As String())

    End Sub
End Module

Class C
    ''' <summary>
    '''  <see cref="<see cref="C.$$"
    ''' </summary>
    ''' <param name="c"></param>
    ''' <returns></returns>
    Public Shared Operator Mod (c As C, a as Integer)

    End Operator
End Class]]></File>.Value

C
Cyrus Najmabadi 已提交
257 258
            Await VerifyItemExistsAsync(text, "Operator Mod(C, Integer)")
        End Function
259

260
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
261
        Public Async Function TestConstructorsShown() As Task
262 263 264 265 266 267 268 269 270 271
            Dim text = <File><![CDATA[
''' <summary>
''' <see cref="C.$$"/>
''' </summary>
Class C
    Sub New(x as Integer)
    End Sub
End Class
]]></File>.Value

C
Cyrus Najmabadi 已提交
272 273
            Await VerifyItemExistsAsync(text, "New(Integer)")
        End Function
274
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
275
        Public Async Function TestAfterNamespace() As Task
276 277 278 279 280 281 282 283 284 285 286
            Dim text = <File><![CDATA[
Imports System
''' <summary>
''' <see cref="System.$$"/>
''' </summary>
Class C
    Sub New(x as Integer)
    End Sub
End Class
]]></File>.Value

C
Cyrus Najmabadi 已提交
287 288
            Await VerifyItemExistsAsync(text, "String")
        End Function
289

290
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
291
        Public Async Function TestParameterizedProperties() As Task
292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
            Dim text = <File><![CDATA[
''' <summary>
''' <see cref="C.$$"/>
''' </summary>
Class C
    Public Property Item(x As Integer) As Integer
        Get
            Return 0
        End Get
        Set(value As Integer)
        End Set
    End Property
    Public Property Item(x As Integer, y As String) As Integer
        Get
            Return 1
        End Get
        Set(value As Integer)
        End Set
    End Property
End Class
 

]]></File>.Value

C
Cyrus Najmabadi 已提交
316 317 318
            Await VerifyItemExistsAsync(text, "Item(Integer)")
            Await VerifyItemExistsAsync(text, "Item(Integer, String)")
        End Function
319

320
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
321
        Public Async Function TestNoIdentifierEscaping() As Task
322 323 324 325 326 327 328 329
            Dim text = <File><![CDATA[
''' <see cref="A.$$"/>
''' </summary>
Class A
End Class

]]></File>.Value

C
Cyrus Najmabadi 已提交
330 331
            Await VerifyItemExistsAsync(text, "GetType()")
        End Function
332

333
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
334
        Public Async Function TestNoCommitOnParen() As Task
335 336 337 338 339 340 341 342 343 344 345 346
            Dim text = <File><![CDATA[
''' <summary>
''' <see cref="C.$$"/>
''' </summary>
Class C
Sub bar(x As Integer, y As Integer)
End Sub
End Class
]]></File>.Value

            Dim expected = <File><![CDATA[
''' <summary>
347
''' <see cref="C.("/>
348 349 350 351 352 353 354
''' </summary>
Class C
Sub bar(x As Integer, y As Integer)
End Sub
End Class
]]></File>.Value

C
Cyrus Najmabadi 已提交
355 356
            Await VerifyProviderCommitAsync(text, "bar(Integer, Integer)", expected, "("c, "bar")
        End Function
357

358
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
359
        Public Async Function TestAllowTypingTypeParameters() As Task
360 361 362 363 364 365 366 367 368 369 370 371 372 373
            Dim text = <File><![CDATA[
Imports System.Collections.Generic
''' <summary>
''' <see cref="$$"/>
''' </summary>
Class C
Sub bar(x As Integer, y As Integer)
End Sub
End Class
]]></File>.Value

            Dim expected = <File><![CDATA[
Imports System.Collections.Generic
''' <summary>
374
''' <see cref=" "/>
375 376 377 378 379 380 381
''' </summary>
Class C
Sub bar(x As Integer, y As Integer)
End Sub
End Class
]]></File>.Value

C
Cyrus Najmabadi 已提交
382 383
            Await VerifyProviderCommitAsync(text, "List(Of T)", expected, " "c, "List(Of")
        End Function
384

385
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
386
        Public Async Function TestOfAfterParen() As Task
387 388 389 390 391 392 393 394 395 396 397
            Dim text = <File><![CDATA[
Imports System

''' <summary>
''' <see cref="Foo($$
''' </summary>
Module Program
    Sub Foo()
    End Sub
End Module]]></File>.Value

C
Cyrus Najmabadi 已提交
398 399
            Await VerifyItemExistsAsync(text, "Of")
        End Function
400

401
        <Fact, Trait(Traits.Feature, Traits.Features.Completion)>
C
Cyrus Najmabadi 已提交
402
        Public Async Function TestOfNotAfterComma() As Task
403 404 405 406 407 408 409 410 411 412 413
            Dim text = <File><![CDATA[
Imports System

''' <summary>
''' <see cref="Foo(a, $$
''' </summary>
Module Program
    Sub Foo()
    End Sub
End Module]]></File>.Value

C
Cyrus Najmabadi 已提交
414 415
            Await VerifyItemIsAbsentAsync(text, "Of")
        End Function
R
Ravi Chande 已提交
416

C
Cyrus Najmabadi 已提交
417
        Public Async Function TestCrefCompletionSpeculatesOutsideTrivia() As Task
R
Ravi Chande 已提交
418 419 420 421 422 423 424 425
            Dim text = <a><![CDATA[
Class C
    ''' <see cref="$$
    Sub foo()
    End Sub
End Class]]></a>.Value.NormalizeLineEndings()
            Dim exportProvider = MinimalTestExportProvider.CreateExportProvider(TestExportProvider.EntireAssemblyCatalogWithCSharpAndVisualBasic.WithPart(GetType(PickySemanticFactsService)))

C
Cyrus Najmabadi 已提交
426
            Using workspace = Await TestWorkspace.CreateAsync(LanguageNames.VisualBasic, New VisualBasicCompilationOptions(OutputKind.ConsoleApplication), New VisualBasicParseOptions(), {text}, exportProvider)
R
Ravi Chande 已提交
427 428 429 430 431 432 433
                ' This test uses MEF to compose in an ISyntaxFactsService that 
                ' asserts it isn't asked to speculate on nodes inside documentation trivia.
                ' This verifies that the provider is asking for a speculative SemanticModel
                ' by walking to the node the documentation is attached to. 

                Dim hostDocument = workspace.DocumentWithCursor
                Dim document = workspace.CurrentSolution.GetDocument(hostDocument.Id)
C
CyrusNajmabadi 已提交
434 435
                Dim service = Await GetCompletionServiceAsync()
                Dim completionList = Await GetCompletionListAsync(service, document, hostDocument.CursorPosition.Value, CompletionTrigger.Default)
R
Ravi Chande 已提交
436
            End Using
C
Cyrus Najmabadi 已提交
437
        End Function
R
Ravi Chande 已提交
438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476

        <ExportLanguageServiceAttribute(GetType(ISyntaxFactsService), LanguageNames.VisualBasic, ServiceLayer.Host), [Shared]>
        Friend Class PickySemanticFactsService
            Implements ISyntaxFactsService

            Public ReadOnly Property IsCaseSensitive As Boolean Implements ISyntaxFactsService.IsCaseSensitive
                Get
                    Throw New NotImplementedException()
                End Get
            End Property

            Public Sub GetNameAndArityOfSimpleName(node As SyntaxNode, ByRef name As String, ByRef arity As Integer) Implements ISyntaxFactsService.GetNameAndArityOfSimpleName
                Throw New NotImplementedException()
            End Sub

            Public Function ContainsInMemberBody(node As SyntaxNode, span As TextSpan) As Boolean Implements ISyntaxFactsService.ContainsInMemberBody
                Throw New NotImplementedException()
            End Function

            Public Function ConvertToSingleLine(node As SyntaxNode) As SyntaxNode Implements ISyntaxFactsService.ConvertToSingleLine
                Throw New NotImplementedException()
            End Function

            Public Function FindTokenOnLeftOfPosition(node As SyntaxNode, position As Integer, Optional includeSkipped As Boolean = True, Optional includeDirectives As Boolean = False, Optional includeDocumentationComments As Boolean = False) As SyntaxToken Implements ISyntaxFactsService.FindTokenOnLeftOfPosition
                Throw New NotImplementedException()
            End Function

            Public Function FindTokenOnRightOfPosition(node As SyntaxNode, position As Integer, Optional includeSkipped As Boolean = True, Optional includeDirectives As Boolean = False, Optional includeDocumentationComments As Boolean = False) As SyntaxToken Implements ISyntaxFactsService.FindTokenOnRightOfPosition
                Throw New NotImplementedException()
            End Function

            Public Function GetBindableParent(token As SyntaxToken) As SyntaxNode Implements ISyntaxFactsService.GetBindableParent
                Throw New NotImplementedException()
            End Function

            Public Function GetConstructors(root As SyntaxNode, cancellationToken As CancellationToken) As IEnumerable(Of SyntaxNode) Implements ISyntaxFactsService.GetConstructors
                Throw New NotImplementedException()
            End Function

477
            Public Function GetContainingMemberDeclaration(root As SyntaxNode, position As Integer, Optional useFullSpan As Boolean = True) As SyntaxNode Implements ISyntaxFactsService.GetContainingMemberDeclaration
R
Ravi Chande 已提交
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799
                Throw New NotImplementedException()
            End Function

            Public Function GetContainingTypeDeclaration(root As SyntaxNode, position As Integer) As SyntaxNode Implements ISyntaxFactsService.GetContainingTypeDeclaration
                Throw New NotImplementedException()
            End Function

            Public Function GetContainingVariableDeclaratorOfFieldDeclaration(node As SyntaxNode) As SyntaxNode Implements ISyntaxFactsService.GetContainingVariableDeclaratorOfFieldDeclaration
                Throw New NotImplementedException()
            End Function

            Public Function GetExpressionOfArgument(node As SyntaxNode) As SyntaxNode Implements ISyntaxFactsService.GetExpressionOfArgument
                Throw New NotImplementedException()
            End Function

            Public Function GetExpressionOfConditionalMemberAccessExpression(node As SyntaxNode) As SyntaxNode Implements ISyntaxFactsService.GetExpressionOfConditionalMemberAccessExpression
                Throw New NotImplementedException()
            End Function

            Public Function GetExpressionOfMemberAccessExpression(node As SyntaxNode) As SyntaxNode Implements ISyntaxFactsService.GetExpressionOfMemberAccessExpression
                Throw New NotImplementedException()
            End Function

            Public Function GetIdentifierOfGenericName(node As SyntaxNode) As SyntaxToken Implements ISyntaxFactsService.GetIdentifierOfGenericName
                Throw New NotImplementedException()
            End Function

            Public Function GetMemberBodySpanForSpeculativeBinding(node As SyntaxNode) As TextSpan Implements ISyntaxFactsService.GetMemberBodySpanForSpeculativeBinding
                Dim trivia = node.GetAncestor(Of DocumentationCommentTriviaSyntax)
                Assert.Null(trivia)

                Return Nothing
            End Function

            Public Function GetMethodLevelMember(root As SyntaxNode, memberId As Integer) As SyntaxNode Implements ISyntaxFactsService.GetMethodLevelMember
                Throw New NotImplementedException()
            End Function

            Public Function GetMethodLevelMemberId(root As SyntaxNode, node As SyntaxNode) As Integer Implements ISyntaxFactsService.GetMethodLevelMemberId
                Throw New NotImplementedException()
            End Function

            Public Function GetMethodLevelMembers(root As SyntaxNode) As List(Of SyntaxNode) Implements ISyntaxFactsService.GetMethodLevelMembers
                Throw New NotImplementedException()
            End Function

            Public Function GetNameOfAttribute(node As SyntaxNode) As SyntaxNode Implements ISyntaxFactsService.GetNameOfAttribute
                Throw New NotImplementedException()
            End Function

            Public Function GetRefKindOfArgument(node As SyntaxNode) As RefKind Implements ISyntaxFactsService.GetRefKindOfArgument
                Throw New NotImplementedException()
            End Function

            Public Function GetText(kind As Integer) As String Implements ISyntaxFactsService.GetText
                Throw New NotImplementedException()
            End Function

            Public Function HasIncompleteParentMember(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.HasIncompleteParentMember
                Throw New NotImplementedException()
            End Function

            Public Function IsAnonymousFunction(n As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsAnonymousFunction
                Throw New NotImplementedException()
            End Function

            Public Function IsAttribute(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsAttribute
                Throw New NotImplementedException()
            End Function

            Public Function IsAttributeName(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsAttributeName
                Throw New NotImplementedException()
            End Function

            Public Function IsAttributeNamedArgumentIdentifier(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsAttributeNamedArgumentIdentifier
                Throw New NotImplementedException()
            End Function

            Public Function IsAwaitKeyword(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsAwaitKeyword
                Throw New NotImplementedException()
            End Function

            Public Function IsBaseConstructorInitializer(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsBaseConstructorInitializer
                Throw New NotImplementedException()
            End Function

            Public Function IsBindableToken(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsBindableToken
                Throw New NotImplementedException()
            End Function

            Public Function IsConditionalMemberAccessExpression(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsConditionalMemberAccessExpression
                Throw New NotImplementedException()
            End Function

            Public Function IsContextualKeyword(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsContextualKeyword
                Throw New NotImplementedException()
            End Function

            Public Function IsDirective(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsDirective
                Throw New NotImplementedException()
            End Function

            Public Function IsElementAccessExpression(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsElementAccessExpression
                Throw New NotImplementedException()
            End Function

            Public Function IsEntirelyWithinStringOrCharOrNumericLiteral(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Implements ISyntaxFactsService.IsEntirelyWithinStringOrCharOrNumericLiteral
                Throw New NotImplementedException()
            End Function

            Public Function IsForEachStatement(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsForEachStatement
                Throw New NotImplementedException()
            End Function

            Public Function IsGenericName(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsGenericName
                Throw New NotImplementedException()
            End Function

            Public Function IsGlobalNamespaceKeyword(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsGlobalNamespaceKeyword
                Throw New NotImplementedException()
            End Function

            Public Function IsHashToken(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsHashToken
                Throw New NotImplementedException()
            End Function

            Public Function IsIdentifier(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsIdentifier
                Throw New NotImplementedException()
            End Function

            Public Function IsIdentifierEscapeCharacter(c As Char) As Boolean Implements ISyntaxFactsService.IsIdentifierEscapeCharacter
                Throw New NotImplementedException()
            End Function

            Public Function IsIdentifierPartCharacter(c As Char) As Boolean Implements ISyntaxFactsService.IsIdentifierPartCharacter
                Throw New NotImplementedException()
            End Function

            Public Function IsIdentifierStartCharacter(c As Char) As Boolean Implements ISyntaxFactsService.IsIdentifierStartCharacter
                Throw New NotImplementedException()
            End Function

            Public Function IsInConstantContext(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsInConstantContext
                Throw New NotImplementedException()
            End Function

            Public Function IsInConstructor(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsInConstructor
                Throw New NotImplementedException()
            End Function

            Public Function IsIndexerMemberCRef(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsIndexerMemberCRef
                Throw New NotImplementedException()
            End Function

            Public Function IsInInactiveRegion(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Implements ISyntaxFactsService.IsInInactiveRegion
                Throw New NotImplementedException()
            End Function

            Public Function IsInNamespaceOrTypeContext(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsInNamespaceOrTypeContext
                Throw New NotImplementedException()
            End Function

            Public Function IsInNonUserCode(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Implements ISyntaxFactsService.IsInNonUserCode
                Throw New NotImplementedException()
            End Function

            Public Function IsInStaticContext(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsInStaticContext
                Throw New NotImplementedException()
            End Function

            Public Function IsInvocationExpression(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsInvocationExpression
                Throw New NotImplementedException()
            End Function

            Public Function IsKeyword(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsKeyword
                Throw New NotImplementedException()
            End Function

            Public Function IsLiteral(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsLiteral
                Throw New NotImplementedException()
            End Function

            Public Function IsLockStatement(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsLockStatement
                Throw New NotImplementedException()
            End Function

            Public Function IsMemberAccessExpression(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsMemberAccessExpression
                Throw New NotImplementedException()
            End Function

            Public Function IsMemberAccessExpressionName(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsMemberAccessExpressionName
                Throw New NotImplementedException()
            End Function

            Public Function IsMethodLevelMember(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsMethodLevelMember
                Throw New NotImplementedException()
            End Function

            Public Function IsNamedParameter(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsNamedParameter
                Throw New NotImplementedException()
            End Function

            Public Function IsObjectCreationExpression(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsObjectCreationExpression
                Throw New NotImplementedException()
            End Function

            Public Function IsObjectCreationExpressionType(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsObjectCreationExpressionType
                Throw New NotImplementedException()
            End Function

            Public Function IsObjectInitializerNamedAssignmentIdentifier(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsObjectInitializerNamedAssignmentIdentifier
                Throw New NotImplementedException()
            End Function

            Public Function IsOperator(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsOperator
                Throw New NotImplementedException()
            End Function

            Public Function IsPointerMemberAccessExpression(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsPointerMemberAccessExpression
                Throw New NotImplementedException()
            End Function

            Public Function IsPredefinedOperator(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsPredefinedOperator
                Throw New NotImplementedException()
            End Function

            Public Function IsPredefinedOperator(token As SyntaxToken, op As PredefinedOperator) As Boolean Implements ISyntaxFactsService.IsPredefinedOperator
                Throw New NotImplementedException()
            End Function

            Public Function IsPredefinedType(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsPredefinedType
                Throw New NotImplementedException()
            End Function

            Public Function IsPredefinedType(token As SyntaxToken, type As PredefinedType) As Boolean Implements ISyntaxFactsService.IsPredefinedType
                Throw New NotImplementedException()
            End Function

            Public Function IsPreprocessorKeyword(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsPreprocessorKeyword
                Throw New NotImplementedException()
            End Function

            Public Function IsQueryExpression(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsQueryExpression
                Throw New NotImplementedException()
            End Function

            Public Function IsRightSideOfQualifiedName(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsRightSideOfQualifiedName
                Throw New NotImplementedException()
            End Function

            Public Function IsSkippedTokensTrivia(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsSkippedTokensTrivia
                Throw New NotImplementedException()
            End Function

            Public Function IsStartOfUnicodeEscapeSequence(c As Char) As Boolean Implements ISyntaxFactsService.IsStartOfUnicodeEscapeSequence
                Throw New NotImplementedException()
            End Function

            Public Function IsStringLiteral(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsStringLiteral
                Throw New NotImplementedException()
            End Function

            Public Function IsThisConstructorInitializer(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsThisConstructorInitializer
                Throw New NotImplementedException()
            End Function

            Public Function IsTopLevelNodeWithMembers(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsTopLevelNodeWithMembers
                Throw New NotImplementedException()
            End Function

            Public Function IsTypeCharacter(c As Char) As Boolean Implements ISyntaxFactsService.IsTypeCharacter
                Throw New NotImplementedException()
            End Function

            Public Function IsTypeNamedDynamic(token As SyntaxToken, parent As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsTypeNamedDynamic
                Throw New NotImplementedException()
            End Function

            Public Function IsTypeNamedVarInVariableOrFieldDeclaration(token As SyntaxToken, parent As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsTypeNamedVarInVariableOrFieldDeclaration
                Throw New NotImplementedException()
            End Function

            Public Function IsUnsafeContext(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsUnsafeContext
                Throw New NotImplementedException()
            End Function

            Public Function IsUsingDirectiveName(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsUsingDirectiveName
                Throw New NotImplementedException()
            End Function

            Public Function IsUsingStatement(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsUsingStatement
                Throw New NotImplementedException()
            End Function

            Public Function IsValidIdentifier(identifier As String) As Boolean Implements ISyntaxFactsService.IsValidIdentifier
                Throw New NotImplementedException()
            End Function

            Public Function IsVerbatimIdentifier(identifier As String) As Boolean Implements ISyntaxFactsService.IsVerbatimIdentifier
                Throw New NotImplementedException()
            End Function

            Public Function IsVerbatimIdentifier(token As SyntaxToken) As Boolean Implements ISyntaxFactsService.IsVerbatimIdentifier
                Throw New NotImplementedException()
            End Function

            Public Function Parenthesize(expression As SyntaxNode, Optional includeElasticTrivia As Boolean = True) As SyntaxNode Implements ISyntaxFactsService.Parenthesize
                Throw New NotImplementedException()
            End Function

            Public Function ToIdentifierToken(name As String) As SyntaxToken Implements ISyntaxFactsService.ToIdentifierToken
                Throw New NotImplementedException()
            End Function

            Public Function TryGetCorrespondingOpenBrace(token As SyntaxToken, ByRef openBrace As SyntaxToken) As Boolean Implements ISyntaxFactsService.TryGetCorrespondingOpenBrace
                Throw New NotImplementedException()
            End Function

            Public Function TryGetDeclaredSymbolInfo(node As SyntaxNode, ByRef declaredSymbolInfo As DeclaredSymbolInfo) As Boolean Implements ISyntaxFactsService.TryGetDeclaredSymbolInfo
                Throw New NotImplementedException()
            End Function

800 801 802 803
            Public Function GetDisplayName(node As SyntaxNode, options As DisplayNameOptions, Optional rootNamespace As String = Nothing) As String Implements ISyntaxFactsService.GetDisplayName
                Throw New NotImplementedException()
            End Function

R
Ravi Chande 已提交
804 805 806 807 808 809 810 811 812 813 814
            Public Function TryGetExternalSourceInfo(directive As SyntaxNode, ByRef info As ExternalSourceInfo) As Boolean Implements ISyntaxFactsService.TryGetExternalSourceInfo
                Throw New NotImplementedException()
            End Function

            Public Function TryGetPredefinedOperator(token As SyntaxToken, ByRef op As PredefinedOperator) As Boolean Implements ISyntaxFactsService.TryGetPredefinedOperator
                Throw New NotImplementedException()
            End Function

            Public Function TryGetPredefinedType(token As SyntaxToken, ByRef type As PredefinedType) As Boolean Implements ISyntaxFactsService.TryGetPredefinedType
                Throw New NotImplementedException()
            End Function
815 816 817 818

            Public Function GetInactiveRegionSpanAroundPosition(tree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As TextSpan Implements ISyntaxFactsService.GetInactiveRegionSpanAroundPosition
                Throw New NotImplementedException()
            End Function
819 820

            Public Function GetNameForArgument(argument As SyntaxNode) As String Implements ISyntaxFactsService.GetNameForArgument
C
CyrusNajmabadi 已提交
821
                Throw New NotImplementedException()
822
            End Function
C
CyrusNajmabadi 已提交
823 824 825 826 827 828 829 830

            Public Function IsLeftSideOfDot(node As SyntaxNode) As Boolean Implements ISyntaxFactsService.IsLeftSideOfDot
                Throw New NotImplementedException()
            End Function

            Public Function GetRightSideOfDot(node As SyntaxNode) As SyntaxNode Implements ISyntaxFactsService.GetRightSideOfDot
                Throw New NotImplementedException()
            End Function
R
Ravi Chande 已提交
831
        End Class
832 833
    End Class
End Namespace