mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-31 12:04:43 +00:00 
			
		
		
		
	feat: Implement default-field-values
				
					
				
			This commit is contained in:
		
							parent
							
								
									35b55fd67f
								
							
						
					
					
						commit
						7de0b2e75a
					
				
					 33 changed files with 647 additions and 31 deletions
				
			
		|  | @ -1538,10 +1538,14 @@ impl ast::HasDocComments for RecordField {} | |||
| impl ast::HasName for RecordField {} | ||||
| impl ast::HasVisibility for RecordField {} | ||||
| impl RecordField { | ||||
|     #[inline] | ||||
|     pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) } | ||||
|     #[inline] | ||||
|     pub fn ty(&self) -> Option<Type> { support::child(&self.syntax) } | ||||
|     #[inline] | ||||
|     pub fn colon_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![:]) } | ||||
|     #[inline] | ||||
|     pub fn eq_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![=]) } | ||||
| } | ||||
| 
 | ||||
| #[derive(Debug, Clone, PartialEq, Eq, Hash)] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Shoyu Vanilla
						Shoyu Vanilla