UNPKG

858 BTypeScriptView Raw
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/language-service/src/expression_diagnostics" />
9import { TemplateAstPath } from '@angular/compiler';
10import { SymbolTable } from './symbols';
11import * as ng from './types';
12export declare function getTemplateExpressionDiagnostics(info: ng.DiagnosticTemplateInfo): ng.Diagnostic[];
13/**
14 * Returns the symbols available in a particular scope of a template.
15 * @param info parsed template information
16 * @param path path of template nodes narrowing to the context the expression scope should be
17 * derived for.
18 */
19export declare function getExpressionScope(info: ng.DiagnosticTemplateInfo, path: TemplateAstPath): SymbolTable;