Skip to content

Commit

Permalink
Merge pull request #406 from microsoft/FixedLengthArrays
Browse files Browse the repository at this point in the history
A variety of enhancements for fixed length inline arrays
  • Loading branch information
AArnott authored Sep 18, 2021
2 parents 1236faf + 7b79e93 commit fcc828c
Show file tree
Hide file tree
Showing 4 changed files with 578 additions and 331 deletions.
2 changes: 2 additions & 0 deletions src/Microsoft.Windows.CsWin32/FastSyntaxFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ internal static SyntaxToken Token(SyntaxKind kind)

internal static ObjectCreationExpressionSyntax ObjectCreationExpression(TypeSyntax type) => SyntaxFactory.ObjectCreationExpression(Token(TriviaList(), SyntaxKind.NewKeyword, TriviaList(Space)), type, ArgumentList(), null);

internal static ArrayCreationExpressionSyntax ArrayCreationExpression(ArrayTypeSyntax type, InitializerExpressionSyntax? initializer = null) => SyntaxFactory.ArrayCreationExpression(Token(SyntaxKind.NewKeyword), type, initializer);

internal static XmlCrefAttributeSyntax XmlCrefAttribute(CrefSyntax cref) => XmlCrefAttribute(cref, SyntaxKind.DoubleQuoteToken);

internal static XmlCrefAttributeSyntax XmlCrefAttribute(CrefSyntax cref, SyntaxKind quoteKind)
Expand Down
Loading

0 comments on commit fcc828c

Please sign in to comment.