示例#1
0
        public static SyntaxTokenList PrivateAsyncKeyword(bool withLeadingLineFeed = false, bool withTrailingSpace = true)
        {
            if (withLeadingLineFeed)
            {
                return(SyntaxFactory.TokenList(
                           SyntaxTokenFactory.CarriageReturnLineFeed(),
                           SyntaxTokenFactory.PrivateKeyword(),
                           SyntaxTokenFactory.AsyncKeyword(withTrailingSpace)));
            }

            return(SyntaxFactory.TokenList(
                       SyntaxTokenFactory.PrivateKeyword(),
                       SyntaxTokenFactory.AsyncKeyword(withTrailingSpace)));
        }
示例#2
0
 public static SyntaxTokenList PrivateReadonlyKeyword(bool withTrailingSpace = true)
 {
     return(SyntaxFactory.TokenList(
                SyntaxTokenFactory.PrivateKeyword(),
                SyntaxTokenFactory.ReadOnlyKeyword(withTrailingSpace)));
 }