forked from mirrors/gecko-dev
		
	 16387caff8
			
		
	
	
		16387caff8
		
	
	
	
	
		
			
			Source-Repo: https://github.com/servo/servo Source-Revision: 19cd87aefc24fa153fa013b5f96ae46de9a427fd
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			737 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			737 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- WebIDL.py
 | |
| +++ WebIDL.py
 | |
| @@ -1506,6 +1506,9 @@ class IDLDictionary(IDLObjectWithScope):
 | |
|                                    self.identifier.name,
 | |
|                                    [member.location] + locations)
 | |
|  
 | |
| +    def module(self):
 | |
| +        return self.location.filename().split('/')[-1].split('.webidl')[0] + 'Binding'
 | |
| +
 | |
|      def addExtendedAttributes(self, attrs):
 | |
|          assert len(attrs) == 0
 | |
|  
 | |
| @@ -3574,6 +3577,9 @@ class IDLCallbackType(IDLType, IDLObjectWithScope):
 | |
|          self._treatNonCallableAsNull = False
 | |
|          self._treatNonObjectAsNull = False
 | |
|  
 | |
| +    def module(self):
 | |
| +        return self.location.filename().split('/')[-1].split('.webidl')[0] + 'Binding'
 | |
| +
 | |
|      def isCallback(self):
 | |
|          return True
 | |
|  
 |