aboutsummaryrefslogtreecommitdiff
path: root/frontend/explicitimports.dcl
diff options
context:
space:
mode:
authormartinw2001-01-19 10:48:10 +0000
committermartinw2001-01-19 10:48:10 +0000
commitc3a59ece66a9f8b91ebfdf3fbd556ffd241b528c (patch)
treef9792c858af73c71c67e6238cdacb0893efbfd0f /frontend/explicitimports.dcl
parentexploiting "reuse unique nodes" option (diff)
refactoring
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@290 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
Diffstat (limited to 'frontend/explicitimports.dcl')
-rw-r--r--frontend/explicitimports.dcl15
1 files changed, 11 insertions, 4 deletions
diff --git a/frontend/explicitimports.dcl b/frontend/explicitimports.dcl
index 0104e79..e1c5c64 100644
--- a/frontend/explicitimports.dcl
+++ b/frontend/explicitimports.dcl
@@ -13,9 +13,16 @@ import syntax, checksupport
}
+markExplImpSymbols :: !Int !*(!*{!*{!u:ExplImpInfo}}, !*SymbolTable)
+ -> (!.[Ident],!(!{!{!u:ExplImpInfo}},!.SymbolTable))
+
+updateExplImpForMarkedSymbol :: !Index Declaration !SymbolTableEntry !u:{#DclModule} !{!{!*ExplImpInfo}} !*SymbolTable
+ -> (!u:{#DclModule}, !{!{!.ExplImpInfo}}, !.SymbolTable)
+
solveExplicitImports :: !(IntKeyHashtable [(Int,Position,[ImportNrAndIdents])]) !{#Int} !Index
- !*(!{#x:DclModule},!*{#Int},!{!*ExplImpInfo},!*CheckState)
- -> (!.SolvedImports,!(!{#x:DclModule},!.{#Int},!{!.ExplImpInfo},!.CheckState))
-checkExplicitImportCompleteness :: ![(Declaration, Position)] !*{#DclModule} !*{#FunDef} !*ExpressionHeap !*CheckState
- -> (!.{#DclModule},!.{#FunDef},!.ExpressionHeap,!.CheckState)
+ !*(!v:{#DclModule},!*{#Int},!{!*ExplImpInfo},!*CheckState)
+ -> (!.SolvedImports,!(!v:{#DclModule},!.{#Int},!{!.ExplImpInfo},!.CheckState))
+
+checkExplicitImportCompleteness :: ![([Declaration], Position)] !*{#DclModule} !*{#FunDef} !*ExpressionHeap !*CheckState
+ -> (!.{#DclModule},!.{#FunDef},!.ExpressionHeap,!.CheckState)