Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | /// <amd-module name="@angular/compiler-cli/linker/src/file_linker/needs_linking" />
|
---|
9 | /**
|
---|
10 | * Determines if the provided source file may need to be processed by the linker, i.e. whether it
|
---|
11 | * potentially contains any declarations. If true is returned, then the source file should be
|
---|
12 | * processed by the linker as it may contain declarations that need to be fully compiled. If false
|
---|
13 | * is returned, parsing and processing of the source file can safely be skipped to improve
|
---|
14 | * performance.
|
---|
15 | *
|
---|
16 | * This function may return true even for source files that don't actually contain any declarations
|
---|
17 | * that need to be compiled.
|
---|
18 | *
|
---|
19 | * @param path the absolute path of the source file for which to determine whether linking may be
|
---|
20 | * needed.
|
---|
21 | * @param source the source file content as a string.
|
---|
22 | * @returns whether the source file may contain declarations that need to be linked.
|
---|
23 | */
|
---|
24 | export declare function needsLinking(path: string, source: string): boolean;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.