dotnet-websharper / core

WebSharper - Full-stack, functional, reactive web apps and microservices in F# and C#
https://websharper.com
Apache License 2.0
593 stars 52 forks source link

DCE `is...` methods for interfaces #1321

Closed Jand42 closed 11 months ago

Jand42 commented 1 year ago

In WebSharper 7, type checks against interfaces use a dedicated function for each interface instead of inlining it everywhere it's needed. Add a dependency graph node for this, so no unused functions are created when using DCE (dead-code elimination)

Jand42 commented 11 months ago

isX functions for interfaces are now generated in Compilation class and have their own dependency graph node