The linker is implemented using a Babel transform such that Babel needs to parse and walk a source file to find the declarations that need to be compiled. If it can be determined that a source file is known not to contain any declarations the parsing and walking can be skipped as a performance improvement. This commit adds an exposed function for tools that integrate the linker to use to allow short-circuiting of the linker transform. PR Close #40137
		
			
				
	
	
		
			16 lines
		
	
	
		
			698 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			698 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| /**
 | |
|  * @license
 | |
|  * Copyright Google LLC All Rights Reserved.
 | |
|  *
 | |
|  * Use of this source code is governed by an MIT-style license that can be
 | |
|  * found in the LICENSE file at https://angular.io/license
 | |
|  */
 | |
| export {AstHost, Range} from './src/ast/ast_host';
 | |
| export {assert} from './src/ast/utils';
 | |
| export {FatalLinkerError, isFatalLinkerError} from './src/fatal_linker_error';
 | |
| export {DeclarationScope} from './src/file_linker/declaration_scope';
 | |
| export {FileLinker} from './src/file_linker/file_linker';
 | |
| export {LinkerEnvironment} from './src/file_linker/linker_environment';
 | |
| export {LinkerOptions} from './src/file_linker/linker_options';
 | |
| export {needsLinking} from './src/file_linker/needs_linking';
 |