Beispiel #1
0
 /// <summary>
 /// Deserialize
 /// </summary>
 internal static SpecFilePip InternalDeserialize(PipReader reader)
 {
     return(new SpecFilePip(
                specFile: reader.ReadFileArtifact(),
                definitionLocation: reader.ReadLocationData(),
                owningModule: reader.ReadModuleId()));
 }
Beispiel #2
0
 /// <summary>
 /// Deserialize
 /// </summary>
 internal static ModulePip InternalDeserialize(PipReader reader)
 {
     return(new ModulePip(
                module: reader.ReadModuleId(),
                identity: reader.ReadStringId(),
                version: reader.ReadStringId(),
                location: LocationData.Deserialize(reader),
                resolverKind: reader.ReadStringId(),
                resolverName: reader.ReadStringId()
                ));
 }
Beispiel #3
0
        internal static PipProvenance Deserialize(PipReader reader)
        {
            Contract.Requires(reader != null);

            long         semiStableHash  = reader.ReadInt64();
            ModuleId     moduleId        = reader.ReadModuleId();
            StringId     moduleName      = reader.ReadStringId();
            FullSymbol   outputValueName = reader.ReadFullSymbol();
            LocationData token           = reader.ReadLocationData();
            QualifierId  qualifierId     = new QualifierId(reader.ReadInt32Compact());
            PipData      usage           = reader.ReadPipData();

            return(new PipProvenance(
                       semiStableHash,
                       moduleId,
                       moduleName,
                       outputValueName,
                       token,
                       qualifierId,
                       usage));
        }