diff options
| author | Graydon Hoare <[email protected]> | 2011-02-23 14:37:39 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-02-23 14:37:39 -0800 |
| commit | 381684043f1ad044c72347d759c1c545c6bccc3d (patch) | |
| tree | db6832b0e3be44071f294410e3a1570b42402ca4 /src/comp/util/common.rs | |
| parent | Parse auth clauses, drop them on the floor. Nothing exists to use them yet an... (diff) | |
| download | rust-381684043f1ad044c72347d759c1c545c6bccc3d.tar.xz rust-381684043f1ad044c72347d759c1c545c6bccc3d.zip | |
Add a type for crate directives, to support intermixing with exprs in crate files.
Diffstat (limited to 'src/comp/util/common.rs')
| -rw-r--r-- | src/comp/util/common.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/comp/util/common.rs b/src/comp/util/common.rs index 56f30e07..071acea2 100644 --- a/src/comp/util/common.rs +++ b/src/comp/util/common.rs @@ -2,8 +2,10 @@ import std._uint; import std._int; import front.ast; + +type filename = str; type pos = rec(uint line, uint col); -type span = rec(str filename, pos lo, pos hi); +type span = rec(filename filename, pos lo, pos hi); type spanned[T] = rec(T node, span span); tag ty_mach { |