Skip to content

No comment preservation for parenthesized expressions #9873

Closed
@DanielRosenwasser

Description

@DanielRosenwasser

@evmar ran into issues where generating a JSDoc comment for a type assertion for Closure did not get preserved.

Neither

var x = (/** @type {Foo.Bar} */ y);

nor

var x = /** @type {Foo.Bar} */ (y);

have their comments preserved, though I'm not sure which is more common.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Comment EmitThe issue relates to the emission of comments when compilingFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions