Skip to content

Conversation

@mandel-macaque
Copy link
Contributor

Add a factory method that will generate the argument syntax for the parameters to be used in the delegate call within a trampoline.

mandel-macaque and others added 11 commits May 6, 2025 16:06
There are several clases generated for a trampoline and we need the
nomenclator to be able to generate the class names.
…ampoline class.

There are 3 different types that are declared for a trampoline:

1. The delegate type.
2. The static bridge class.
3. The nativce invocation delegate class.

When passing a delegate as a parameter for a delegate we need to pass
the native inbocation delegate class. This new factory method generates
the needed Create call expression syntax to use in the trampoline
generation.
…factory-method-create-native-invocation-class
…factory-method-create-native-invocation-class
Add a factory method that will generate the argument syntax for the
parameters to be used in the delegate call within a trampoline.
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

Base automatically changed from dev/mandel/factory-method-create-native-invocation-class to main May 9, 2025 15:05
public IEnumerator<object []> GetEnumerator ()
{
var exampleParameter = new Parameter (0, ReturnTypeForBool (), "firstParameter");
var exampleParameter = new DelegateParameter (0, ReturnTypeForBool (), "firstParameter");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for readability, you could name your integer parameters (like you do for bool)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do in an upcoming PR.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #4837b53] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 4837b53877d98b4e7531b0bf46adcdeb0e7452f4 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #4837b53] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 4837b53877d98b4e7531b0bf46adcdeb0e7452f4 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ API diff for current PR / commit

.NET ( No breaking changes )

✅ API diff vs stable

.NET ( No breaking changes )

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 4837b53877d98b4e7531b0bf46adcdeb0e7452f4 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #4837b53] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 4837b53877d98b4e7531b0bf46adcdeb0e7452f4 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #4837b53] Tests on macOS X64 - Mac Sonoma (14) passed 💻

All tests on macOS X64 - Mac Sonoma (14) passed.

Pipeline on Agent
Hash: 4837b53877d98b4e7531b0bf46adcdeb0e7452f4 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #4837b53] Tests on macOS arm64 - Mac Sequoia (15) passed 💻

All tests on macOS arm64 - Mac Sequoia (15) passed.

Pipeline on Agent
Hash: 4837b53877d98b4e7531b0bf46adcdeb0e7452f4 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #4837b53] Tests on macOS M1 - Mac Ventura (13) passed 💻

All tests on macOS M1 - Mac Ventura (13) passed.

Pipeline on Agent
Hash: 4837b53877d98b4e7531b0bf46adcdeb0e7452f4 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #4837b53] Tests on macOS M1 - Mac Monterey (12) passed 💻

All tests on macOS M1 - Mac Monterey (12) passed.

Pipeline on Agent
Hash: 4837b53877d98b4e7531b0bf46adcdeb0e7452f4 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 [CI Build #4837b53] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

1 tests crashed, 10 tests failed, 104 tests passed.

Failures

❌ monotouch tests (tvOS)

10 tests failed, 0 tests passed.
Details
  • monotouch-test/tvOS - simulator/Debug: Failed
  • monotouch-test/tvOS - simulator/Debug (LinkSdk): Failed
  • monotouch-test/tvOS - simulator/Debug (static registrar): Failed
  • monotouch-test/tvOS - simulator/Release (all optimizations): Failed
  • monotouch-test/tvOS - simulator/Debug (ARM64): Failed
  • monotouch-test/tvOS - simulator/Release (NativeAOT, ARM64): Failed
  • monotouch-test/tvOS - simulator/Debug (managed static registrar): Failed
  • monotouch-test/tvOS - simulator/Release (managed static registrar, all optimizations): Failed
  • monotouch-test/tvOS - simulator/Release (NativeAOT, x64): Failed
  • monotouch-test/tvOS - simulator/Debug (interpreter): Failed

Html Report (VSDrops) Download

❌ windows tests

🔥 Failed catastrophically on VSTS: test results - windows (no summary found).

Html Report (VSDrops) Download

Successes

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 8 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 9 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: 4837b53877d98b4e7531b0bf46adcdeb0e7452f4 [PR build]

@mandel-macaque
Copy link
Contributor Author

Failing tests are unrelated to code changes.

@mandel-macaque mandel-macaque merged commit 291633e into main May 13, 2025
37 of 40 checks passed
@mandel-macaque mandel-macaque deleted the dev/mandel/trampoline-argument-expressions branch May 13, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants