Jacob MacDonald

Results 1567 comments of Jacob MacDonald

Note that there is already an optimization in place that files with _no_ annotations will be skipped without resolving them. It is possible this just needs to be expanded a...

> Hmm, are you sure? I guess that would involve using the parsed AST before the element model, but I couldn't find something like that, if you meant in `source_gen`...

> If we can compute once per codebase the set of files that could be directly imported to trigger the generator, that would help a lot :) What I would...

Ultimately, the analyzer element model is actually just a very poor fit for the package:build use case, for a variety of reasons. The eager resolution is generally not desired as...

Fwiw I did send out https://github.com/dart-lang/source_gen/pull/765 just because, I doubt it will help much since most of these annotations are not used at the top level anyways, other than `Deprecated`.

> The main issue is the sheer amount of work. We're essentially reimplementing Elements. While I agree it isn't completely trivial - I believe you can make a sustainable version...

> Is AST cached, or do we have to cache it ourselves if we were to make such utils? If folks call `node.resolve()` twice, we wouldn't want to re-parse things...

> The helpers are likely the hard part. I can't fathom that implementing things like `TypeSystem` would be simple. Yeah I think the question is how much of this stuff...

@derekxu16 This looks related to the fact that you are running through SSH - note that web socket URL that it is trying to connect to `WebSocket connection to 'ws://127.0.0.1:46349/uqClOtdj8j8='...

It looks like when running via the AOT command you provided, it always uses port 8181. So that is why it works.