542 references to Insert
Microsoft.CodeAnalysis (3)
Emit\EditAndContinue\SymbolChanges.cs (1)
371case SemanticEditKind.Insert:
Emit\SemanticEdit.cs (2)
99/// <paramref name="oldSymbol"/> or <paramref name="newSymbol"/> is null and the edit isn't a <see cref="SemanticEditKind.Insert"/> or <see cref="SemanticEditKind.Delete"/>, respectively. 111if (oldSymbol == null && kind is not (SemanticEditKind.Insert or SemanticEditKind.Replace))
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (128)
Emit\EditAndContinue\AssemblyReferencesTests.cs (1)
339SemanticEdit.Create(SemanticEditKind.Insert, null, g2)));
Emit\EditAndContinue\EditAndContinueClosureTests.cs (9)
2482SemanticEdit.Create(SemanticEditKind.Insert, null, f_int1))); 2498SemanticEdit.Create(SemanticEditKind.Insert, null, f_byte2))); 2599SemanticEdit.Create(SemanticEditKind.Insert, null, f_int1))); 2615SemanticEdit.Create(SemanticEditKind.Insert, null, f_byte2))); 2732SemanticEdit.Create(SemanticEditKind.Insert, null, f1), 2743SemanticEdit.Create(SemanticEditKind.Insert, null, f_int2), 3101SemanticEdit.Create(SemanticEditKind.Insert, null, b1), 3196SemanticEdit.Create(SemanticEditKind.Insert, null, b1), 3197SemanticEdit.Create(SemanticEditKind.Insert, null, ctor1, GetSyntaxMapFromMarkers(source0, source1))));
Emit\EditAndContinue\EditAndContinuePdbTests.cs (1)
274SemanticEdit.Create(SemanticEditKind.Insert, null, b2)));
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (9)
61ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, g1))); 240ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, f1))); 8708SemanticEdit.Create(SemanticEditKind.Insert, null, f1))); 8726SemanticEdit.Create(SemanticEditKind.Insert, null, g3))); 8735SemanticEdit.Create(SemanticEditKind.Insert, null, h4))); 8785SemanticEdit.Create(SemanticEditKind.Insert, null, f_int1))); 8790SemanticEdit.Create(SemanticEditKind.Insert, null, f_byte2))); 10766SemanticEdit.Create(SemanticEditKind.Insert, null, ism1), 10951SemanticEdit.Create(SemanticEditKind.Insert, null, asm1),
Emit\EditAndContinue\EditAndContinueTests.cs (108)
2916ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, method1))); 3011SemanticEdit.Create(SemanticEditKind.Insert, null, methodG1))); 3454ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, f1))); 3599SemanticEdit.Create(SemanticEditKind.Insert, null, id1), 3600SemanticEdit.Create(SemanticEditKind.Insert, null, g1))); 3689SemanticEdit.Create(SemanticEditKind.Insert, null, h2))); 3784ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, f3))); 3848SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<FieldSymbol>("C.G")), 3976? ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, r1), SemanticEdit.Create(SemanticEditKind.Insert, null, r1.GetMethod)) 3977: ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, r1))); 4012SemanticEdit.Create(SemanticEditKind.Insert, null, q2), 4013SemanticEdit.Create(SemanticEditKind.Insert, null, q2.GetMethod), 4014SemanticEdit.Create(SemanticEditKind.Insert, null, q2.SetMethod)) 4016SemanticEdit.Create(SemanticEditKind.Insert, null, q2))); 4149Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.P")), 4291Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.P")), 4440Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 4441Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4442Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4576Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 4577Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4578Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4656Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 4657Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4658Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4767Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 4768Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4769Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4861Edit(SemanticEditKind.Insert, c => c.GetMember("C.Q")), 4862Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), // the compiler does not need this edit, but the IDE adds it for simplicity 4863Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_Q")), // the compiler does not need this edit, but the IDE adds it for simplicity 4969Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 4970Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4971Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5145Edit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 5146Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), // the compiler does not need this edit, but the IDE adds it for simplicity 5230Edit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 5231Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), // the compiler does not need this edit, but the IDE adds it for simplicity 5290Edit(SemanticEditKind.Insert, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(p => p.Parameters is [{ Name: "y" }])), 5291Edit(SemanticEditKind.Insert, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(p => p.Parameters is [{ Name: "y" }]).GetMethod), // the compiler does not need this edit, but the IDE adds it for simplicity 5438SemanticEdit.Create(SemanticEditKind.Insert, null, e1))); 5493SemanticEdit.Create(SemanticEditKind.Insert, null, g2))); 5654Edit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 5655Edit(SemanticEditKind.Insert, c => c.GetMember("C.add_F")), // the compiler does not need this edit, but the IDE adds it for simplicity 5656Edit(SemanticEditKind.Insert, c => c.GetMember("C.remove_F")), // the compiler does not need this edit, but the IDE adds it for simplicity 5799Edit(SemanticEditKind.Insert, c => c.GetMember("C.E")), 5800Edit(SemanticEditKind.Insert, c => c.GetMember("C.add_E")), // the compiler does not need this edit, but the IDE adds it for simplicity 5801Edit(SemanticEditKind.Insert, c => c.GetMember("C.remove_E")), // the compiler does not need this edit, but the IDE adds it for simplicity 6629SemanticEdit.Create(SemanticEditKind.Insert, null, c1), 6731SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("A.B3")), 6732SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("A.B4")))); 6792SemanticEdit.Create(SemanticEditKind.Insert, null, c1), 6907SemanticEdit.Create(SemanticEditKind.Insert, null, d1))); 6921SemanticEdit.Create(SemanticEditKind.Insert, null, e2))); 7029ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, method1))); 7219SemanticEdit.Create(SemanticEditKind.Insert, null, x1), 7220SemanticEdit.Create(SemanticEditKind.Insert, null, y1), 7221SemanticEdit.Create(SemanticEditKind.Insert, null, m1), 7222SemanticEdit.Create(SemanticEditKind.Insert, null, n1), 7223SemanticEdit.Create(SemanticEditKind.Insert, null, p1), 7224SemanticEdit.Create(SemanticEditKind.Insert, null, q1), 7225SemanticEdit.Create(SemanticEditKind.Insert, null, e1), 7226SemanticEdit.Create(SemanticEditKind.Insert, null, f1), 7227SemanticEdit.Create(SemanticEditKind.Insert, null, j1), 7228SemanticEdit.Create(SemanticEditKind.Insert, null, cctor1))); 7383SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.M2")), 7384SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<FieldSymbol>("C.F2")), 7385SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<PropertySymbol>("C.P2")), 7386SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<EventSymbol>("C.E2")))); 7526ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.M")))); 7750ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.puts")))); 7806ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("B")))); 7886ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMembers("M.C.M1")[2]))); 8430SemanticEdit.Create(SemanticEditKind.Insert, null, ctor1))); 9047ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, m1, null))); 9382SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("A")), 12413ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.Main"))), 12576SemanticEdit.Create(SemanticEditKind.Insert, null, mA1), 12577SemanticEdit.Create(SemanticEditKind.Insert, null, mX1)), 12586SemanticEdit.Create(SemanticEditKind.Insert, null, compilationB1.GetMember<TypeSymbol>("Y"))), 12719SemanticEdit.Create(SemanticEditKind.Insert, null, f_byte2))); 15494SemanticEdit.Create(SemanticEditKind.Insert, null, g1))); 15701Edit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("R")), 15792Edit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("R")) 15929Edit(SemanticEditKind.Insert, c => c.GetMember("R.Q")), 16340Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("System.Runtime.CompilerServices.HotReloadException")), 16571Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M2")), 16748Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 16883Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 16957Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 17069Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 17216Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.F")), 17366Edit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 17647Edit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 17928Edit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 18087Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M2")), 18110Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 18150Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Boolean)?.ISymbol), 18225Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol), 18296Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_Int32)?.ISymbol), 18375Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_String)?.ISymbol), 18449Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 2)?.ISymbol), 18528Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol), 18698SemanticEdit.Create(SemanticEditKind.Insert, null, c2_gen1, syntaxMap: null))); 18791SemanticEdit.Create(SemanticEditKind.Insert, null, c1_gen1, syntaxMap: null), 18792SemanticEdit.Create(SemanticEditKind.Insert, null, c2_gen1, syntaxMap: null))); 18880SemanticEdit.Create(SemanticEditKind.Insert, null, c2_gen1, syntaxMap: null)));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (254)
EditAndContinue\ActiveStatementTests.cs (1)
3204SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.a")),
EditAndContinue\StatementEditingTests.cs (15)
4423SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 4425SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")) 4508SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 4537SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 4566SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 4595SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 5003SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 5004SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 5211SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 5249SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C") 6382SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 6411SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 6413SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")) 6442SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 6444SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")),
EditAndContinue\TopLevelEditingTests.cs (238)
507[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("N.C.M2"))], 1872[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 1994[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 2022[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 2060[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("D"))], 2092[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 2540[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C"), preserveLocalVariables: false)], 2560SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("G"), preserveLocalVariables: false) 2962[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 2975[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 3322SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._y")), 3354SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._y")), 3374SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._y")), 3395SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.E")), 3416SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._z")), 3436SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._z")), 3903SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 3918SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")) 3933SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")) 3963SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 4098SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 5617SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D"))); 5652SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D"), preserveLocalVariables: false) 5766SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D")), 6014semanticEdits: [SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.C.F2").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol)]) 6033SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"), partialType: "C") 6037SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"), partialType: "C") 6438[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("N.C"))], 6455[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("N.M.C"))], 6733SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("M.C"), partialType: "M.C"), 6738SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("M.C"), partialType: "M.C"), 7405SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol) 7431SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Byte))?.ISymbol) 7457SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetArity() == 1)?.ISymbol) 7697SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 7717SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 7740SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 7763SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 7786SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 8198[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.goo"))], 8613SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 8644SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 8679SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.M").PartialImplementationPart, partialType: "C") 8718SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol) 8754SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol) 8786SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 8817SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 8929SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.G")) 8974SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.G")) 9020SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.G")) 10048SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 10071SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 10106SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("Test.M")) 10318semanticEdits: [SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart)]), 10464SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C") 10470SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C") 10753SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.op_Subtraction")) 11006SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()) 11027SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 11057SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C"), partialType: "C") 11075SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.x")), 11076SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_x")), 11077SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_x")), 11079SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11085SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11134SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()), 11150SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11172SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11178SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11208SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11214SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11236SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11241SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11264SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11266SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11283SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11289SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11307SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11313SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11330SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11336SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11352SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11361SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11385SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11410SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11425SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11435SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11453SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11460SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11490SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 11536SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()) 11561SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 11581SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11615SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 11616SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11622SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Z")), 11623SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.U")), 11625SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11686SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()) 11705SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 11706SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11712SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11727SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 11734SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11750SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 11757SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11772SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11773SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 11780SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11795SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 11796SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11803SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11823SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 11824SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 11831SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11867SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 11947SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 11986SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 12002SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 12004SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Deconstruct")), 12339SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 12408SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 12840SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X" }])) 12855SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X" }])) 12887SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X"}])), 12903SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 12919SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 12920SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 12921SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 12941SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 12942SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 12943SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13058SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(m => m.Parameters.Length == 1), partialType: "C") 13065SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(m => m.Parameters.Length == 2), partialType: "C") 13149[SemanticEdit(SemanticEditKind.Insert, c => c.GetParameterlessConstructor("C"))], 13165[SemanticEdit(SemanticEditKind.Insert, c => c.GetParameterlessConstructor("C"))], 13186SemanticEdit(SemanticEditKind.Insert, c => c.GetParameterlessConstructor("C"), partialType: "C") 13212SemanticEdit(SemanticEditKind.Insert, c => c.GetParameterlessConstructor("C")) 14245SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").Constructors.Single(c => c.Parameters.Single().Type.Name == "Byte"), partialType: "C"), 14450[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())], 15155[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())]); 15172[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())], 16482SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.B")), 16483SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_B")), 16892SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.a")), 16960SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.b")), 16961SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.c")), 16962SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.d")), 17078SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.B")), 17118SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.B")), 17261SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.B")), 17262SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").Constructors.Single()), 17539SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 17540SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")), 17614SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_P"), preserveLocalVariables: false) 17809SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 17810SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")) 17855SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 17856SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Q")), 17857SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")), 17875SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 17876SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Q")), 17877SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")), 17893SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 17910SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 17911SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")) 18221SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 18222SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), 18223SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), 18263SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), 18265SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), 18266SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 18373[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 18386[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 18526[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 18539[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 18552[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 18573[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 18952SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("Test.P")), 18953SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("Test.get_P")), 19187SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D")), 19188SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_D")), 19189SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_D")), 19225SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D")), 19226SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_D")), 19227SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_D")), 19358semanticEdits: [SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart)]), 19517SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_P").PartialImplementationPart, partialType: "C"), 19518SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart, partialType: "C"), 19525SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_P").PartialImplementationPart, partialType: "C"), 19526SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart, partialType: "C"), 19863SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")) 20031SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 20032SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 20033SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")), 20054SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 20055SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 20108SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 20109SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 20110SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")), 20133SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"), 20134SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"), 20135SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"), 20143SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"), 20144SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"), 20145SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"), 20218SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 20219SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 20220SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")), 20251SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"), 20252SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"), 20253SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"), 20278SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 20279SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 20280SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")), 20381[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember<IPropertySymbol>("this[]").SetMethod)], 20507SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 20508SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")) 20546SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 20547SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 20802SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("E")) 21249SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 21250SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.add_F")), 21251SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.remove_F")), 21286SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.add_E")), 21287SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.remove_E")), 21568SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol) 21587SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 2)?.ISymbol) 21606SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 21624SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 0)?.ISymbol) 21643SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol) 21728SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 21811SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 22110SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")), 22133SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")), 22156SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")), 22179SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")), 22848[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("Program.<Main>$"))],
Microsoft.CodeAnalysis.Features (10)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (5)
2850editKind = SemanticEditKind.Insert; 2974Contract.ThrowIfFalse(editKind == SemanticEditKind.Insert); 3123Contract.ThrowIfFalse(editKind is SemanticEditKind.Update or SemanticEditKind.Insert); 3262SemanticEditKind.Insert => SemanticEditInfo.CreateInsert(symbolKey, partialType), 3737/// Add <see cref="SemanticEditKind.Insert"/> edit for the specified symbol and its accessors.
EditAndContinue\EditSession.cs (2)
696if (edit.Kind is SemanticEditKind.Update or SemanticEditKind.Insert or SemanticEditKind.Replace) 723if (edit.Kind == SemanticEditKind.Insert)
EditAndContinue\SemanticEditInfo.cs (3)
59=> new(SemanticEditKind.Insert, symbol, syntaxMaps: default, partialType, deletedSymbolContainer: null); 92/// <see cref="SemanticEditKind.Insert"/> or <see cref="SemanticEditKind.Update"/> or <see cref="SemanticEditKind.Delete"/>. 97/// If <see cref="Kind"/> is <see cref="SemanticEditKind.Insert"/> represents the inserted symbol in the new compilation.
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
352case SemanticEditKind.Insert or SemanticEditKind.Replace:
Microsoft.CodeAnalysis.UnitTests (2)
Emit\SemanticEditTests.cs (2)
35Assert.Throws<ArgumentNullException>("newSymbol", () => new SemanticEdit(SemanticEditKind.Insert, oldSymbol: type, newSymbol: null)); 40Assert.Throws<ArgumentOutOfRangeException>("kind", () => new SemanticEdit(SemanticEditKind.Insert, oldSymbol: method, newSymbol: method, instrumentation: instrumentation));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (43)
Emit\EditAndContinue\AssemblyReferencesTests.vb (1)
192New SemanticEdit(SemanticEditKind.Insert, Nothing, g2)))
Emit\EditAndContinue\EditAndContinueClosureTests.vb (5)
1477ImmutableArray.Create(New SemanticEdit(SemanticEditKind.Insert, Nothing, f_int1))) 1492ImmutableArray.Create(New SemanticEdit(SemanticEditKind.Insert, Nothing, f_byte2))) 1674New SemanticEdit(SemanticEditKind.Insert, Nothing, b1), 1773New SemanticEdit(SemanticEditKind.Insert, Nothing, b1), 1774New SemanticEdit(SemanticEditKind.Insert, Nothing, ctor1)))
Emit\EditAndContinue\EditAndContinuePdbTests.vb (1)
257New SemanticEdit(SemanticEditKind.Insert, Nothing, b2)))
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (6)
60ImmutableArray.Create(New SemanticEdit(SemanticEditKind.Insert, Nothing, compilation1.GetMember(Of MethodSymbol)("C.G")))) 411ImmutableArray.Create(New SemanticEdit(SemanticEditKind.Insert, Nothing, compilation1.GetMember(Of MethodSymbol)("C.F")))) 8060New SemanticEdit(SemanticEditKind.Insert, Nothing, f1))) 8078New SemanticEdit(SemanticEditKind.Insert, Nothing, g3))) 8087New SemanticEdit(SemanticEditKind.Insert, Nothing, h4))) 8980New SemanticEdit(SemanticEditKind.Insert, Nothing, ism1),
Emit\EditAndContinue\EditAndContinueTests.vb (30)
442ImmutableArray.Create(New SemanticEdit(SemanticEditKind.Insert, Nothing, type1))) 508ImmutableArray.Create(New SemanticEdit(SemanticEditKind.Insert, Nothing, type3))) 650ImmutableArray.Create(New SemanticEdit(SemanticEditKind.Insert, Nothing, compilation1.GetMembers("M.C.M1")(2)), 774ImmutableArray.Create(New SemanticEdit(SemanticEditKind.Insert, Nothing, compilation1.GetMember("M.G")))) 1072SemanticEdit.Create(SemanticEditKind.Insert, Nothing, d1))) 1087SemanticEdit.Create(SemanticEditKind.Insert, Nothing, e2))) 1517Edit(SemanticEditKind.Insert, symbolProvider:=Function(c) c.GetMember("C.E")) 1614Edit(SemanticEditKind.Insert, symbolProvider:=Function(c) c.GetMember("C.add_E")), 1615Edit(SemanticEditKind.Insert, symbolProvider:=Function(c) c.GetMember("C.remove_E")) 1711Edit(SemanticEditKind.Insert, symbolProvider:=Function(c) c.GetMember("C.add_E")), 1712Edit(SemanticEditKind.Insert, symbolProvider:=Function(c) c.GetMember("C.remove_E")) 2174ImmutableArray.Create(New SemanticEdit(SemanticEditKind.Insert, Nothing, method1))) 2298Edit(SemanticEditKind.Insert, Function(c) c.GetMember("C.P")), 2299Edit(SemanticEditKind.Insert, Function(c) c.GetMember("C.get_P")), 2300Edit(SemanticEditKind.Insert, Function(c) c.GetMember("C.set_P")) 2403Edit(SemanticEditKind.Insert, Function(c) c.GetMember("C.P")), 2404Edit(SemanticEditKind.Insert, Function(c) c.GetMember("C.get_P")), 2405Edit(SemanticEditKind.Insert, Function(c) c.GetMember("C.set_P")) 2562Edit(SemanticEditKind.Insert, symbolProvider:=Function(c) c.GetMember("C.get_P")) 2689Edit(SemanticEditKind.Insert, symbolProvider:=Function(c) c.GetMember("C.get_P")) 3132ImmutableArray.Create(New SemanticEdit(SemanticEditKind.Insert, Nothing, method1, Nothing))) 6130Edit(SemanticEditKind.Insert, Function(c) c.GetMember("C.F")) 6285Edit(SemanticEditKind.Insert, Function(c) c.GetMember("C.F")) 6521Edit(SemanticEditKind.Insert, Function(c) c.GetMember("C.F")) 6669ImmutableArray.Create(New SemanticEdit(SemanticEditKind.Insert, Nothing, compilation1.GetMember(Of MethodSymbol)("C.Main"))), 6784New SemanticEdit(SemanticEditKind.Insert, Nothing, mA1), 6785New SemanticEdit(SemanticEditKind.Insert, Nothing, mX1)), 6794New SemanticEdit(SemanticEditKind.Insert, Nothing, compilationB1.GetMember(Of TypeSymbol)("Y"))), 7223ImmutableArray.Create(New SemanticEdit(SemanticEditKind.Insert, Nothing, g1))) 7364Edit(SemanticEditKind.Insert, Function(c) c.GetMember("System.Runtime.CompilerServices.HotReloadException")),
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (101)
EditAndContinue\StatementEditingTests.vb (11)
2226SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.get_Item")), 2228SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.Item")) 2378SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.F")) 2405SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.F")) 2433SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.F")) 2461SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.F")) 2816SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.Item")), 2817SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.get_Item")) 3093SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.F")) 3132SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of MethodSymbol)("C.F").PartialImplementationPart, partialType:="C") 3861SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.F"))
EditAndContinue\TopLevelEditingTests.vb (90)
831semanticEdits:={SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C"))}, 852semanticEdits:={SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C"))}, 867semanticEdits:={SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C"))}, 1149semanticEdits:={SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C"))}, 1596{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C"), preserveLocalVariables:=False)}, 1627SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("G"), preserveLocalVariables:=False) 2862semanticEdits:={SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.D"))}) 2883{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.D"), preserveLocalVariables:=False)}) 2893{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.D"), preserveLocalVariables:=False)}) 3060SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.D")), 3252SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("S").GetMember(Of NamedTypeSymbol)("C").GetMembers("F2").FirstOrDefault(Function(m) m.GetParameters().Any(Function(p) p.Type.SpecialType = SpecialType.System_Int32))) 3522semanticEdits:={SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("N.C"))}, 3537semanticEdits:={SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("N.M.C"))}, 3770SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("M.C"), partialType:="M.C") 3775SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("M.C"), partialType:="M.C") 4618SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMembers("S.F").FirstOrDefault(Function(m) m.GetParameters().Length = 1)) 4657SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMembers("S.F").FirstOrDefault(Function(m) m.GetParameters().Any(Function(p) p.Type.SpecialType = SpecialType.System_Byte))) 4696SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMembers("S.F").FirstOrDefault(Function(m) m.GetArity() = 1)) 4982{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.F"))}, 5001{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("F"))}, 5017{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("F"))}, 5220SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.D.f")), 5240SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.Bar")) 5277SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.G")) 5319SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.G")) 6083semanticEdits:={SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember(Of MethodSymbol)("F").PartialImplementationPart)}) 6364SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMembers("C..ctor").FirstOrDefault(Function(m) m.GetParameters().Length = 2)) 6469{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())}, 6481{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())}, 6523SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").InstanceConstructors.Single(Function(m) m.Parameters.IsEmpty)) 6541semanticEdits:={SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").InstanceConstructors.Single(Function(m) m.Parameters.IsEmpty), partialType:="C")}), 6579{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C"). 7163SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").Constructors.Single(Function(m) m.Parameters.Single().Type.Name = "Byte"), partialType:="C") 8171{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.b")), 8172SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.c")), 8173SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.d"))}, 8342{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.B")), 8383{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.B")), 8525SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.B")), 8526SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").Constructors.Single()), 8764SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.P")), 8765SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.get_P")), 8766SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.set_P")) 8789semanticEdits:={SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("P"))}, 8806semanticEdits:={SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("P"))}, 8946SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.Q")), 8947SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.get_Q")) 8966SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.Q")), 8967SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.get_Q")) 9701{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())}) 9711{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())}) 9721{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())}) 9731{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())}) 9742{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())}, 9754{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())}, 9766{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())}, 9778{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())}, 9978SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("a")), 9999SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("a")), 10017{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.b")), 10034{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.b")), 10137{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.a")), 10153{SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.a")), 11196SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.add_F")), 11197SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.remove_F")), 11198SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.raise_F")), 11199SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.F")) 11248SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.add_E")), 11249SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.remove_E")), 11285semanticEdits:={SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("E"))}, 11373SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.E")) 11393SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.E")) 11631SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.get_P")), 11632SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.P")) 11652SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.get_P")), 11653SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.P")) 11673SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.get_P")), 11674SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.P")) 11719SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.M")) 11739SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.M")) 11771SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.M")) 11790SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.M")) 11814SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.M")) 11850SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.M")) 11903SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("M.F")) 12123SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.M")) 12150SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.M")) 12173SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.M")) 12196SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.M")) 12219SemanticEdit(SemanticEditKind.Insert, Function(c) c.GetMember("C.M"))