-
-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
In 0.20.0, this line:
public const string PromotionClientApi = nameof(PromotionClientApi);
Emitted this:
[ {
"type" : "modifier",
"text" : "public"
}, {
"type" : "modifier",
"text" : "const"
}, {
"type" : "variable_declaration",
"text" : "string PromotionClientApi = nameof(PromotionClientApi)",
"children": [ {
"type" : "predefined_type",
"text" : "string"
}, {
"type" : "variable_declarator",
"text" : "PromotionClientApi = nameof(PromotionClientApi)",
"children": [ {
"type" : "identifier",
"text" : "PromotionClientApi"
}, {
"type" : "equals_value_clause",
"text" : "= nameof(PromotionClientApi)",
"children": [ {
"type" : "=",
"text" : "="
}, {
"type" : "invocation_expression",
"text" : "nameof(PromotionClientApi)"
} ]
} ]
} ]
}, {
"type" : ";",
"text" : ";"
} ]
After upgrading to any later version, it emits this:
[ {
"type" : "modifier",
"text" : "public"
}, {
"type" : "modifier",
"text" : "const"
}, {
"type" : "variable_declaration",
"text" : "string PromotionClientApi = nameof(PromotionClientApi)",
"children": [ {
"type" : "predefined_type",
"text" : "string"
}, {
"type" : "variable_declarator",
"text" : "PromotionClientApi = nameof(PromotionClientApi)",
"children": [ {
"type" : "identifier",
"text" : "PromotionClientApi"
}, {
"type" : "=",
"text" : "="
}, {
"type" : "invocation_expression",
"text" : "nameof(PromotionClientApi)"
} ]
} ]
}, {
"type" : ";",
"text" : ";"
} ]
However I couldn't find any doc about this. Is this expected?
Metadata
Metadata
Assignees
Labels
No labels