GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(mocks): explain emitted signature collision checks (#7302) · thomhurst/TUnit@f46bdb2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/TUnit.Mocks.SourceGenerator/Builders
    • MockMembersBuilder.cs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/TUnit.Mocks.SourceGenerator/Builders/MockMembersBuilder.cs‎

Copy file name to clipboardExpand all lines: src/TUnit.Mocks.SourceGenerator/Builders/MockMembersBuilder.cs
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,11 @@ internal static List<MockMemberModel> GetClosedReceiverGenericMethods(MockTypeMo
939939
// Compare the actual emitted signatures, including predicate and params-expanded overloads.
940940
// A closed substitution can collapse distinct open overloads; omit both rather than choosing
941941
// which underlying member an identical setup should configure.
942+
// Model parameter types alone do not describe the generated matcher, predicate, expanded
943+
// params and framework-specific ref-struct overloads. Parse the emitter's output so this
944+
// check shares that signature definition instead of maintaining a second overload model.
945+
// Only same-name, same-arity overload groups need parsing; resolution stores the filtered
946+
// methods in the emission model so BuildMethodSetups does not repeat this analysis.
942947
internal static List<MockMemberModel> GetClosedReceiverGenericMethods(MockTypeModel model, EquatableArray<string> typeArguments)
943948
{
944949
var methods = GetClosedReceiverGenericMethods(model);

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.