From 381684043f1ad044c72347d759c1c545c6bccc3d Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 23 Feb 2011 14:37:39 -0800 Subject: Add a type for crate directives, to support intermixing with exprs in crate files. --- src/comp/util/common.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/comp/util/common.rs') 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 { -- cgit v1.2.3