Community
Participate
Working Groups
Add an api to compilers to allow them to specify the default imports for system parts. Update SystemEnvironment and FileScope to honor the settings from the compiler.
Paul, can you please elaborate more background for this enhancement. Here's my understanding and some thoughts Back in RBD, we have eglIsSystemPart annotation which annotate these Parts we think are system. It seemed this annotation is gone in EDT. One of the broken functions is Organize Import, which will now imports these "System Parts" and "System Annotations", for example, eglx.lang.basicprogram & import eglx.lang.syslib as mentioned in Bug 354445 Do a reference search for PartBinding.isSystemPart(), I can find 11 references. We probably should revisit all of them. AnnotationTypeBinding.isSystemAnnotation() is just used once by Organize Import. Let's just look at the Organize Import function, can we assume that every part and annotation can be found in SystemEnvironment is "System", and have them import by default (no need to generate import statement). If we do this, then we don't need to specify the default imports. I don't know if there's a case that a Part is in SystemEnvironment but we want it to be specifically imported.
Paul, please confirm that this work can be deferred until after EDT .7.
This is not critical for 0.7...Lets defer this to future.
Setting the target milestone to Future for bugs that won't be addressed in 0.8.2.