mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 10:39:40 +01:00 
			
		
		
		
	* also process methodpointerinit and methodpointerdone fields
of calln in foreachnode*() git-svn-id: trunk@2183 -
This commit is contained in:
		
							parent
							
								
									5e631df4cc
								
							
						
					
					
						commit
						24c3ec1095
					
				@ -110,7 +110,9 @@ implementation
 | 
				
			|||||||
        calln:
 | 
					        calln:
 | 
				
			||||||
          begin
 | 
					          begin
 | 
				
			||||||
            { not in one statement, won't work because of b- }
 | 
					            { not in one statement, won't work because of b- }
 | 
				
			||||||
 | 
					            result := foreachnode(tcallnode(n).methodpointerinit,f,arg) or result;
 | 
				
			||||||
            result := foreachnode(tcallnode(n).methodpointer,f,arg) or result;
 | 
					            result := foreachnode(tcallnode(n).methodpointer,f,arg) or result;
 | 
				
			||||||
 | 
					            result := foreachnode(tcallnode(n).methodpointerdone,f,arg) or result;
 | 
				
			||||||
          end;
 | 
					          end;
 | 
				
			||||||
        ifn, whilerepeatn, forn:
 | 
					        ifn, whilerepeatn, forn:
 | 
				
			||||||
          begin
 | 
					          begin
 | 
				
			||||||
@ -148,7 +150,9 @@ implementation
 | 
				
			|||||||
        case n.nodetype of
 | 
					        case n.nodetype of
 | 
				
			||||||
          calln:
 | 
					          calln:
 | 
				
			||||||
            begin
 | 
					            begin
 | 
				
			||||||
 | 
					              result := foreachnodestatic(procmethod,tcallnode(n).methodpointerinit,f,arg) or result;
 | 
				
			||||||
              result := foreachnodestatic(procmethod,tcallnode(n).methodpointer,f,arg) or result;
 | 
					              result := foreachnodestatic(procmethod,tcallnode(n).methodpointer,f,arg) or result;
 | 
				
			||||||
 | 
					              result := foreachnodestatic(procmethod,tcallnode(n).methodpointerdone,f,arg) or result;
 | 
				
			||||||
            end;
 | 
					            end;
 | 
				
			||||||
          ifn, whilerepeatn, forn:
 | 
					          ifn, whilerepeatn, forn:
 | 
				
			||||||
            begin
 | 
					            begin
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user