TypeScript-TmLanguage/tests/baselines/docComments.baseline.txt

108 строки
5.1 KiB
Plaintext

original file
-----------------------------------
/**
* This function takes two parameters
* @param {string} param1 Some string param.
* @param {number} param2 Some number param.
* some other contents
*/
function foo(param1: string, param2: number) {
}
-----------------------------------
Grammar: TypeScript.tmLanguage
-----------------------------------
>/**
^^^
source.ts comment.block.documentation.ts punctuation.definition.comment.ts
> * This function takes two parameters
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
source.ts comment.block.documentation.ts
> * @param {string} param1 Some string param.
^^^
source.ts comment.block.documentation.ts
^
source.ts comment.block.documentation.ts storage.type.class.jsdoc punctuation.definition.block.tag.jsdoc
^^^^^
source.ts comment.block.documentation.ts storage.type.class.jsdoc
^
source.ts comment.block.documentation.ts
^
source.ts comment.block.documentation.ts entity.name.type.instance.jsdoc punctuation.definition.bracket.curly.begin.jsdoc
^^^^^^
source.ts comment.block.documentation.ts entity.name.type.instance.jsdoc
^
source.ts comment.block.documentation.ts entity.name.type.instance.jsdoc punctuation.definition.bracket.curly.end.jsdoc
^
source.ts comment.block.documentation.ts
^^^^^^
source.ts comment.block.documentation.ts variable.other.jsdoc
^^^^^^^^^^^^^^^^^^^^
source.ts comment.block.documentation.ts
> * @param {number} param2 Some number param.
^^^
source.ts comment.block.documentation.ts
^
source.ts comment.block.documentation.ts storage.type.class.jsdoc punctuation.definition.block.tag.jsdoc
^^^^^
source.ts comment.block.documentation.ts storage.type.class.jsdoc
^
source.ts comment.block.documentation.ts
^
source.ts comment.block.documentation.ts entity.name.type.instance.jsdoc punctuation.definition.bracket.curly.begin.jsdoc
^^^^^^
source.ts comment.block.documentation.ts entity.name.type.instance.jsdoc
^
source.ts comment.block.documentation.ts entity.name.type.instance.jsdoc punctuation.definition.bracket.curly.end.jsdoc
^
source.ts comment.block.documentation.ts
^^^^^^
source.ts comment.block.documentation.ts variable.other.jsdoc
^^^^^^^^^^^^^^^^^^^^^
source.ts comment.block.documentation.ts
> * some other contents
^^^^^^^^^^^^^^^^^^^^^^^
source.ts comment.block.documentation.ts
> */
^
source.ts comment.block.documentation.ts
^^
source.ts comment.block.documentation.ts punctuation.definition.comment.ts
>function foo(param1: string, param2: number) {
^^^^^^^^
source.ts meta.function.ts storage.type.function.ts
^
source.ts meta.function.ts
^^^
source.ts meta.function.ts meta.definition.function.ts entity.name.function.ts
^
source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
^^^^^^
source.ts meta.function.ts meta.parameters.ts variable.parameter.ts
^
source.ts meta.function.ts meta.parameters.ts meta.type.annotation.ts keyword.operator.type.annotation.ts
^
source.ts meta.function.ts meta.parameters.ts meta.type.annotation.ts
^^^^^^
source.ts meta.function.ts meta.parameters.ts meta.type.annotation.ts support.type.primitive.ts
^
source.ts meta.function.ts meta.parameters.ts punctuation.separator.parameter.ts
^
source.ts meta.function.ts meta.parameters.ts
^^^^^^
source.ts meta.function.ts meta.parameters.ts variable.parameter.ts
^
source.ts meta.function.ts meta.parameters.ts meta.type.annotation.ts keyword.operator.type.annotation.ts
^
source.ts meta.function.ts meta.parameters.ts meta.type.annotation.ts
^^^^^^
source.ts meta.function.ts meta.parameters.ts meta.type.annotation.ts support.type.primitive.ts
^
source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.end.ts
^
source.ts meta.function.ts
^
source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
>}
^
source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts