@@ -38,6 +38,7 @@ pub enum ConcreteLineToken<'src> {
3838 ModKeyword { contents : & ' static str } ,
3939 ConditionalKeyword { contents : & ' static str } ,
4040 DirectPart { part : Cow < ' src , str > } ,
41+ MethodName { name : Cow < ' src , str > } ,
4142 CommaSpace ,
4243 Comma ,
4344 Space ,
@@ -81,6 +82,7 @@ impl<'src> ConcreteLineToken<'src> {
8182 Self :: DefKeyword => Cow :: Borrowed ( "def" ) ,
8283 Self :: ModuleKeyword => Cow :: Borrowed ( "module" ) ,
8384 Self :: DirectPart { part } => part,
85+ Self :: MethodName { name } => name,
8486 Self :: CommaSpace => Cow :: Borrowed ( ", " ) ,
8587 Self :: Comma => Cow :: Borrowed ( "," ) ,
8688 Self :: Space => Cow :: Borrowed ( " " ) ,
@@ -126,7 +128,9 @@ impl<'src> ConcreteLineToken<'src> {
126128 Keyword { keyword : contents }
127129 | ModKeyword { contents }
128130 | ConditionalKeyword { contents } => contents. len ( ) ,
129- Op { op : contents } | DirectPart { part : contents } => contents. len ( ) ,
131+ Op { op : contents } | DirectPart { part : contents } | MethodName { name : contents } => {
132+ contents. len ( )
133+ }
130134 LTStringContent { content : contents }
131135 | Comment { contents }
132136 | HeredocClose { symbol : contents } => contents. len ( ) ,
0 commit comments