Skip to content

Code generation does not correctly escape language keywords used as identifiers #8

@ReubenBond

Description

@ReubenBond

Parameters which use language keywords as their name are not correctly escaped by current code generation, which causes compilation failures.

For example, this will cause generated code to fail to compile:

public interface IReproGrain : IGrainWithIntegerKey
{
  Task Repro(int @event, bool @new, string @class);
}

A bunch of early adopters have run into this issue (serves us right for calling parameters "event" 😝)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions