Skip to content

Commit 27e8523

Browse files
committed
PR feedback.
1 parent 2eee516 commit 27e8523

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Compilers/CSharp/Portable/Parser/LanguageParser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6385,7 +6385,7 @@ private FunctionPointerTypeSyntax ParseFunctionPointerTypeSyntax()
63856385
var missingType = SyntaxFactory.ModifiedType(default, missingTypeName);
63866386
missingTypes.Add(missingType);
63876387
// Handle the simple case of delegate*>. We don't try to deal with any variation of delegate*invalid>, as
6388-
// we we don't know for sure that the expression isn't a relational with something else.
6388+
// we don't know for sure that the expression isn't a relational with something else.
63896389
var greaterThanTokenError = TryEatToken(SyntaxKind.GreaterThanToken) ?? SyntaxFactory.MissingToken(SyntaxKind.GreaterThanToken);
63906390

63916391
var funcPtr = SyntaxFactory.FunctionPointerType(@delegate, asterisk, callingConvention, lessThanTokenError, missingTypes, greaterThanTokenError);
@@ -6471,7 +6471,7 @@ private bool IsPossibleCallingConvention(SyntaxToken asteriskToken)
64716471
// we'd have an error anyway, and it's more likely the user intended for it to be a
64726472
// function pointer convention than not.
64736473
// PROTOTYPE(func-ptr): refactor this out into a helper method to share with binding
6474-
switch (CurrentToken.Text)
6474+
switch (CurrentToken.ValueText)
64756475
{
64766476
case "cdecl":
64776477
case "managed":

src/Compilers/CSharp/Test/Syntax/Parsing/ParsingTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
22

3-
#define PARSING_TESTS_DUMP
3+
//#define PARSING_TESTS_DUMP
44

55
using System.Collections.Generic;
66
using System.Diagnostics;

0 commit comments

Comments
 (0)