コード例 #1
0
        internal static async Task <ExpressionStatementSyntax> OnPropertyChangedInvocationStatementAsync(this DocumentEditor editor, IMethodSymbol invoker, string propertyName, CancellationToken cancellationToken)
        {
            var qualifyMethodAccess = await editor.QualifyMethodAccessAsync(cancellationToken)
                                      .ConfigureAwait(false);

            var qualifyPropertyAccess = await editor.QualifyPropertyAccessAsync(cancellationToken)
                                        .ConfigureAwait(false);

            return(InpcFactory.OnPropertyChangedInvocationStatement(
                       InpcFactory.SymbolAccess(invoker.Name, qualifyMethodAccess),
                       InpcFactory.Nameof(InpcFactory.SymbolAccess(propertyName, qualifyPropertyAccess))));
        }