-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incremental Symbol Propagation (#8723)
- Loading branch information
Showing
34 changed files
with
1,848 additions
and
632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// @flow | ||
|
||
import type {Diagnostic} from '@parcel/diagnostic'; | ||
import type {NodeId} from '@parcel/graph'; | ||
import type {ParcelOptions} from './types'; | ||
|
||
import {type default as AssetGraph} from './AssetGraph'; | ||
import {AssetGraphBuilder} from './requests/AssetGraphRequest'; | ||
|
||
export function propagateSymbols({ | ||
options, | ||
assetGraph, | ||
changedAssetsPropagation, | ||
assetGroupsWithRemovedParents, | ||
previousErrors, | ||
}: {| | ||
options: ParcelOptions, | ||
assetGraph: AssetGraph, | ||
changedAssetsPropagation: Set<string>, | ||
assetGroupsWithRemovedParents: Set<NodeId>, | ||
previousErrors?: ?Map<NodeId, Array<Diagnostic>>, | ||
|}): Map<NodeId, Array<Diagnostic>> { | ||
// TODO move functions from AssetGraphRequest to here | ||
|
||
let builder = new AssetGraphBuilder({ | ||
input: ({} /*: any */), | ||
farm: ({} /*: any */), | ||
invalidateReason: ({} /*: any */), | ||
// $FlowFixMe | ||
api: {getInvalidSubRequests: () => []}, | ||
options, | ||
}); | ||
builder.assetGraph = assetGraph; | ||
builder.changedAssetsPropagation = changedAssetsPropagation; | ||
|
||
return builder.propagateSymbols({ | ||
options: builder.options, | ||
assetGraph: builder.assetGraph, | ||
changedAssetsPropagation: builder.changedAssetsPropagation, | ||
assetGroupsWithRemovedParents: assetGroupsWithRemovedParents, | ||
previousErrors: previousErrors, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.