mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 02:02:45 +00:00 
			
		
		
		
	 ac435f914c
			
		
	
	
		ac435f914c
		
	
	
	
	
		
			
			Also adds tests for finding declaration of arrays inside CppComprehension which requires proper parsing for passing. Side-effect of this patch: if we ctrl+click on array variables, it should jump to the correct declaration inside HackStudio.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			381 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			381 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| TranslationUnit[0:0->2:0]
 | |
|   FunctionDeclaration[0:0->2:0]
 | |
|     NamedType[0:0->0:3]
 | |
|       void
 | |
|     foo
 | |
|     (
 | |
|     )
 | |
|     FunctionDefinition[0:11->2:0]
 | |
|     {
 | |
|       VariableDeclaration[1:4->1:20]
 | |
|         NamedType[1:4->1:6]
 | |
|           int
 | |
|         x
 | |
|         BracedInitList[1:15->1:20]
 | |
|           NumericLiteral[1:16->1:16]
 | |
|           1
 | |
|           NumericLiteral[1:18->1:18]
 | |
|           2
 | |
|     }
 |