Store span of method receiver colon tokens
diff --git a/syntax/impls.rs b/syntax/impls.rs
index 7392d49..06d68dc 100644
--- a/syntax/impls.rs
+++ b/syntax/impls.rs
@@ -396,6 +396,7 @@
lifetime,
mutable,
var: _,
+ colon_token: _,
ty,
shorthand: _,
pin_tokens: _,
@@ -407,6 +408,7 @@
lifetime: lifetime2,
mutable: mutable2,
var: _,
+ colon_token: _,
ty: ty2,
shorthand: _,
pin_tokens: _,
@@ -424,6 +426,7 @@
lifetime,
mutable,
var: _,
+ colon_token: _,
ty,
shorthand: _,
pin_tokens: _,
diff --git a/syntax/mod.rs b/syntax/mod.rs
index b2c524b..96aa4c9 100644
--- a/syntax/mod.rs
+++ b/syntax/mod.rs
@@ -185,6 +185,7 @@
pub mutable: bool,
pub var: Token![self],
pub ty: NamedType,
+ pub colon_token: Token![:],
pub shorthand: bool,
pub pin_tokens: Option<(kw::Pin, Token![<], Token![>])>,
pub mutability: Option<Token![mut]>,
diff --git a/syntax/parse.rs b/syntax/parse.rs
index fe18832..a06affc 100644
--- a/syntax/parse.rs
+++ b/syntax/parse.rs
@@ -562,6 +562,7 @@
lifetime: lifetime.clone(),
mutable: arg.mutability.is_some(),
var: arg.self_token,
+ colon_token: Token,
ty: NamedType::new(Ident::new("Self", arg.self_token.span)),
shorthand: true,
pin_tokens: None,
@@ -607,6 +608,7 @@
lifetime: reference.lifetime,
mutable: reference.mutable,
var: Token),
+ colon_token: arg.colon_token,
ty: ident,
shorthand: false,
pin_tokens: reference.pin_tokens,
diff --git a/syntax/tokens.rs b/syntax/tokens.rs
index a668aa6..b0c2f20 100644
--- a/syntax/tokens.rs
+++ b/syntax/tokens.rs
@@ -311,6 +311,7 @@
lifetime,
mutable: _,
var: _,
+ colon_token: _,
ty,
shorthand: _,
pin_tokens,
@@ -338,6 +339,7 @@
lifetime,
mutable: _,
var: _,
+ colon_token: _,
ty,
shorthand: _,
pin_tokens,