Skip to content

Commit

Permalink
Update class grammar comments (PowerShell#3688)
Browse files Browse the repository at this point in the history
  • Loading branch information
lzybkr authored and daxian-dbw committed May 2, 2017
1 parent c7e3778 commit dccce7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/System.Management.Automation/engine/parser/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3803,8 +3803,8 @@ private StatementAst DoWhileStatementRule(LabelToken labelToken, Token doToken)
private StatementAst ClassDefinitionRule(List<AttributeBaseAst> customAttributes, Token classToken)
{
//G class-statement:
//G 'class' new-lines:opt class-name new-lines:opt '{' class-member-list '}'
//G 'class' new-lines:opt class-name new-lines:opt ':' base-type-list '{' new-lines:opt class-member-list:opt '}'
//G attribute-list:opt 'class' new-lines:opt class-name new-lines:opt '{' class-member-list '}'
//G attribute-list:opt 'class' new-lines:opt class-name new-lines:opt ':' base-type-list '{' new-lines:opt class-member-list:opt '}'
//G
//G class-name:
//G simple-name
Expand Down Expand Up @@ -3965,6 +3965,7 @@ private MemberAst ClassMemberRule(string className, out List<Ast> astsOnError)
//G member-attribute:
//G attribute
//G 'static'
//G 'hidden'

IScriptExtent startExtent = null;
var attributeList = new List<AttributeAst>();
Expand Down

0 comments on commit dccce7e

Please sign in to comment.