예제 #1
0
        public bool TryResolveFieldInfo(
            VariableDeclaratorSyntax node,
            out FieldInfo result)
        {
            var classNode = node.RecursizeParent <ClassDeclarationSyntax>();
            var classType = ResolveType(classNode);

            result = classType.GetFields(AllBindings).FirstOrDefault(p => p.Name == node.Identifier.ToString());

            return(result != null);
        }