![Avatar](https://secure.gravatar.com/avatar/b69be0e7bb652517772f0cb09385e25c.jpg?s=64&d=identicon&r=g)
Hello,
in a VS like solution / project scenario, it's not quite clear by reading the documentation how to access the AST in the existing files queued on the IProjectAssembly.SourceFiles collection.
while I can easily find how to retrieve the AST of a file currently edited in a SyntaxEditor, I cannot figure out how doing the same in a closed file. AST in a source file is usefull for a lot of purposes and actually I need to know the AST of each source file of my project, even if I am not editing them.
Since the IProjectAssembly knows how to resolve a file in Types, I imagine that somewhere there is an AST but I don't know how to access it.
Other question : what happens if a source file is modified by a i/o disk operation, while it was queued on a IProjectAssembly ? Does it knows that it has to refresh its types ? I guess not.
in a VS like solution / project scenario, it's not quite clear by reading the documentation how to access the AST in the existing files queued on the IProjectAssembly.SourceFiles collection.
while I can easily find how to retrieve the AST of a file currently edited in a SyntaxEditor, I cannot figure out how doing the same in a closed file. AST in a source file is usefull for a lot of purposes and actually I need to know the AST of each source file of my project, even if I am not editing them.
Since the IProjectAssembly knows how to resolve a file in Types, I imagine that somewhere there is an AST but I don't know how to access it.
Other question : what happens if a source file is modified by a i/o disk operation, while it was queued on a IProjectAssembly ? Does it knows that it has to refresh its types ? I guess not.