about summary refs log tree commit diff
path: root/src/libsyntax/visit.rs
AgeCommit message (Collapse)AuthorLines
2016-05-28Rollup merge of #33854 - petrochenkov:prefvis, r=eddybManish Goregaokar-11/+4
Apply visit_path to import prefixes by default Overriding `visit_path` is not enough to visit all paths, some import prefixes are not visited and `visit_path_list_item` need to be overridden as well. This PR removes this catch, it should be less error prone this way. Also, the prefix is visited once now, not repeatedly for each path list item. r? @eddyb
2016-05-27Rollup merge of #33644 - petrochenkov:selfast, r=nrcManish Goregaokar-24/+1
The AST part of https://github.com/rust-lang/rust/pull/33505. https://github.com/rust-lang/rust/pull/33505 isn't landed yet, so this PR is based on top of it. r? @nrc plugin-[breaking-change] cc #31645 @Manishearth
2016-05-27Rollup merge of #33639 - petrochenkov:dotdot, r=nmatsakisManish Goregaokar-5/+3
cc https://github.com/rust-lang/rust/issues/33627 r? @nikomatsakis plugin-[breaking-change] cc https://github.com/rust-lang/rust/issues/31645 @Manishearth
2016-05-26Implement `..` in tuple (struct) patternsVadim Petrochenkov-5/+3
2016-05-25Add a new AST-only type variant `ImplicitSelf`Vadim Petrochenkov-1/+1
2016-05-25Remove ExplicitSelf from ASTVadim Petrochenkov-23/+0
2016-05-24Apply visit_path to import prefixes by defaultVadim Petrochenkov-11/+4
2016-05-24syntax/hir: give loop labels a spanGeorg Brandl-14/+19
This makes the "shadowing labels" warning *not* print the entire loop as a span, but only the lifetime. Also makes #31719 go away, but does not fix its root cause (the span of the expanded loop is still wonky, but not used anymore).
2016-04-24thread tighter span for closures aroundNiko Matsakis-1/+1
Track the span corresponding to the `|...|` part of the closure.
2016-04-14Visit visibilities in the ast visitor's `walk_*` functionsJeffrey Seyfried-3/+6
2016-04-06Move span into `StructField`Vadim Petrochenkov-3/+3
2016-04-06Get rid of ast::StructFieldKindVadim Petrochenkov-1/+1
2016-04-02Add `Crate` and `Restricted` variants to `ast::Visibility`Jeffrey Seyfried-0/+10
2016-04-02Make `ast::Visibility` non-copyableJeffrey Seyfried-5/+5
2016-03-07implement the `?` operatorJorge Aparicio-0/+3
The `?` postfix operator is sugar equivalent to the try! macro, but is more amenable to chaining: `File::open("foo")?.metadata()?.is_dir()`. `?` is accepted on any *expression* that can return a `Result`, e.g. `x()?`, `y!()?`, `{z}?`, `(w)?`, etc. And binds more tightly than unary operators, e.g. `!x?` is parsed as `!(x?)`. cc #31436
2016-02-27libsyntax: parse inclusive rangesAlex Burka-1/+1
2016-02-13Split ast::PatKind::Enum into tuple struct and path patternsVadim Petrochenkov-1/+4
2016-02-13Rename ast::Pat_ and its variantsVadim Petrochenkov-12/+12
2016-02-11[breaking-change] don't glob export ast::TraitItemKind variantsOliver 'ker' Schneider-4/+4
2016-02-11[breaking-change] don't glob export ast::Item_ variantsOliver 'ker' Schneider-14/+14
2016-02-11[breaking-change] don't glob export ast::ForeignItem_ variantsOliver 'ker' Schneider-2/+2
2016-02-11[breaking-change] don't pub export ast::Stmt_ variantsOliver Schneider-3/+3
2016-02-11[breaking-change] don't pub export ast::Ty_ variantsOliver Schneider-12/+12
2016-02-11[breaking-change] don't glob export ast::Expr_ variantsOliver Schneider-33/+33
2016-02-11[breaking-change] don't glob export ast::ExplicitSelf_ variantsOliver Schneider-4/+4
2016-02-11[breaking-change] don't glob export ast::Decl_ variantsOliver Schneider-2/+2
2016-02-11[breaking-change] don't glob import ast::FunctionRetTy variantsOliver Schneider-1/+1
2015-12-22Stop re-exporting PathParameters's variants.Ms2ger-2/+2
2015-12-16Add ExprType to HIR and make everything compileVadim Petrochenkov-5/+1
+ Apply parser changes manually + Add feature gate
2015-12-16Implement type ascription.Eduard Burtescu-0/+4
2015-12-05Use a struct instead of a tuple for inline asm output operandsAmanieu d'Antras-2/+2
2015-12-05Add proper support for indirect output constraints in inline asmAmanieu d'Antras-1/+1
2015-11-26Moved and refactored ThinAttributesMarvin Löbel-1/+2
2015-11-26Add syntax support for attributes on expressions and all syntaxMarvin Löbel-1/+6
nodes in statement position. Extended #[cfg] folder to allow removal of statements, and of expressions in optional positions like expression lists and trailing block expressions. Extended lint checker to recognize lint levels on expressions and locals.
2015-11-17Auto merge of #29887 - sanxiyn:match-ref-pats, r=sfacklerbors-12/+12
2015-11-17Fix match_ref_pats flagged by ClippySeo Sanghyeon-12/+12
2015-11-16rename `ast::ImplItem_::*ImplItem` to `ast::ImplItemKind::*`Oliver Schneider-4/+4
2015-10-31Remove PatWildMultiVadim Petrochenkov-1/+1
2015-10-16Provide span for visit_enum_defVadim Petrochenkov-5/+8
2015-10-13Merge struct fields and struct kindVadim Petrochenkov-1/+1
2015-10-13Dict -> Struct, StructDef -> VariantData, def -> dataVadim Petrochenkov-4/+4
2015-10-13Provide span for visit_struct_def + remove some dead codeVadim Petrochenkov-3/+6
2015-10-13Remove now redundant NodeId from VariantVadim Petrochenkov-14/+13
2015-10-13Unify structures and enum variants in ASTVadim Petrochenkov-14/+1
2015-10-09Some cleanup of no longer used AST thingsNick Cameron-1/+1
2015-09-29Restore `if let`s replaced with `for`sVadim Petrochenkov-3/+3
2015-09-29Fill in some missing parts in the default HIR visitorVadim Petrochenkov-11/+18
2015-09-28Fill in some missing parts in the default AST visitorVadim Petrochenkov-339/+249
+ Add helper macro for walking lists (including Options)
2015-09-24Remove the deprecated box(PLACE) syntax.Eduard Burtescu-2/+5
2015-09-17Resolve prefix in imports with empty bracesVadim Petrochenkov-2/+1