406 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)
3110ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, method1))); 3205SemanticEdit.Create(SemanticEditKind.Insert, null, methodG1))); 3624ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, f1))); 3769SemanticEdit.Create(SemanticEditKind.Insert, null, id1), 3770SemanticEdit.Create(SemanticEditKind.Insert, null, g1))); 3859SemanticEdit.Create(SemanticEditKind.Insert, null, h2))); 3954ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, f3))); 4018SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<FieldSymbol>("C.G")), 4146? ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, r1), SemanticEdit.Create(SemanticEditKind.Insert, null, r1.GetMethod)) 4147: ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, r1))); 4182SemanticEdit.Create(SemanticEditKind.Insert, null, q2), 4183SemanticEdit.Create(SemanticEditKind.Insert, null, q2.GetMethod), 4184SemanticEdit.Create(SemanticEditKind.Insert, null, q2.SetMethod)) 4186SemanticEdit.Create(SemanticEditKind.Insert, null, q2))); 4336Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.P")), 4491Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.P")), 4643Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 4644Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4645Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4783Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 4784Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4785Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 4862Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.P")), 4951Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.P")), 5038Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.P")), 5123Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 5124Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5125Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5244Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 5245Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5246Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5351Edit(SemanticEditKind.Insert, c => c.GetMember("C.Q")), 5352Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), // the compiler does not need this edit, but the IDE adds it for simplicity 5353Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_Q")), // the compiler does not need this edit, but the IDE adds it for simplicity 5482Edit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 5483Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5484Edit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity 5694Edit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 5695Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), // the compiler does not need this edit, but the IDE adds it for simplicity 5784Edit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 5785Edit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), // the compiler does not need this edit, but the IDE adds it for simplicity 5848Edit(SemanticEditKind.Insert, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(p => p.Parameters is [{ Name: "y" }])), 5849Edit(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 5999SemanticEdit.Create(SemanticEditKind.Insert, null, e1))); 6054SemanticEdit.Create(SemanticEditKind.Insert, null, g2))); 6338Edit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 6339Edit(SemanticEditKind.Insert, c => c.GetMember("C.add_F")), // the compiler does not need this edit, but the IDE adds it for simplicity 6340Edit(SemanticEditKind.Insert, c => c.GetMember("C.remove_F")), // the compiler does not need this edit, but the IDE adds it for simplicity 6508Edit(SemanticEditKind.Insert, c => c.GetMember("C.E")), 6509Edit(SemanticEditKind.Insert, c => c.GetMember("C.add_E")), // the compiler does not need this edit, but the IDE adds it for simplicity 6510Edit(SemanticEditKind.Insert, c => c.GetMember("C.remove_E")), // the compiler does not need this edit, but the IDE adds it for simplicity 7361SemanticEdit.Create(SemanticEditKind.Insert, null, c1), 7463SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("A.B3")), 7464SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("A.B4")))); 7524SemanticEdit.Create(SemanticEditKind.Insert, null, c1), 7639SemanticEdit.Create(SemanticEditKind.Insert, null, d1))); 7653SemanticEdit.Create(SemanticEditKind.Insert, null, e2))); 7761ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, method1))); 7951SemanticEdit.Create(SemanticEditKind.Insert, null, x1), 7952SemanticEdit.Create(SemanticEditKind.Insert, null, y1), 7953SemanticEdit.Create(SemanticEditKind.Insert, null, m1), 7954SemanticEdit.Create(SemanticEditKind.Insert, null, n1), 7955SemanticEdit.Create(SemanticEditKind.Insert, null, p1), 7956SemanticEdit.Create(SemanticEditKind.Insert, null, q1), 7957SemanticEdit.Create(SemanticEditKind.Insert, null, e1), 7958SemanticEdit.Create(SemanticEditKind.Insert, null, f1), 7959SemanticEdit.Create(SemanticEditKind.Insert, null, j1), 7960SemanticEdit.Create(SemanticEditKind.Insert, null, cctor1))); 8115SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.M2")), 8116SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<FieldSymbol>("C.F2")), 8117SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<PropertySymbol>("C.P2")), 8118SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<EventSymbol>("C.E2")))); 8241ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.M")))); 8465ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.puts")))); 8521ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("B")))); 8601ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMembers("M.C.M1")[2]))); 9145SemanticEdit.Create(SemanticEditKind.Insert, null, ctor1))); 9762ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, m1, null))); 10097SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<NamedTypeSymbol>("A")), 13199ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Insert, null, compilation1.GetMember<MethodSymbol>("C.Main"))), 13362SemanticEdit.Create(SemanticEditKind.Insert, null, mA1), 13363SemanticEdit.Create(SemanticEditKind.Insert, null, mX1)), 13372SemanticEdit.Create(SemanticEditKind.Insert, null, compilationB1.GetMember<TypeSymbol>("Y"))), 13505SemanticEdit.Create(SemanticEditKind.Insert, null, f_byte2))); 16280SemanticEdit.Create(SemanticEditKind.Insert, null, g1))); 16487Edit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("R")), 16578Edit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("R")) 16719Edit(SemanticEditKind.Insert, c => c.GetMember("R.Q")), 17136Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("System.Runtime.CompilerServices.HotReloadException")), 17448Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M2")), 17622Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 17760Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 17832Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 17945Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 18097Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.F")), 18252Edit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 18539Edit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 18848Edit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 19025Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M2")), 19048Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMember("C.M1")), 19088Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Boolean)?.ISymbol), 19166Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol), 19239Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_Int32)?.ISymbol), 19321Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_String)?.ISymbol), 19397Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 2)?.ISymbol), 19479Edit(SemanticEditKind.Insert, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol), 19651SemanticEdit.Create(SemanticEditKind.Insert, null, c2_gen1, syntaxMap: null))); 19744SemanticEdit.Create(SemanticEditKind.Insert, null, c1_gen1, syntaxMap: null), 19745SemanticEdit.Create(SemanticEditKind.Insert, null, c2_gen1, syntaxMap: null))); 19833SemanticEdit.Create(SemanticEditKind.Insert, null, c2_gen1, syntaxMap: null)));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (259)
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 (243)
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) 3044[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 3057[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"))], 3416SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._y")), 3452SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._y")), 3472SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._y")), 3493SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.E")), 3514SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._z")), 3534SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C._z")), 3996SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 4011SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")) 4026SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")) 4060SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 4199SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 5695SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D"))); 5734SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D"), preserveLocalVariables: false) 5856SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D")), 6043semanticEdits: [SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.C.F2").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol)]) 6054SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"), partialType: "C") 6058SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C"), partialType: "C") 8478[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("N.C"))], 8495[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("N.M.C"))], 8767SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("M.C"), partialType: "M.C"), 8772SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("M.C"), partialType: "M.C"), 9339SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol) 9358SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Byte))?.ISymbol) 9377SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetArity() == 1)?.ISymbol) 9640SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 9660SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 9683SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 9706SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 9729SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 10189[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.goo"))], 10636SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 10671SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 10710SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.M").PartialImplementationPart, partialType: "C") 10753SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol) 10793SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol) 10829SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 10864SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 11046SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.G")) 11095SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.G")) 11145SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.G")) 12253SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 12276SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 12311SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("Test.M")) 12474semanticEdits: [SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart)]), 12599SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C") 12605SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C") 12912SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.op_Subtraction")) 13173SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()) 13194SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 13217SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C"), partialType: "C") 13234SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.x")), 13235SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_x")), 13236SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_x")), 13238SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13244SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13293SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()), 13309SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13331SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13337SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13371SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13377SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13399SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13404SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13427SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13429SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13446SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13452SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13470SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13476SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13493SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13499SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13515SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13524SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13548SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13573SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13588SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13598SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13616SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13623SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13657SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 13707SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()) 13732SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 13752SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13786SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 13787SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13793SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Z")), 13794SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.U")), 13796SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13865SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()) 13884SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 13885SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13891SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13906SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 13913SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13929SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 13936SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13951SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13952SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 13959SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13974SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 13975SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 13982SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 13995SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Y")), 13996SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 14003SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 14038SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 14126SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 14165SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")) 14181SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 14183SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Deconstruct")), 14507SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 14560SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 15027SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X" }])) 15042SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X" }])) 15074SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X"}])), 15090SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 15106SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 15107SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 15108SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 15128SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 15129SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryConstructor("C")), 15130SemanticEdit(SemanticEditKind.Insert, c => c.GetPrimaryDeconstructor("C")), 15238SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(m => m.Parameters.Length == 1), partialType: "C") 15245SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(m => m.Parameters.Length == 2), partialType: "C") 15320[SemanticEdit(SemanticEditKind.Insert, c => c.GetParameterlessConstructor("C"))], 15336[SemanticEdit(SemanticEditKind.Insert, c => c.GetParameterlessConstructor("C"))], 15357SemanticEdit(SemanticEditKind.Insert, c => c.GetParameterlessConstructor("C"), partialType: "C") 15383SemanticEdit(SemanticEditKind.Insert, c => c.GetParameterlessConstructor("C")) 16365SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").Constructors.Single(c => c.Parameters.Single().Type.Name == "Byte"), partialType: "C"), 16543[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())], 17235[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())], 17253[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())], 18636SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.B")), 18637SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_B")), 19059SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.a")), 19135SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.b")), 19136SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.c")), 19137SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.d")), 19265SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.B")), 19309SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.B")), 19464SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.B")), 19465SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").Constructors.Single()), 19746SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 19747SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")), 19842SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_P"), preserveLocalVariables: false) 20155SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 20156SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")) 20201SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 20202SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Q")), 20203SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")), 20221SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 20222SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Q")), 20223SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")), 20239SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 20256SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Q")), 20257SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.Q")) 20567SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 20568SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), 20569SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), 20609SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_P")), 20611SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_P")), 20612SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.P")), 20719[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 20732[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 20882[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 20901[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 20920[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 20939[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 20958[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 20985[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 21008[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 21035[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))], 21446SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("Test.P")), 21447SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("Test.get_P")), 21663SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D")), 21664SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_D")), 21665SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_D")), 21705SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.D")), 21706SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_D")), 21707SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_D")), 21778semanticEdits: [SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart)]), 21916SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_P").PartialImplementationPart, partialType: "C"), 21917SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart, partialType: "C"), 21924SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_P").PartialImplementationPart, partialType: "C"), 21925SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart, partialType: "C"), 22262SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")) 22430SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 22431SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 22432SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")), 22453SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 22454SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 22507SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 22508SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 22509SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")), 22532SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"), 22533SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"), 22534SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"), 22542SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"), 22543SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"), 22544SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"), 22617SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 22618SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 22619SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")), 22650SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"), 22651SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"), 22652SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"), 22677SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 22678SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 22679SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.set_Item")), 22796[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember<IPropertySymbol>("this[]").SetMethod)], 22934SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 22935SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")) 22973SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.this[]")), 22974SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.get_Item")), 23220SemanticEdit(SemanticEditKind.Insert, c => c.GetMember<INamedTypeSymbol>("C").GetMember("E")) 23707SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")), 23708SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.add_F")), 23709SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.remove_F")), 23744SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.add_E")), 23745SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.remove_E")), 24018SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol) 24037SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 2)?.ISymbol) 24056SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 24074SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 0)?.ISymbol) 24093SemanticEdit(SemanticEditKind.Insert, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol) 24178SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")) 24261SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.F")) 24556SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")), 24579SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")), 24602SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")), 24625SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("C.M")), 25306[SemanticEdit(SemanticEditKind.Insert, c => c.GetMember("Program.<Main>$"))],
Microsoft.CodeAnalysis.Features (10)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (5)
3051editKind = SemanticEditKind.Insert; 3187Contract.ThrowIfFalse(editKind == SemanticEditKind.Insert); 3334Contract.ThrowIfFalse(editKind is SemanticEditKind.Update or SemanticEditKind.Insert); 3480SemanticEditKind.Insert => SemanticEditInfo.CreateInsert(symbolKey, partialType), 3950/// Add <see cref="SemanticEditKind.Insert"/> edit for the specified symbol and its accessors.
EditAndContinue\EditSession.cs (2)
853if (edit.Kind is SemanticEditKind.Update or SemanticEditKind.Insert or SemanticEditKind.Replace) 880if (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)
381case 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));