Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[6a3a178] | 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/src/ngtsc/typecheck/api/scope" />
|
---|
| 9 | import * as ts from 'typescript';
|
---|
| 10 | import { ClassDeclaration } from '../../reflection';
|
---|
| 11 | import { SymbolWithValueDeclaration } from '../../util/src/typescript';
|
---|
| 12 | /**
|
---|
| 13 | * Metadata on a directive which is available in the scope of a template.
|
---|
| 14 | */
|
---|
| 15 | export interface DirectiveInScope {
|
---|
| 16 | /**
|
---|
| 17 | * The `ts.Symbol` for the directive class.
|
---|
| 18 | */
|
---|
| 19 | tsSymbol: SymbolWithValueDeclaration;
|
---|
| 20 | /**
|
---|
| 21 | * The module which declares the directive.
|
---|
| 22 | */
|
---|
| 23 | ngModule: ClassDeclaration | null;
|
---|
| 24 | /**
|
---|
| 25 | * The selector for the directive or component.
|
---|
| 26 | */
|
---|
| 27 | selector: string;
|
---|
| 28 | /**
|
---|
| 29 | * `true` if this directive is a component.
|
---|
| 30 | */
|
---|
| 31 | isComponent: boolean;
|
---|
| 32 | /**
|
---|
| 33 | * `true` if this directive is a structural directive.
|
---|
| 34 | */
|
---|
| 35 | isStructural: boolean;
|
---|
| 36 | }
|
---|
| 37 | /**
|
---|
| 38 | * Metadata for a pipe which is available in the scope of a template.
|
---|
| 39 | */
|
---|
| 40 | export interface PipeInScope {
|
---|
| 41 | /**
|
---|
| 42 | * The `ts.Symbol` for the pipe class.
|
---|
| 43 | */
|
---|
| 44 | tsSymbol: ts.Symbol;
|
---|
| 45 | /**
|
---|
| 46 | * Name of the pipe.
|
---|
| 47 | */
|
---|
| 48 | name: string;
|
---|
| 49 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.