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 {
}