Git Product home page Git Product logo

Comments (1)

Sergio0694 avatar Sergio0694 commented on June 3, 2024

This has been proposed before (can't find the issues right now), and it's a scenario we're intentionally not supporting. This is for two main reasons: one is that it hides what's going on and makes it not immediately clear when glancing on a property, which members it's actually notifying. The other is that the suggested implementation would be extremely expensive: we'd have to crawl the accessor bodies of all properties, find all expressions, get the semantic model, get the operation, get the target property symbol, and track that in some way. This is definitely not something we want to introduce into our incremental pipeline, as it would slow things down way too much. Additionally it's not even guaranteed it would always work, for instance, what if you have a property that calls some other method which then returns the value of that property that changed? You'd either have to crawl all method bodies of all invoked methods, or say "this isn't supported" and then fail either silently or with some diagnostics, etc. etc. and then you're just back at square one and with a super convoluted implementation that doesn't even always work anyway.

Thank you for taking the time to write the proposal though! 🙂

from dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.