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/partial_evaluator/src/diagnostics" />
|
9 | import ts from 'typescript';
|
10 | import { DynamicValue } from './dynamic';
|
11 | import { ResolvedValue } from './result';
|
12 | /**
|
13 | * Derives a type representation from a resolved value to be reported in a diagnostic.
|
14 | *
|
15 | * @param value The resolved value for which a type representation should be derived.
|
16 | * @param maxDepth The maximum nesting depth of objects and arrays, defaults to 1 level.
|
17 | */
|
18 | export declare function describeResolvedType(value: ResolvedValue, maxDepth?: number): string;
|
19 | /**
|
20 | * Creates an array of related information diagnostics for a `DynamicValue` that describe the trace
|
21 | * of why an expression was evaluated as dynamic.
|
22 | *
|
23 | * @param node The node for which a `ts.Diagnostic` is to be created with the trace.
|
24 | * @param value The dynamic value for which a trace should be created.
|
25 | */
|
26 | export declare function traceDynamicValue(node: ts.Node, value: DynamicValue): ts.DiagnosticRelatedInformation[];
|