This PR adds parser support for naga_oil#import and #define_import_path statements.
Work remaining to be done:
Map the paths defined by ImportPathDecls to document URIs in the server
Resolve the symbols imported by ImportDecls to their respective declarations in their source documents
Use naga_oil instead of naga to validate documents that include ImportDecls
This will be a bit tricky, as I'll need to figure out how to map the error spans from transpiled modules into spans that point to the correct locations in the actual source files — presuming naga_oil doesn't already do this for us.
This PR adds parser support for
naga_oil
#import
and#define_import_path
statements.Work remaining to be done:
ImportPathDecl
s to document URIs in theserver
ImportDecl
s to their respective declarations in their source documentsnaga_oil
instead ofnaga
to validate documents that includeImportDecl
snaga_oil
doesn't already do this for us.