test(language-service): Remove redundant marker methods in MockHost (#33115)

Remove the following methods from MockHost:

1. `getMarkerLocations`: Replaced with `getLocationMarkerFor()`
2. `getReferenceMarkers`: Replaced with `getReferenceMarkerFor()`

PR Close #33115
This commit is contained in:
Keen Yee Liau
2019-10-11 13:56:33 -07:00
committed by Miško Hevery
parent 1a67d70bf8
commit 84ba1f012e
7 changed files with 85 additions and 77 deletions

View File

@ -14,28 +14,28 @@ export interface Person {
}
@Component({
template: '{{~{foo}foo~{foo-end}}}',
template: '{{~{start-foo}foo~{end-foo}}}',
})
export class WrongFieldReference {
bar = 'bar';
}
@Component({
template: '{{~{nam}person.nam~{nam-end}}}',
template: '{{~{start-nam}person.nam~{end-nam}}}',
})
export class WrongSubFieldReference {
person: Person = {name: 'Bob', age: 23};
}
@Component({
template: '{{~{myField}myField~{myField-end}}}',
template: '{{~{start-myField}myField~{end-myField}}}',
})
export class PrivateReference {
private myField = 'My Field';
}
@Component({
template: '{{~{mod}"a" ~{mod-end}% 2}}',
template: '{{~{start-mod}"a" ~{end-mod}% 2}}',
})
export class ExpectNumericType {
}

View File

@ -15,7 +15,7 @@ export interface Person {
@Component({
template: `
<div *ngFor="let person of ~{people_1}people_1~{people_1-end}">
<div *ngFor="let person of ~{start-people_1}people_1~{end-people_1}">
<span>{{person.name}}</span>
</div>`,
})
@ -24,7 +24,7 @@ export class UnknownPeople {
@Component({
template: `
<div ~{even_1}*ngFor="let person of people; let e = even_1"~{even_1-end}>
<div ~{start-even_1}*ngFor="let person of people; let e = even_1"~{end-even_1}>
<span>{{person.name}}</span>
</div>`,
})
@ -34,7 +34,7 @@ export class UnknownEven {
@Component({
template: `
<div *ngFor="let person of people; trackBy ~{trackBy_1}trackBy_1~{trackBy_1-end}">
<div *ngFor="let person of people; trackBy ~{start-trackBy_1}trackBy_1~{end-trackBy_1}">
<span>{{person.name}}</span>
</div>`,
})

View File

@ -10,7 +10,7 @@ import {Component} from '@angular/core';
@Component({
template: `
<div ~{implicit}*ngIf="show; let l=unknown"~{implicit-end}>
<div ~{start-implicit}*ngIf="show; let l=unknown"~{end-implicit}>
Showing now!
</div>`,
})