* Sets used without info. * @param {RuntimeSpec} runtime only apply to this runtime * @returns {boolean} true, when something changed
(runtime)
| 1236 | * @returns {boolean} true, when something changed |
| 1237 | */ |
| 1238 | setUsedWithoutInfo(runtime) { |
| 1239 | let changed = false; |
| 1240 | if (this.setUsed(UsageState.NoInfo, runtime)) { |
| 1241 | changed = true; |
| 1242 | } |
| 1243 | if (this.canMangleUse !== false) { |
| 1244 | this.canMangleUse = false; |
| 1245 | changed = true; |
| 1246 | } |
| 1247 | if (this.canInlineUse !== false) { |
| 1248 | this.canInlineUse = false; |
| 1249 | changed = true; |
| 1250 | } |
| 1251 | return changed; |
| 1252 | } |
| 1253 | |
| 1254 | setHasProvideInfo() { |
| 1255 | if (this.provided === undefined) { |
no test coverage detected