MCPcopy
hub / github.com/rollup/rollup / include

Method include

src/ast/nodes/ConditionalExpression.ts:167–177  ·  view source on GitHub ↗
(context: InclusionContext, includeChildrenRecursively: IncludeChildren)

Source from the content-addressed store, hash-verified

165 }
166
167 include(context: InclusionContext, includeChildrenRecursively: IncludeChildren): void {
168 this.included = true;
169 const usedBranch = this.getUsedBranch();
170 if (usedBranch === null || includeChildrenRecursively || this.test.shouldBeIncluded(context)) {
171 this.test.include(context, includeChildrenRecursively);
172 this.consequent.include(context, includeChildrenRecursively);
173 this.alternate.include(context, includeChildrenRecursively);
174 } else {
175 usedBranch.include(context, includeChildrenRecursively);
176 }
177 }
178
179 includePath(path: ObjectPath, context: InclusionContext): void {
180 this.included = true;

Callers

nothing calls this directly

Calls 3

getUsedBranchMethod · 0.95
shouldBeIncludedMethod · 0.65
includeMethod · 0.65

Tested by

no test coverage detected