| 
									
										
										
										
											2015-07-01 06:19:52 +08:00
										 |  |  | /* | 
					
						
							|  |  |  | 	MIT License http://www.opensource.org/licenses/mit-license.php
 | 
					
						
							|  |  |  | 	Author Tobias Koppers @sokra | 
					
						
							|  |  |  | */ | 
					
						
							|  |  |  | var ContextDependency = require("./ContextDependency"); | 
					
						
							| 
									
										
										
										
											2016-06-24 07:51:52 +08:00
										 |  |  | var CriticalDependencyWarning = require("./CriticalDependencyWarning"); | 
					
						
							| 
									
										
										
										
											2015-07-01 06:19:52 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | function SystemImportContextDependency(request, recursive, regExp, range, valueRange) { | 
					
						
							|  |  |  | 	ContextDependency.call(this, request, recursive, regExp); | 
					
						
							|  |  |  | 	this.range = range; | 
					
						
							|  |  |  | 	this.valueRange = valueRange; | 
					
						
							|  |  |  | 	this.async = true; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | module.exports = SystemImportContextDependency; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SystemImportContextDependency.prototype = Object.create(ContextDependency.prototype); | 
					
						
							|  |  |  | SystemImportContextDependency.prototype.constructor = SystemImportContextDependency; | 
					
						
							|  |  |  | SystemImportContextDependency.prototype.type = "System.import context"; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-24 07:51:52 +08:00
										 |  |  | SystemImportContextDependency.prototype.getWarnings = function() { | 
					
						
							|  |  |  | 	if(this.critical) { | 
					
						
							|  |  |  | 		return [ | 
					
						
							|  |  |  | 			new CriticalDependencyWarning(this.critical) | 
					
						
							|  |  |  | 		]; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-07-01 06:19:52 +08:00
										 |  |  | SystemImportContextDependency.Template = require("./ContextDependencyTemplateAsRequireCall"); |