kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/typescript/testdata/enum.ts (about)

     1  export {}
     2  
     3  //- @Fruit defines/binding FruitType
     4  //- FruitType.node/kind record
     5  //- @Fruit defines/binding FruitVal
     6  //- FruitVal.node/kind constant
     7  enum Fruit {
     8    //- @APPLE defines/binding Apple
     9    //- Apple.node/kind constant
    10    //- Apple childof FruitType
    11    APPLE,
    12    PEAR
    13  }
    14  
    15  //- @Fruit ref FruitType
    16  let x: Fruit;
    17  //- @Fruit ref FruitVal
    18  //- @APPLE ref Apple
    19  x = Fruit.APPLE;