Exemplo n.º 1
0
        public static string                    sourceCode(this MemberReferenceExpression memberReferenceExpression, string file)
        {
            var methodDeclaration = memberReferenceExpression.methodDeclaration();

            if (methodDeclaration != null)
            {
                var sourceCode = methodDeclaration.sourceCode(file);
                if (sourceCode.valid())
                {
                    return(sourceCode);
                }
            }
            "could not find sourcecode in {0} for provided memberReferenceExpression: {1}".format(file, memberReferenceExpression).error();
            return("");
        }