File: semanticClassificatonTypeAlias.ts

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// <reference path="fourslash.ts"/>

////type /*0*/Alias = number
////var x: /*1*/Alias;
////var y = </*2*/Alias>{};
////function f(x: /*3*/Alias): /*4*/Alias { return undefined; }

var c = classification;
verify.semanticClassificationsAre(
    c.typeAliasName("Alias", test.marker("0").position),
    c.typeAliasName("Alias", test.marker("1").position),
    c.typeAliasName("Alias", test.marker("2").position),
    c.typeAliasName("Alias", test.marker("3").position),
    c.typeAliasName("Alias", test.marker("4").position)
    );