MCPcopy Index your code
hub / github.com/apache/groovy / getContext

Method getContext

src/main/java/org/codehaus/groovy/ast/ModuleNode.java:538–540  ·  view source on GitHub ↗

Returns the source unit for this module (single-file compilation context). Provides access to source code, line mappings, and error reporting. @return the SourceUnit, or null if compiled as part of a batch

()

Source from the content-addressed store, hash-verified

536 * @return the {@link SourceUnit}, or null if compiled as part of a batch
537 */
538 public SourceUnit getContext() {
539 return context;
540 }
541
542 private boolean isPackageInfo() {
543 return context != null && context.getName() != null && context.getName().endsWith("package-info.groovy");

Callers 9

createClassMethod · 0.95
checkUsageMethod · 0.95
isNativeRecordStubMethod · 0.45
isNativeSealedStubMethod · 0.45
addClassMethod · 0.45
getSourceUnitMethod · 0.45
recoverMethod · 0.45
markAsGeneratedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected