@shapeshift-labs/frontier-lang-parser 0.3.79 → 0.3.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const appRows = words('mount provide provides required requires require route event asset gate gap proofGap evidence proofEvidence');
|
|
1
|
+
const appRows = words('role sourcePath path sourceHash host hostId mount provide provides required requires require route event asset gate gap proofGap evidence proofEvidence');
|
|
2
2
|
const canvasRows = words('element command state stateWrite trace gap proofGap evidence proofEvidence');
|
|
3
3
|
const constraintRows = words('variable var constraint hard soft preference prefer collapse admission');
|
|
4
4
|
const dialectRows = words('dialect record extern');
|
|
@@ -29,11 +29,11 @@ export const ROW_SYNTAX_CONFIG = Object.freeze({
|
|
|
29
29
|
effect: rowConfig('effectRow', 'effect_row', words('capability input returns resources'), undefined, coreFailClosed('unsupported-effect-row')),
|
|
30
30
|
extern: rowConfig('externRow', 'extern_row', words('language target symbol input returns effects uses resources'), normalizeExternRow, coreFailClosed('unsupported-extern-row')),
|
|
31
31
|
lattice: rowConfig('latticeRow', 'lattice_row', words('carrier law laws frontierCrdt frontier-crdt lawChecker'), normalizeLatticeRow, coreFailClosed('unsupported-lattice-row')),
|
|
32
|
-
applicationSurface: rowConfig('applicationSurfaceRow', 'application_surface_row', appRows, normalizeApplicationSurfaceRow),
|
|
33
|
-
appHost: rowConfig('applicationSurfaceRow', 'application_surface_row', appRows, normalizeApplicationSurfaceRow),
|
|
34
|
-
plugin: rowConfig('applicationSurfaceRow', 'application_surface_row', appRows, normalizeApplicationSurfaceRow),
|
|
35
|
-
pluginSurface: rowConfig('applicationSurfaceRow', 'application_surface_row', appRows, normalizeApplicationSurfaceRow),
|
|
36
|
-
pluginContract: rowConfig('applicationSurfaceRow', 'application_surface_row', appRows, normalizeApplicationSurfaceRow),
|
|
32
|
+
applicationSurface: rowConfig('applicationSurfaceRow', 'application_surface_row', appRows, normalizeApplicationSurfaceRow, coreFailClosed('unsupported-application-surface-row')),
|
|
33
|
+
appHost: rowConfig('applicationSurfaceRow', 'application_surface_row', appRows, normalizeApplicationSurfaceRow, coreFailClosed('unsupported-application-surface-row')),
|
|
34
|
+
plugin: rowConfig('applicationSurfaceRow', 'application_surface_row', appRows, normalizeApplicationSurfaceRow, coreFailClosed('unsupported-application-surface-row')),
|
|
35
|
+
pluginSurface: rowConfig('applicationSurfaceRow', 'application_surface_row', appRows, normalizeApplicationSurfaceRow, coreFailClosed('unsupported-application-surface-row')),
|
|
36
|
+
pluginContract: rowConfig('applicationSurfaceRow', 'application_surface_row', appRows, normalizeApplicationSurfaceRow, coreFailClosed('unsupported-application-surface-row')),
|
|
37
37
|
target: rowConfig('targetProjectionRow', 'target_projection_row', words('projection lowering layer')),
|
|
38
38
|
packageManifest: rowConfig('packageManifestRow', 'package_manifest_row', packageRows, normalizeProofEvidenceRows),
|
|
39
39
|
packageGraph: rowConfig('packageManifestRow', 'package_manifest_row', packageRows, normalizeProofEvidenceRows),
|
|
@@ -143,6 +143,8 @@ function normalizeLatticeRow(rowKind) {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
function normalizeApplicationSurfaceRow(rowKind) {
|
|
146
|
+
if (rowKind === 'path') return 'sourcePath';
|
|
147
|
+
if (rowKind === 'hostId') return 'host';
|
|
146
148
|
if (rowKind === 'provide' || rowKind === 'provides') return 'provided-surface';
|
|
147
149
|
if (rowKind === 'required' || rowKind === 'requires' || rowKind === 'require') return 'required-capability';
|
|
148
150
|
if (rowKind === 'proofEvidence') return 'evidence';
|