Skip to content

Triple Slash comments produce comment offset in generated files. #762

@ehallander9591

Description

@ehallander9591

protobuf.js version: 6.7.3

This is similar to an issue I had reported concerning, I think, a blank line before an enum offset the comments.

It would seem that a triple slash comment on the message definition line also causes subsequent triple slash comments to offset as well.

message Location {     /// A geo location on Earth
	float latitude = 1;  			/// Latitude in decimal degrees.  Must be >= -90.0 and <= 90.0
	float longitude = 2; 			/// Longitude in decimal degrees.  Must be >= -180.0 and <= 180.0
	int32 altitude_in_meters = 3; 	/// Altitude in meters above ground
}

produces the following

        /**
         * Constructs a new Location.
         * @exports mpxs.model.Location
         * @constructor
         * @param {mpxs.model.Location$Properties=} [properties] Properties to set
         */
        class Location {

            /**
             * Constructs a new Location.
             * @exports mpxs.model.Location
             * @constructor
             * @param {mpxs.model.Location$Properties=} [properties] Properties to set
             */
            constructor(properties?: mpxs.model.Location$Properties);

            /**
             * A geo location on Earth
             * @type {number}
             */
            public latitude: number;

            /**
             * Latitude in decimal degrees.  Must be >= -90.0 and <= 90.0
             * @type {number}
             */
            public longitude: number;

            /**
             * Longitude in decimal degrees.  Must be >= -180.0 and <= 180.0
             * @type {number}
             */
            public altitudeInMeters: number;

.
.
.
<please paste the stack trace of the error if applicable>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions