Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

@fileoverview in file with async gets moved #1095

Open
@evmar

Description

@evmar

Consider a file like:

/** @fileoverview foo */

codeHere();

If codeHere is export {}; async function ... or export async function ... the fileoverview comment transformer causes the fileoverview to be moved down below the goog.module etc in the emit.

But if instead it's async function ... or export function ... then it stays at the top!

It seems to be some interaction with the many weird things the fileoverview transformer does, along with maybe how export/async are downlevelled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    internal-issue-createdGoogle internal issue has been created for this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions