File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -135,11 +135,12 @@ const exportRestrictRule: Rule.RuleModule = {
135135            return ; 
136136          } 
137137
138-           const  privateAnnotatedComment  =  parentNode . comments . find ( ( s )  =>  ( 
139-             s . loc ?. end . line  !==  undefined  && 
140-             s . loc . end . line  ===  ( declaration . loc ?. start . line  ||  0 )  -  1  && 
141-             s . value . includes ( "@private" ) 
142-           ) ) ; 
138+           const  privateAnnotatedComment  =  parentNode . comments . find ( 
139+             ( s )  => 
140+               s . loc ?. end . line  !==  undefined  && 
141+               s . loc . end . line  ===  ( declaration . loc ?. start . line  ||  0 )  -  1  && 
142+               s . value . includes ( "@private" ) , 
143+           ) ; 
143144          if  ( privateAnnotatedComment  ===  undefined  ||  node . range  ===  undefined )  { 
144145            return ; 
145146          } 
Original file line number Diff line number Diff line change @@ -134,11 +134,12 @@ const exportRestrictRule: Rule.RuleModule = {
134134          if  ( ! declaration ?. loc )  { 
135135            return ; 
136136          } 
137-           const  privateAnnotatedComment  =  parentNode . comments . find ( ( s )  =>  ( 
138-             s . loc ?. end . line  !==  undefined  && 
139-             s . loc . end . line  ===  ( declaration . loc ?. start . line  ||  0 )  -  1  && 
140-             s . value . includes ( "@private" ) 
141-           ) ) ; 
137+           const  privateAnnotatedComment  =  parentNode . comments . find ( 
138+             ( s )  => 
139+               s . loc ?. end . line  !==  undefined  && 
140+               s . loc . end . line  ===  ( declaration . loc ?. start . line  ||  0 )  -  1  && 
141+               s . value . includes ( "@private" ) , 
142+           ) ; 
142143
143144          if  ( privateAnnotatedComment  ===  undefined  ||  node . range  ===  undefined )  { 
144145            return ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments