25 references to MethodKind
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (25)
EditAndContinue\Helpers\EditingTestBase.vb (13)
219Friend Shared Function GetMethodEdits(src1 As String, src2 As String, Optional methodKind As MethodKind = MethodKind.Regular) As EditScriptDescription 224Friend Shared Function GetMethodMatch(src1 As String, src2 As String, Optional methodKind As MethodKind = MethodKind.Regular) As Match(Of SyntaxNode) 234Assert.Equal(methodKind <> MethodKind.Regular, needsSyntaxMap) 241Optional kind As MethodKind = MethodKind.Regular) As IEnumerable(Of KeyValuePair(Of SyntaxNode, SyntaxNode)) 255Friend Shared Function MakeMethodBody(bodySource As String, Optional stateMachine As MethodKind = MethodKind.Regular) As MemberBody 266Private Shared Function WrapMethodBodyWithClass(bodySource As String, Optional kind As MethodKind = MethodKind.Regular) As String 268Case MethodKind.Iterator 271Case MethodKind.Async
EditAndContinue\StatementEditingTests.vb (7)
5394Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Iterator) 5412Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Iterator) 5430Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Iterator) 5447Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Iterator) 5520Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Async) 5536Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Async) 5552Dim edits = GetMethodEdits(src1, src2, methodKind:=MethodKind.Async)
EditAndContinue\StatementMatchingTests.vb (5)
503Dim match = GetMethodMatch(src1, src2, methodKind:=MethodKind.Async) 1322Dim match = GetMethodMatches(src1, src2, kind:=MethodKind.Iterator) 1361Dim match = GetMethodMatches(src1, src2, kind:=MethodKind.Regular) 1469Dim match = GetMethodMatches(src1, src2, kind:=MethodKind.Async) 1506Dim match = GetMethodMatches(src1, src2, kind:=MethodKind.Regular)