diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-09-04 11:37:29 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-09-04 11:43:23 -0700 |
| commit | 8ff18acc8221a0157d94cd714b448b6a596fad40 (patch) | |
| tree | eb5182bca0d5687c5fb0c2e2b70897787a01515c /src/libsyntax/parse | |
| parent | 3f92cf26594d1ddc9a4ff318b48c3b61ac233813 (diff) | |
| download | rust-8ff18acc8221a0157d94cd714b448b6a596fad40.tar.gz rust-8ff18acc8221a0157d94cd714b448b6a596fad40.zip | |
libsyntax: "import" -> "use"
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/attr.rs | 6 | ||||
| -rw-r--r-- | src/libsyntax/parse/classify.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/parse/comments.rs | 6 | ||||
| -rw-r--r-- | src/libsyntax/parse/common.rs | 8 | ||||
| -rw-r--r-- | src/libsyntax/parse/eval.rs | 4 | ||||
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 6 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 32 | ||||
| -rw-r--r-- | src/libsyntax/parse/prec.rs | 6 | ||||
| -rw-r--r-- | src/libsyntax/parse/token.rs | 8 |
9 files changed, 39 insertions, 39 deletions
diff --git a/src/libsyntax/parse/attr.rs b/src/libsyntax/parse/attr.rs index 074b7c5829d..9be4909814b 100644 --- a/src/libsyntax/parse/attr.rs +++ b/src/libsyntax/parse/attr.rs @@ -1,6 +1,6 @@ -import either::{Either, Left, Right}; -import ast_util::spanned; -import common::*; //resolve bug? +use either::{Either, Left, Right}; +use ast_util::spanned; +use common::*; //resolve bug? export attr_or_ext; export parser_attr; diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index 3ad33b8f218..4838c91f856 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -2,7 +2,7 @@ Predicates on exprs and stmts that the pretty-printer and parser use */ -import ast_util::operator_prec; +use ast_util::operator_prec; fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool { match e.node { diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index 7b18ca532e0..2d000074936 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -1,6 +1,6 @@ -import io::println;//XXXXXXXXxxx -import util::interner; -import lexer::{string_reader, bump, is_eof, nextch, +use io::println;//XXXXXXXXxxx +use util::interner; +use lexer::{string_reader, bump, is_eof, nextch, is_whitespace, get_str_from, reader}; export cmnt; diff --git a/src/libsyntax/parse/common.rs b/src/libsyntax/parse/common.rs index 9cca463c7c3..6fc05e1f5bd 100644 --- a/src/libsyntax/parse/common.rs +++ b/src/libsyntax/parse/common.rs @@ -1,7 +1,7 @@ -import std::map::{hashmap}; -import ast_util::spanned; -import parser::parser; -import lexer::reader; +use std::map::{hashmap}; +use ast_util::spanned; +use parser::parser; +use lexer::reader; type seq_sep = { sep: Option<token::token>, diff --git a/src/libsyntax/parse/eval.rs b/src/libsyntax/parse/eval.rs index 39f8bb59c1f..526b5101d34 100644 --- a/src/libsyntax/parse/eval.rs +++ b/src/libsyntax/parse/eval.rs @@ -1,5 +1,5 @@ -import parser::{parser, SOURCE_FILE}; -import attr::parser_attr; +use parser::{parser, SOURCE_FILE}; +use attr::parser_attr; export eval_crate_directives_to_mod; diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index e51064d6ffe..e4c5d233867 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -1,6 +1,6 @@ -import diagnostic::span_handler; -import codemap::span; -import ext::tt::transcribe::{tt_reader, new_tt_reader, dup_tt_reader, +use diagnostic::span_handler; +use codemap::span; +use ext::tt::transcribe::{tt_reader, new_tt_reader, dup_tt_reader, tt_next_token}; export reader, string_reader, new_string_reader, is_whitespace; diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index d96401b00b3..60cee541965 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1,21 +1,21 @@ -import print::pprust::expr_to_str; +use print::pprust::expr_to_str; -import result::Result; -import either::{Either, Left, Right}; -import std::map::{hashmap, str_hash}; -import token::{can_begin_expr, is_ident, is_ident_or_path, is_plain_ident, +use result::Result; +use either::{Either, Left, Right}; +use std::map::{hashmap, str_hash}; +use token::{can_begin_expr, is_ident, is_ident_or_path, is_plain_ident, INTERPOLATED}; -import codemap::{span,fss_none}; -import util::interner::interner; -import ast_util::{spanned, respan, mk_sp, ident_to_path, operator_prec}; -import lexer::reader; -import prec::{as_prec, token_to_binop}; -import attr::parser_attr; -import common::{seq_sep_trailing_disallowed, seq_sep_trailing_allowed, +use codemap::{span,fss_none}; +use util::interner::interner; +use ast_util::{spanned, respan, mk_sp, ident_to_path, operator_prec}; +use lexer::reader; +use prec::{as_prec, token_to_binop}; +use attr::parser_attr; +use common::{seq_sep_trailing_disallowed, seq_sep_trailing_allowed, seq_sep_none, token_to_str}; -import dvec::DVec; -import vec::{push}; -import ast::{_mod, add, alt_check, alt_exhaustive, arg, arm, attribute, +use dvec::DVec; +use vec::{push}; +use ast::{_mod, add, alt_check, alt_exhaustive, arg, arm, attribute, bind_by_ref, bind_by_implicit_ref, bind_by_value, bind_by_move, bitand, bitor, bitxor, blk, blk_check_mode, bound_const, bound_copy, bound_send, bound_trait, bound_owned, box, by_copy, @@ -69,7 +69,7 @@ export SOURCE_FILE; // defined in `parse` Fixing this will be easier when we have export // decls on individual items -- then parse can export this publicly, and // everything else crate-visibly. -import parse_from_source_str; +use parse::parse_from_source_str; export parse_from_source_str; export item_or_view_item, iovi_none, iovi_view_item, iovi_item; diff --git a/src/libsyntax/parse/prec.rs b/src/libsyntax/parse/prec.rs index 872ffeb84a5..668301db620 100644 --- a/src/libsyntax/parse/prec.rs +++ b/src/libsyntax/parse/prec.rs @@ -2,9 +2,9 @@ export as_prec; export unop_prec; export token_to_binop; -import token::*; -import token::token; -import ast::*; +use token::*; +use token::token; +use ast::*; /// Unary operators have higher precedence than binary const unop_prec: uint = 100u; diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 02729382dab..5c71aaf2d29 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -1,7 +1,7 @@ -import util::interner; -import util::interner::interner; -import std::map::{hashmap, str_hash}; -import std::serialization::{serializer, +use util::interner; +use util::interner::interner; +use std::map::{hashmap, str_hash}; +use std::serialization::{serializer, deserializer, serialize_uint, deserialize_uint, |
