32 |
val exports : info -> SymbolSet.set |
val exports : info -> SymbolSet.set |
33 |
val skeleton : info -> Skeleton.decl |
val skeleton : info -> Skeleton.decl |
34 |
|
|
35 |
val describe : info -> string |
(* different ways of describing an sml file using group and source *) |
36 |
|
val spec : info -> string (* sspec *) |
37 |
|
val fullSpec : info -> string (* gspec(sspec) *) |
38 |
|
val name : info -> string (* sname *) |
39 |
|
val fullName : info -> string (* gname(sspec) *) |
40 |
end |
end |
41 |
|
|
42 |
structure SmlInfo :> SMLINFO = struct |
structure SmlInfo :> SMLINFO = struct |
207 |
NONE => Skeleton.SeqDecl [] |
NONE => Skeleton.SeqDecl [] |
208 |
| SOME sk => sk) |
| SOME sk => sk) |
209 |
|
|
210 |
fun describe (INFO { sourcepath, ... }) = AbsPath.name sourcepath |
fun spec (INFO { sourcepath, ... }) = AbsPath.spec sourcepath |
211 |
|
fun fullSpec (INFO { group, sourcepath, ... }) = |
212 |
|
concat [AbsPath.spec group, "(", AbsPath.spec sourcepath, ")"] |
213 |
|
fun name (INFO { sourcepath, ... }) = AbsPath.name sourcepath |
214 |
|
fun fullName (INFO { group, sourcepath, ... }) = |
215 |
|
concat [AbsPath.name group, "(", AbsPath.spec sourcepath, ")"] |
216 |
end |
end |