Пример #1
0
        List <ReferenceSegment> IAssemblyBrowserNodeBuilder.Disassemble(TextEditor data, ITreeNavigator navigator)
        {
            if (MethodDefinitionNodeBuilder.HandleSourceCodeEntity(navigator, data))
            {
                return(null);
            }
            var property = (PropertyDefinition)navigator.DataItem;

            return(MethodDefinitionNodeBuilder.Disassemble(data, rd => rd.DisassembleProperty(property)));
        }
Пример #2
0
        List <ReferenceSegment> IAssemblyBrowserNodeBuilder.Disassemble(TextEditor data, ITreeNavigator navigator)
        {
            if (MethodDefinitionNodeBuilder.HandleSourceCodeEntity(navigator, data))
            {
                return(null);
            }
            var property = (IProperty)navigator.DataItem;

            return(MethodDefinitionNodeBuilder.Disassemble(data, rd => rd.DisassembleProperty(property.ParentModule.PEFile, (System.Reflection.Metadata.PropertyDefinitionHandle)property.MetadataToken)));
        }
Пример #3
0
 public List<ReferenceSegment> Disassemble(TextEditor data, ITreeNavigator navigator)
 {
     var assemblyLoader = (AssemblyLoader)navigator.DataItem;
     var compilationUnit = assemblyLoader.Assembly;
     if (compilationUnit == null) {
         LoggingService.LogError ("Can't get cecil object for assembly:" + assemblyLoader.Assembly.FullName);
         return new List<ReferenceSegment> ();
     }
     return MethodDefinitionNodeBuilder.Disassemble (data, rd => rd.WriteAssemblyHeader (compilationUnit));
 }
        List <ReferenceSegment> IAssemblyBrowserNodeBuilder.Disassemble(TextEditor data, ITreeNavigator navigator)
        {
            if (MethodDefinitionNodeBuilder.HandleSourceCodeEntity(navigator, data))
            {
                return(null);
            }
            var field = (FieldDefinition)navigator.DataItem;

            if (field == null)
            {
                return(null);
            }
            return(MethodDefinitionNodeBuilder.Disassemble(data, rd => rd.DisassembleField(field)));
        }
Пример #5
0
        List <ReferenceSegment> IAssemblyBrowserNodeBuilder.Disassemble(TextEditor data, ITreeNavigator navigator)
        {
            if (MethodDefinitionNodeBuilder.HandleSourceCodeEntity(navigator, data))
            {
                return(null);
            }
            var field = (IField)navigator.DataItem;

            if (field == null)
            {
                return(null);
            }
            return(MethodDefinitionNodeBuilder.Disassemble(data, rd => rd.DisassembleField(field.ParentModule.PEFile, (System.Reflection.Metadata.FieldDefinitionHandle)field.MetadataToken)));
        }
        public List <ReferenceSegment> Disassemble(TextEditor data, ITreeNavigator navigator)
        {
            if (MethodDefinitionNodeBuilder.HandleSourceCodeEntity(navigator, data))
            {
                return(null);
            }
            var type = (ITypeDefinition)navigator.DataItem;

            if (type == null)
            {
                return(null);
            }

            return(MethodDefinitionNodeBuilder.Disassemble(data, rd => rd.DisassembleType(type.ParentModule.PEFile, (System.Reflection.Metadata.TypeDefinitionHandle)type.MetadataToken)));
        }
Пример #7
0
        public List <ReferenceSegment> Disassemble(TextEditor data, ITreeNavigator navigator)
        {
            if (MethodDefinitionNodeBuilder.HandleSourceCodeEntity(navigator, data))
            {
                return(null);
            }
            var type = (TypeDefinition)navigator.DataItem;

            if (type == null)
            {
                return(null);
            }

            return(MethodDefinitionNodeBuilder.Disassemble(data, rd => rd.DisassembleType(type)));
        }