25 references to MethodKind
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (25)
EditAndContinue\Helpers\EditingTestBase.vb (14)
135Friend Shared Function GetMethodEdits(src1 As String, src2 As String, Optional methodKind As MethodKind = MethodKind.Regular) As EditScript(Of SyntaxNode) 140Friend Shared Function GetMethodMatch(src1 As String, src2 As String, Optional methodKind As MethodKind = MethodKind.Regular) As Match(Of SyntaxNode) 150Assert.Equal(methodKind <> MethodKind.Regular, needsSyntaxMap) 152If methodKind = MethodKind.Regular Then 161Optional kind As MethodKind = MethodKind.Regular) As IEnumerable(Of KeyValuePair(Of SyntaxNode, SyntaxNode)) 174Friend Shared Function MakeMethodBody(bodySource As String, Optional stateMachine As MethodKind = MethodKind.Regular) As SyntaxNode 185Private Shared Function WrapMethodBodyWithClass(bodySource As String, Optional kind As MethodKind = MethodKind.Regular) As String 187Case MethodKind.Iterator 190Case MethodKind.Async
EditAndContinue\StatementEditingTests.vb (7)
4594Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Iterator) 4612Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Iterator) 4630Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Iterator) 4647Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Iterator) 4720Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Async) 4736Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Async) 4752Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Async)
EditAndContinue\StatementMatchingTests.vb (4)
507Dim match = GetMethodMatch(src1, src2, methodKind:=MethodKind.Async) 1260Dim match = GetMethodMatches(src1, src2, kind:=MethodKind.Iterator) 1299Dim match = GetMethodMatches(src1, src2, kind:=MethodKind.Regular) 1405Dim match = GetMethodMatches(src1, src2, kind:=MethodKind.Async)