
The function signature selection algorithm is totally naive. It'd unconditionally pick the first signature if there are multiple overloads. This commit improves the algorithm by returning an exact match if one exists. PR Close #37494
31 lines
808 B
TypeScript
31 lines
808 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
|
|
*/
|
|
|
|
import {CommonModule} from '@angular/common';
|
|
import {NgModule} from '@angular/core';
|
|
import {FormsModule} from '@angular/forms';
|
|
import {AppComponent} from './app.component';
|
|
import * as ParsingCases from './parsing-cases';
|
|
|
|
@NgModule({
|
|
imports: [CommonModule, FormsModule],
|
|
declarations: [
|
|
AppComponent,
|
|
ParsingCases.CounterDirective,
|
|
ParsingCases.HintModel,
|
|
ParsingCases.NumberModel,
|
|
ParsingCases.StringModel,
|
|
ParsingCases.TemplateReference,
|
|
ParsingCases.TestComponent,
|
|
ParsingCases.TestPipe,
|
|
ParsingCases.WithContextDirective,
|
|
]
|
|
})
|
|
export class AppModule {
|
|
}
|