提交 41f22937 编写于 作者: C Cyrus Najmabadi

PR feedback.

上级 9193aee7
......@@ -1141,7 +1141,7 @@ internal AttributeArgumentListSyntax ParseAttributeArgumentList()
try
{
bool shouldHaveName = false;
tryAgain:
tryAgain:
if (this.CurrentToken.Kind != SyntaxKind.CloseParenToken)
{
if (this.IsPossibleAttributeArgument() || this.CurrentToken.Kind == SyntaxKind.CommaToken)
......@@ -2472,7 +2472,7 @@ private MemberDeclarationSyntax ParseMemberDeclarationOrStatement(SyntaxKind par
return _syntaxFactory.IncompleteMember(attributes, modifiers.ToTokenList(), type);
}
parse_member_name:;
parse_member_name:;
// Check here for operators
// Allow old-style implicit/explicit casting operator syntax, just so we can give a better error
if (IsOperatorKeyword())
......@@ -3416,18 +3416,12 @@ private PostSkipAction SkipBadAccessorListTokens(ref SyntaxToken openBrace, Synt
private bool IsPossibleAccessor()
{
if (this.CurrentToken.Kind == SyntaxKind.IdentifierToken
return this.CurrentToken.Kind == SyntaxKind.IdentifierToken
|| IsPossibleAttributeDeclaration()
|| SyntaxFacts.GetAccessorDeclarationKind(this.CurrentToken.ContextualKind) != SyntaxKind.None
|| this.CurrentToken.Kind == SyntaxKind.OpenBraceToken // for accessor blocks w/ missing keyword
|| this.CurrentToken.Kind == SyntaxKind.SemicolonToken // for empty body accessors w/ missing keyword
)
{
return true;
}
return IsPossibleAccessorModifier();
|| IsPossibleAccessorModifier();
}
private bool IsPossibleAccessorModifier()
......
......@@ -8365,7 +8365,7 @@ class Class2
public string Property { get { return this.Source.$$
public Class1 Source { get; set; }
}";
VerifyAnyItemExists(markup);
VerifyItemExists(markup, "Property1");
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册