Skip to content

Commit

Permalink
fix readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
msxichen committed Jul 24, 2020
1 parent 6f9c471 commit bf1ace8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powershell/plugins/plugin-create-inline-properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ function createVirtualParameters(operation: CommandOperation) {
if (vps) {
for (const virtualProperty of [...vps.inherited, ...vps.owned, ...vps.inlined]) {
// dolauli add virtual parameter for virtual property
if (virtualProperty.private || virtualProperty.property.readonly || virtualProperty.property.language.default.constantValue !== undefined || virtualProperty.property.language.default.HeaderProperty === 'Header') {
if (virtualProperty.private || virtualProperty.property.readOnly || virtualProperty.property.language.default.constantValue !== undefined || virtualProperty.property.language.default.HeaderProperty === 'Header') {
// private or readonly properties aren't needed as parameters.
continue;
}
Expand Down

0 comments on commit bf1ace8

Please sign in to comment.