Ejemplo n.º 1
0
        internal static string EncLogRowToString(EditAndContinueLogEntry row)
        {
            TableIndex tableIndex;
            MetadataTokens.TryGetTableIndex(row.Handle.Kind, out tableIndex);

            return string.Format(
                "Row({0}, TableIndex.{1}, EditAndContinueOperation.{2})",
                MetadataTokens.GetRowNumber(row.Handle),
                tableIndex,
                row.Operation);
        }
Ejemplo n.º 2
0
        private static bool IsDefinition(EditAndContinueLogEntry entry)
        {
            TableIndex index;

            Assert.True(MetadataTokens.TryGetTableIndex(entry.Handle.HandleType, out index));

            switch (index)
            {
            case TableIndex.MethodDef:
            case TableIndex.Field:
            case TableIndex.Constant:
            case TableIndex.GenericParam:
            case TableIndex.GenericParamConstraint:
            case TableIndex.Event:
            case TableIndex.CustomAttribute:
            case TableIndex.DeclSecurity:
            case TableIndex.Assembly:
            case TableIndex.MethodImpl:
            case TableIndex.Param:
            case TableIndex.Property:
            case TableIndex.TypeDef:
            case TableIndex.ExportedType:
            case TableIndex.StandAloneSig:
            case TableIndex.ClassLayout:
            case TableIndex.FieldLayout:
            case TableIndex.FieldMarshal:
            case TableIndex.File:
            case TableIndex.ImplMap:
            case TableIndex.InterfaceImpl:
            case TableIndex.ManifestResource:
            case TableIndex.MethodSemantics:
            case TableIndex.Module:
            case TableIndex.NestedClass:
            case TableIndex.EventMap:
            case TableIndex.PropertyMap:
                return(true);
            }

            return(false);
        }
Ejemplo n.º 3
0
        internal static string EncLogRowToString(EditAndContinueLogEntry row)
        {
            TableIndex tableIndex;
            MetadataTokens.TryGetTableIndex(row.Handle.Kind, out tableIndex);

            return string.Format(
                "Row({0}, TableIndex.{1}, EditAndContinueOperation.{2})",
                MetadataTokens.GetRowNumber(row.Handle),
                tableIndex,
                row.Operation);
        }
Ejemplo n.º 4
0
        private static bool IsDefinition(EditAndContinueLogEntry entry)
        {
            TableIndex index;
            Assert.True(MetadataTokens.TryGetTableIndex(entry.Handle.Kind, out index));

            switch (index)
            {
                case TableIndex.MethodDef:
                case TableIndex.Field:
                case TableIndex.Constant:
                case TableIndex.GenericParam:
                case TableIndex.GenericParamConstraint:
                case TableIndex.Event:
                case TableIndex.CustomAttribute:
                case TableIndex.DeclSecurity:
                case TableIndex.Assembly:
                case TableIndex.MethodImpl:
                case TableIndex.Param:
                case TableIndex.Property:
                case TableIndex.TypeDef:
                case TableIndex.ExportedType:
                case TableIndex.StandAloneSig:
                case TableIndex.ClassLayout:
                case TableIndex.FieldLayout:
                case TableIndex.FieldMarshal:
                case TableIndex.File:
                case TableIndex.ImplMap:
                case TableIndex.InterfaceImpl:
                case TableIndex.ManifestResource:
                case TableIndex.MethodSemantics:
                case TableIndex.Module:
                case TableIndex.NestedClass:
                case TableIndex.EventMap:
                case TableIndex.PropertyMap:
                    return true;
            }

            return false;
        }
Ejemplo n.º 5
0
 private static string EncLogRowToString(EditAndContinueLogEntry row)
 {
     return string.Format(
         "Row({0}, TableIndices.{1}, EditAndContinueOperation.{2})",
         MetadataTokens.GetRowNumber(row.Handle),
         MetadataTokens.GetTableIndex(row.Handle),
         row.Operation);
 }