407 references to Insert
Microsoft.CodeAnalysis (3)
Emit\EditAndContinue\SymbolChanges.cs (1)
372case 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 (131)
Emit\EditAndContinue\AssemblyReferencesTests.cs (1)
347SemanticEdit.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)
62ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, g1))); 241ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, f1))); 8710SemanticEdit.Create(SemanticEditKind.Insert, null, f1))); 8728SemanticEdit.Create(SemanticEditKind.Insert, null, g3))); 8737SemanticEdit.Create(SemanticEditKind.Insert, null, h4))); 8787SemanticEdit.Create(SemanticEditKind.Insert, null, f_int1))); 8792SemanticEdit.Create(SemanticEditKind.Insert, null, f_byte2))); 10768SemanticEdit.Create(SemanticEditKind.Insert, null, ism1), 10953SemanticEdit.Create(SemanticEditKind.Insert, null, asm1),
Emit\EditAndContinue\EditAndContinueTests.cs (111)
3161ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, method1))); 3256SemanticEdit.Create(SemanticEditKind.Insert, null, methodG1))); 3675ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, f1))); 3820SemanticEdit.Create(SemanticEditKind.Insert, null, id1), 3821SemanticEdit.Create(SemanticEditKind.Insert, null, g1))); 3910SemanticEdit.Create(SemanticEditKind.Insert, null, h2))); 4005ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, f3))); 4069SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<FieldSymbol>("C.G")), 4197? ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, r1), SemanticEdit.Create(SemanticEditKind.Insert, null, r1.GetMethod)) 4198: ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, r1))); 4233SemanticEdit.Create(SemanticEditKind.Insert, null, q2), 4234SemanticEdit.Create(SemanticEditKind.Insert, null, q2.GetMethod), 4235SemanticEdit.Create(SemanticEditKind.Insert, null, q2.SetMethod)) 4237SemanticEdit.Create(SemanticEditKind.Insert, null, q2))); 4401Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.P")), 4569Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.P")), 4735Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 4736Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4737Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4890Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 4891Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4892Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4969Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.P")), 5058Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.P")), 5145Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.P")), 5230Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 5231Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5232Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5365Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 5366Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5367Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5472Edit(SemanticEditKind.Insert, c => c.GetMember("C.Q")), 5473Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), // the compiler does not need this edit, but the IDE adds it for simplicity 5474Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_Q")), // the compiler does not need this edit, but the IDE adds it for simplicity 5616Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 5617Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5618Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5841Edit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 5842Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), // the compiler does not need this edit, but the IDE adds it for simplicity 5944Edit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 5945Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), // the compiler does not need this edit, but the IDE adds it for simplicity 6009Edit(SemanticEditKind.Insert, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(p => p.Parameters is [{ Name: "y" }])), 6010Edit(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 6161SemanticEdit.Create(SemanticEditKind.Insert, null, e1))); 6216SemanticEdit.Create(SemanticEditKind.Insert, null, g2))); 6526Edit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 6527Edit(SemanticEditKind.Insert, c => c.GetMember("C.add_F")), // the compiler does not need this edit, but the IDE adds it for simplicity 6528Edit(SemanticEditKind.Insert, c => c.GetMember("C.remove_F")), // the compiler does not need this edit, but the IDE adds it for simplicity 6709Edit(SemanticEditKind.Insert, c => c.GetMember("C.E")), 6710Edit(SemanticEditKind.Insert, c => c.GetMember("C.add_E")), // the compiler does not need this edit, but the IDE adds it for simplicity 6711Edit(SemanticEditKind.Insert, c => c.GetMember("C.remove_E")), // the compiler does not need this edit, but the IDE adds it for simplicity 7562SemanticEdit.Create(SemanticEditKind.Insert, null, c1), 7664SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("A.B3")), 7665SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("A.B4")))); 7725SemanticEdit.Create(SemanticEditKind.Insert, null, c1), 7840SemanticEdit.Create(SemanticEditKind.Insert, null, d1))); 7854SemanticEdit.Create(SemanticEditKind.Insert, null, e2))); 7962ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, method1))); 8152SemanticEdit.Create(SemanticEditKind.Insert, null, x1), 8153SemanticEdit.Create(SemanticEditKind.Insert, null, y1), 8154SemanticEdit.Create(SemanticEditKind.Insert, null, m1), 8155SemanticEdit.Create(SemanticEditKind.Insert, null, n1), 8156SemanticEdit.Create(SemanticEditKind.Insert, null, p1), 8157SemanticEdit.Create(SemanticEditKind.Insert, null, q1), 8158SemanticEdit.Create(SemanticEditKind.Insert, null, e1), 8159SemanticEdit.Create(SemanticEditKind.Insert, null, f1), 8160SemanticEdit.Create(SemanticEditKind.Insert, null, j1), 8161SemanticEdit.Create(SemanticEditKind.Insert, null, cctor1))); 8316SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.M2")), 8317SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<FieldSymbol>("C.F2")), 8318SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<PropertySymbol>("C.P2")), 8319SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<EventSymbol>("C.E2")))); 8442ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.M")))); 8666ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.puts")))); 8722ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("B")))); 8802ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMembers("M.C.M1")[2]))); 9346SemanticEdit.Create(SemanticEditKind.Insert, null, ctor1))); 9963ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, m1, null))); 10298SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("A")), 13413ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.Main"))), 13576SemanticEdit.Create(SemanticEditKind.Insert, null, mA1), 13577SemanticEdit.Create(SemanticEditKind.Insert, null, mX1)), 13586SemanticEdit.Create(SemanticEditKind.Insert, null, compilationB1.GetMember<TypeSymbol>("Y"))), 13719SemanticEdit.Create(SemanticEditKind.Insert, null, f_byte2))); 16494SemanticEdit.Create(SemanticEditKind.Insert, null, g1))); 16701Edit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("R")), 16795Edit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("R")) 16936Edit(SemanticEditKind.Insert, c => c.GetMember("R.Q")), 17414Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("System.Runtime.CompilerServices.HotReloadException")), 17841Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M2")), 18041Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 18192Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 18264Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 18390Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 18555Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.F")), 18710Edit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 19023Edit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 19345Edit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 19522Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M2")), 19545Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 19585Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Boolean)?.ISymbol), 19676Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol), 19749Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_Int32)?.ISymbol), 19844Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_String)?.ISymbol), 19921Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 2)?.ISymbol), 20016Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol), 20188SemanticEdit.Create(SemanticEditKind.Insert, null, c2_gen1, syntaxMap: null))); 20281SemanticEdit.Create(SemanticEditKind.Insert, null, c1_gen1, syntaxMap: null), 20282SemanticEdit.Create(SemanticEditKind.Insert, null, c2_gen1, syntaxMap: null))); 20370SemanticEdit.Create(SemanticEditKind.Insert, null, c2_gen1, syntaxMap: null)));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (260)
EditAndContinue\ActiveStatementTests.cs (1)
3764SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.a")),
EditAndContinue\StatementEditingTests.cs (15)
4773SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 4775SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")) 4870SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 4903SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 4936SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 4969SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 5413SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 5414SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 5649SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 5691SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C") 6928SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 6961SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 6963SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")) 6996SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 6998SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")),
EditAndContinue\TopLevelEditingTests.cs (244)
583[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("N.C.M2"))], 1941[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 1962[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 2084[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 2112[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 2150[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("D"))], 2182[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 2639[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C"), preserveLocalVariables: false)], 2652SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("G"), preserveLocalVariables: false) 3048[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 3061[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 3420SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._y")), 3456SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._y")), 3476SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._y")), 3497SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.E")), 3518SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._z")), 3538SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._z")), 4000SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 4015SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")) 4030SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")) 4064SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 4203SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 5697SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D"))); 5736SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D"), preserveLocalVariables: false) 5858SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D")), 6075semanticEdits: [SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.C.F2").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol)]) 6086SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"), partialType: "C") 6090SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"), partialType: "C") 8510[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("N.C"))], 8527[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("N.M.C"))], 8542[SemanticEdit(SemanticEditKind.Insert, c => c.Assembly.GlobalNamespace.GetMember<INamespaceSymbol>("Microsoft").GetMember<INamespaceSymbol>("CodeAnalysis").GetMember("EmbeddedAttribute"))], 8819SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("M.C"), partialType: "M.C"), 8824SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("M.C"), partialType: "M.C"), 9396SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol) 9415SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Byte))?.ISymbol) 9434SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetArity() == 1)?.ISymbol) 9697SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 9717SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 9740SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 9763SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 9786SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 10246[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.goo"))], 10693SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 10728SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 10767SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.M").PartialImplementationPart, partialType: "C") 10810SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol) 10850SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol) 10886SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 10921SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 11103SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.G")) 11152SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.G")) 11202SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.G")) 12310SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 12333SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 12368SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("Test.M")) 12531semanticEdits: [SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart)]), 12656SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C") 12662SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C") 12969SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.op_Subtraction")) 13230SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()) 13251SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 13274SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C"), partialType: "C") 13291SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.x")), 13292SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_x")), 13293SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_x")), 13295SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13301SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13350SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()), 13366SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13388SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13394SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13428SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13434SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13456SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13461SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13484SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13486SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13503SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13509SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13527SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13533SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13550SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13556SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13572SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13581SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13605SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13630SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13645SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13655SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13673SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13680SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13714SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 13764SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()) 13789SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 13809SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13843SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 13844SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13850SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Z")), 13851SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.U")), 13853SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13922SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()) 13941SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 13942SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13948SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13963SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 13970SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13986SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 13993SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 14008SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 14009SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 14016SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 14031SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 14032SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 14039SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 14052SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 14053SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 14060SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 14095SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 14183SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 14222SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 14238SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 14240SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Deconstruct")), 14564SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 14617SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 15084SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X" }])) 15099SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X" }])) 15131SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X"}])), 15147SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 15163SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 15164SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 15165SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 15185SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 15186SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 15187SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 15295SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(m => m.Parameters.Length == 1), partialType: "C") 15302SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(m => m.Parameters.Length == 2), partialType: "C") 15377[SemanticEdit(SemanticEditKind.Insert, c => c.GetParameterlessConstructor("C"))], 15393[SemanticEdit(SemanticEditKind.Insert, c => c.GetParameterlessConstructor("C"))], 15414SemanticEdit(SemanticEditKind.Insert, c => c.GetParameterlessConstructor("C"), partialType: "C") 15440SemanticEdit(SemanticEditKind.Insert, c => c.GetParameterlessConstructor("C")) 16422SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").Constructors.Single(c => c.Parameters.Single().Type.Name == "Byte"), partialType: "C"), 16685[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())], 17431[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())], 17449[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())], 18832SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.B")), 18833SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_B")), 19255SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.a")), 19331SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.b")), 19332SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.c")), 19333SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.d")), 19461SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.B")), 19505SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.B")), 19660SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.B")), 19661SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").Constructors.Single()), 19942SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 19943SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")), 20038SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_P"), preserveLocalVariables: false) 20351SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 20352SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")) 20397SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 20398SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Q")), 20399SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")), 20417SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 20418SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Q")), 20419SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")), 20435SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 20452SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 20453SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")) 20763SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 20764SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), 20765SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), 20805SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), 20807SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), 20808SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 20915[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 20928[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 21078[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 21097[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 21116[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 21135[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 21154[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 21181[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 21204[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 21231[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 21642SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("Test.P")), 21643SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("Test.get_P")), 21859SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D")), 21860SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_D")), 21861SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_D")), 21901SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D")), 21902SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_D")), 21903SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_D")), 21974semanticEdits: [SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart)]), 22112SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_P").PartialImplementationPart, partialType: "C"), 22113SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart, partialType: "C"), 22120SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_P").PartialImplementationPart, partialType: "C"), 22121SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart, partialType: "C"), 22458SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")) 22626SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 22627SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 22628SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")), 22649SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 22650SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 22703SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 22704SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 22705SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")), 22728SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"), 22729SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"), 22730SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"), 22738SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"), 22739SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"), 22740SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"), 22813SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 22814SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 22815SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")), 22846SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"), 22847SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"), 22848SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"), 22873SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 22874SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 22875SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")), 22992[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember<IPropertySymbol>("this[]").SetMethod)], 23130SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 23131SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")) 23169SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 23170SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 23416SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("E")) 23903SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 23904SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.add_F")), 23905SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.remove_F")), 23940SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.add_E")), 23941SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.remove_E")), 24214SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol) 24233SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 2)?.ISymbol) 24252SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 24270SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 0)?.ISymbol) 24289SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol) 24374SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 24457SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 24752SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")), 24775SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")), 24798SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")), 24821SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")), 25502[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("Program.<Main>$"))],
Microsoft.CodeAnalysis.Features (10)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (5)
3062editKind = SemanticEditKind.Insert; 3198Contract.ThrowIfFalse(editKind == SemanticEditKind.Insert); 3345Contract.ThrowIfFalse(editKind is SemanticEditKind.Update or SemanticEditKind.Insert); 3491SemanticEditKind.Insert => SemanticEditInfo.CreateInsert(symbolKey, partialType), 3958/// Add <see cref="SemanticEditKind.Insert"/> edit for the specified symbol and its accessors.
EditAndContinue\EditSession.cs (2)
849if (edit.Kind == SemanticEditKind.Insert) 981if (edit.Kind is SemanticEditKind.Update or SemanticEditKind.Insert or SemanticEditKind.Replace)
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)
407case 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));