示例#1
0
        public PropertyDeclarationSyntax Build(PropertyType propertyType = PropertyType.ReadonlyGet)
        {
            if (this.propertyType == PropertyType.ReadonlyGet)
            {
                return(SF.PropertyDeclaration(
                           GeneratorHelper.EmptyAttributeList(),
                           SF.TokenList(this.modifiers),
                           this.type,
                           default(ExplicitInterfaceSpecifierSyntax),
                           GeneratorHelper.IdentifierToken(this.identifier),
                           SF.AccessorList(
                               GeneratorHelper.List(
                                   SF.AccessorDeclaration(SyntaxKind.GetAccessorDeclaration)
                                   .WithSemicolonToken(Tokens.Semicolon))),
                           default(ArrowExpressionClauseSyntax),
                           default(EqualsValueClauseSyntax)
                           ));
            }

            throw new NotImplementedException();
        }