From dfcba807f0e922cf94edc75d5f749d4260da5f5b Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Fri, 25 Oct 2013 07:45:40 +0900 Subject: [PATCH] Rename project to SharpYaml --- CommonAssemblyInfo.cs | 2 +- Dumper/Dumper.csproj | 4 +- Dumper/Program.cs | 4 +- .../DeserializeObjectGraph.cs | 4 +- .../LoadYamlStream.cs | 4 +- .../Program.cs | 2 +- .../Properties/AssemblyInfo.cs | 4 +- .../SerializeObjectGraph.cs | 4 +- .../SharpYaml.Samples.csproj | 12 +- .../app.config | 0 .../DescriptorTests.cs | 6 +- .../Dump.cs | 2 +- .../EmitterTests.cs | 6 +- .../InsertionQueueTests.cs | 2 +- .../LookAheadBufferTests.cs | 2 +- .../ParserTestHelper.cs | 10 +- .../ParserTests.cs | 6 +- SharpYaml.Tests/ParserTests.cs.orig | 384 ++++++++++++ .../Properties/AssemblyInfo.cs | 4 +- .../ScannerTestHelper.cs | 6 +- .../ScannerTests.cs | 4 +- .../SchemaTests.cs | 8 +- .../ExceptionWithNestedSerialization.cs | 4 +- .../Serialization/ObjectFactoryTests.cs | 4 +- .../Serialization/Samples.cs | 4 +- .../Serialization/SerializationTests.cs | 8 +- .../Serialization/SerializationTests2.cs | 4 +- .../Serialization/TracingVisitor.cs | 4 +- .../Serialization/YamlStreamTests.cs | 4 +- .../SharpYaml.Tests.csproj | 8 +- .../YamlTest.cs | 2 +- .../files/backreference.yaml | 0 .../files/backwardsAlias.yaml | 0 .../files/converter.yaml | 0 .../files/convertible.yaml | 0 .../files/dictionary.yaml | 0 .../files/dictionaryExplicit.yaml | 0 .../files/empty.yaml | 0 .../files/explicitType.yaml | 0 .../files/fail-backreference.yaml | 0 .../files/forwardAlias.yaml | 0 .../files/invalid-reference.yaml | 0 .../files/list.yaml | 0 .../files/listExplicit.yaml | 0 .../files/listOfDictionaries.yaml | 0 .../files/local-tags.yaml | 0 .../files/namingConvention.yaml | 0 .../files/sample.yaml | 0 .../files/tags.yaml | 0 .../files/test1.yaml | 0 .../files/test10.yaml | 0 .../files/test11.yaml | 0 .../files/test12.yaml | 0 .../files/test13.yaml | 0 .../files/test14.yaml | 0 .../files/test2.yaml | 0 .../files/test3.yaml | 0 .../files/test4.yaml | 0 .../files/test5.yaml | 0 .../files/test6.yaml | 0 .../files/test7.yaml | 0 .../files/test8.yaml | 0 .../files/test9.yaml | 0 .../packages.config | 0 YamlDotNet.build => SharpYaml.build | 0 YamlDotNet.Core.nuspec => SharpYaml.nuspec | 0 SharpYaml.sln | 83 +++ YAMLLanguage/Key.snk => SharpYaml.snk | Bin .../CharacterAnalyzer.cs | 2 +- {YamlDotNet => SharpYaml}/Constants.cs | 4 +- {YamlDotNet => SharpYaml}/Emitter.cs | 10 +- {YamlDotNet => SharpYaml}/EmitterState.cs | 2 +- {YamlDotNet => SharpYaml}/EventReader.cs | 8 +- .../Events/AnchorAlias.cs | 2 +- .../Events/DocumentEnd.cs | 2 +- .../Events/DocumentStart.cs | 4 +- {YamlDotNet => SharpYaml}/Events/EventType.cs | 2 +- .../Events/IAnchorAlias.cs | 2 +- .../Events/IDocumentEnd.cs | 2 +- .../Events/IDocumentStart.cs | 4 +- .../Events/IMappingEnd.cs | 2 +- .../Events/IMappingStart.cs | 2 +- .../Events/INodeEvent.cs | 2 +- .../Events/IParsingEvent.cs | 2 +- {YamlDotNet => SharpYaml}/Events/IScalar.cs | 2 +- .../Events/ISequenceEnd.cs | 2 +- .../Events/ISequenceStart.cs | 2 +- .../Events/IStreamEnd.cs | 2 +- .../Events/IStreamStart.cs | 2 +- .../Events/MappingEnd.cs | 2 +- .../Events/MappingStart.cs | 2 +- {YamlDotNet => SharpYaml}/Events/NodeEvent.cs | 2 +- .../Events/ParsingEvent.cs | 2 +- {YamlDotNet => SharpYaml}/Events/Scalar.cs | 2 +- .../Events/SequenceEnd.cs | 2 +- .../Events/SequenceStart.cs | 2 +- {YamlDotNet => SharpYaml}/Events/StreamEnd.cs | 2 +- .../Events/StreamStart.cs | 2 +- {YamlDotNet => SharpYaml}/FakeList.cs | 2 +- {YamlDotNet => SharpYaml}/IEmitter.cs | 4 +- {YamlDotNet => SharpYaml}/ILookAheadBuffer.cs | 2 +- {YamlDotNet => SharpYaml}/IParser.cs | 4 +- {YamlDotNet => SharpYaml}/InsertionQueue.cs | 2 +- {YamlDotNet => SharpYaml}/LookAheadBuffer.cs | 2 +- {YamlDotNet => SharpYaml}/Mark.cs | 2 +- {YamlDotNet => SharpYaml}/Parser.cs | 22 +- {YamlDotNet => SharpYaml}/ParserState.cs | 2 +- .../Properties/AssemblyInfo.cs | 4 +- {YamlDotNet => SharpYaml}/ScalarStyle.cs | 2 +- {YamlDotNet => SharpYaml}/Scanner.cs | 4 +- .../Schemas/CoreSchema.cs | 2 +- .../Schemas/ExtendedSchema.cs | 2 +- .../Schemas/FailsafeSchema.cs | 4 +- .../Schemas/IYamlSchema.cs | 4 +- .../Schemas/JsonSchema.cs | 2 +- .../Schemas/SchemaBase.cs | 4 +- .../SemanticErrorException.cs | 2 +- .../Serialization/AnchorEventEmitter.cs | 2 +- .../Serialization/AnchorNotFoundException.cs | 2 +- .../Serialization/AttributeRegistry.cs | 2 +- .../Serialization/ChainedEventEmitter.cs | 2 +- .../Serialization/ChainedObjectFactory.cs | 2 +- .../Serialization/DefaultObjectFactory.cs | 4 +- .../Descriptors/ArrayDescriptor.cs | 2 +- .../Descriptors/CollectionDescriptor.cs | 2 +- .../Descriptors/DictionaryDescriptor.cs | 2 +- .../Descriptors/FieldDescriptor.cs | 2 +- .../Descriptors/MemberDescriptorBase.cs | 2 +- .../Descriptors/NullableDescriptor.cs | 2 +- .../Descriptors/ObjectDescriptor.cs | 2 +- .../Descriptors/PrimitiveDescriptor.cs | 2 +- .../Descriptors/PropertyDescriptor.cs | 2 +- .../Descriptors/TypeDescriptorFactory.cs | 2 +- .../Serialization/DocumentLoadingState.cs | 4 +- .../Serialization/DuplicateAnchorException.cs | 2 +- .../Serialization/EmitterState.cs | 2 +- .../Serialization/EventInfo.cs | 4 +- .../Serialization/IAttributeRegistry.cs | 2 +- .../Serialization/IDynamicStyleFormat.cs | 2 +- .../Serialization/IEventEmitter.cs | 2 +- .../Serialization/IMemberDescriptor.cs | 2 +- .../Serialization/IObjectFactory.cs | 2 +- .../Serialization/ITagTypeRegistry.cs | 2 +- .../Serialization/ITypeDescriptor.cs | 2 +- .../Serialization/ITypeDescriptorFactory.cs | 2 +- .../Serialization/IYamlSerializable.cs | 2 +- .../Serialization/IYamlSerializableFactory.cs | 2 +- .../Serialization/IYamlVisitor.cs | 2 +- .../Serialization/IdentityEqualityComparer.cs | 2 +- .../Serialization/JsonEventEmitter.cs | 6 +- .../Serialization/LambdaObjectFactory.cs | 2 +- .../Serialization/Serializer.cs | 6 +- .../Serialization/SerializerContext.cs | 10 +- .../Serialization/SerializerSettings.cs | 4 +- .../Serializers/AnchorSerializer.cs | 4 +- .../Serializers/ArraySerializer.cs | 6 +- .../Serializers/ChainedSerializer.cs | 2 +- .../Serializers/CollectionSerializer.cs | 6 +- .../Serializers/DictionarySerializer.cs | 6 +- .../Serializers/ObjectSerializer.cs | 6 +- .../Serializers/PrimitiveSerializer.cs | 6 +- .../Serializers/RoutingSerializer.cs | 4 +- .../Serializers/ScalarSerializerBase.cs | 4 +- .../Serializers/TagTypeSerializer.cs | 6 +- .../Serialization/TagTypeRegistry.cs | 4 +- .../Serialization/ValueInput.cs | 2 +- .../Serialization/ValueOutput.cs | 4 +- .../Serialization/WriterEventEmitter.cs | 6 +- .../Serialization/YamlAliasNode.cs | 4 +- .../Serialization/YamlDocument.cs | 6 +- .../Serialization/YamlIgnoreAttribute.cs | 2 +- .../Serialization/YamlMappingNode.cs | 6 +- .../Serialization/YamlMemberAttribute.cs | 2 +- .../Serialization/YamlNode.cs | 6 +- .../YamlNodeIdentityEqualityComparer.cs | 2 +- .../Serialization/YamlScalarNode.cs | 10 +- .../Serialization/YamlSequenceNode.cs | 6 +- .../Serialization/YamlSerializableMethod.cs | 2 +- .../Serialization/YamlStream.cs | 6 +- .../Serialization/YamlStyleAttribute.cs | 2 +- .../Serialization/YamlTagAttribute.cs | 2 +- .../Serialization/YamlVisitor.cs | 2 +- .../SharpYAml.csproj | 10 +- SharpYaml/SharpYaml.csproj.DotSettings | 4 + {YamlDotNet => SharpYaml}/SimpleKey.cs | 2 +- {YamlDotNet => SharpYaml}/SortedDictionary.cs | 2 +- {YamlDotNet => SharpYaml}/StringExtensions.cs | 2 +- .../StringLookAheadBuffer.cs | 2 +- .../SyntaxErrorException.cs | 2 +- .../TagDirectiveCollection.cs | 4 +- {YamlDotNet => SharpYaml}/Tokens/Anchor.cs | 2 +- .../Tokens/AnchorAlias.cs | 2 +- {YamlDotNet => SharpYaml}/Tokens/BlockEnd.cs | 2 +- .../Tokens/BlockEntry.cs | 2 +- .../Tokens/BlockMappingStart.cs | 2 +- .../Tokens/BlockSequenceStart.cs | 2 +- .../Tokens/DocumentEnd.cs | 2 +- .../Tokens/DocumentStart.cs | 2 +- {YamlDotNet => SharpYaml}/Tokens/FlowEntry.cs | 2 +- .../Tokens/FlowMappingEnd.cs | 2 +- .../Tokens/FlowMappingStart.cs | 2 +- .../Tokens/FlowSequenceEnd.cs | 2 +- .../Tokens/FlowSequenceStart.cs | 2 +- {YamlDotNet => SharpYaml}/Tokens/Key.cs | 2 +- {YamlDotNet => SharpYaml}/Tokens/Scalar.cs | 2 +- {YamlDotNet => SharpYaml}/Tokens/StreamEnd.cs | 2 +- .../Tokens/StreamStart.cs | 2 +- {YamlDotNet => SharpYaml}/Tokens/Tag.cs | 2 +- .../Tokens/TagDirective.cs | 2 +- {YamlDotNet => SharpYaml}/Tokens/Token.cs | 2 +- {YamlDotNet => SharpYaml}/Tokens/Value.cs | 2 +- .../Tokens/VersionDirective.cs | 2 +- {YamlDotNet => SharpYaml}/TypeExtensions.cs | 2 +- {YamlDotNet => SharpYaml}/Version.cs | 2 +- {YamlDotNet => SharpYaml}/YamlException.cs | 4 +- {YamlDotNet => SharpYaml}/YamlStyle.cs | 2 +- .../FileAndContentTypeDefinitions.cs | 2 +- {YamlDotNetEditor => SharpYamlEditor}/LICENSE | 0 .../Properties/AssemblyInfo.cs | 4 +- .../SharpYamlEditor.csproj | 14 +- .../YamlDotNetEditor.cs | 18 +- .../YamlDotNetEditorFormat.cs | 20 +- .../YamlDotNetEditorType.cs | 4 +- .../icon.png | Bin .../preview.png | Bin .../source.extension.vsixmanifest | 0 YAMLLanguage/GlobalSuppressions.cs | 32 - YAMLLanguage/Guids.cs | 35 -- YAMLLanguage/Properties/AssemblyInfo.cs | 55 -- YAMLLanguage/Resources.Designer.cs | 85 --- YAMLLanguage/Resources.resx | 130 ---- YAMLLanguage/Resources/Package.ico | Bin 1078 -> 0 bytes YAMLLanguage/VSPackage.resx | 143 ----- YAMLLanguage/YAMLAuthoringScope.cs | 53 -- YAMLLanguage/YAMLLanguage.csproj | 105 ---- YAMLLanguage/YAMLLanguagePackage.cs | 102 --- YAMLLanguage/YAMLLanguageService.cs | 133 ---- YAMLLanguage/YAMLScanner.cs | 263 -------- .../ConfigurationLoader.cs | 90 --- .../DotNetConfigurationProvider.cs | 39 -- .../IConfigurationProvider.cs | 38 -- .../Properties/AssemblyInfo.cs | 25 - .../YamlConfigurationProvider.cs | 96 --- .../YamlConfigurationSection.cs | 165 ----- .../YamlDotNet.Configuration.csproj | 113 ---- .../Properties/AssemblyInfo.cs | 57 -- .../Xml/XmlConverterTests.cs | 118 ---- .../YamlDotNet.Converters.Test.csproj | 82 --- YamlDotNet.Converters.Test/packages.config | 6 - YamlDotNet.Converters.nuspec | 23 - .../Properties/AssemblyInfo.cs | 25 - .../Xml/Extensions/XmlConverterExtensions.cs | 51 -- YamlDotNet.Converters/Xml/XmlConverter.cs | 367 ----------- .../Xml/XmlConverterOptions.cs | 233 ------- .../YamlDotNet.Converters.csproj | 116 ---- YamlDotNet.Core2/YamlDotNet.Core2.csproj | 53 -- .../DynamicYamlTest.cs | 237 ------- .../Properties/AssemblyInfo.cs | 36 -- .../YamlDotNet.Dynamic.UnitTests.csproj | 78 --- YamlDotNet.Dynamic.UnitTests/packages.config | 5 - YamlDotNet.Dynamic.nuspec | 19 - YamlDotNet.Dynamic/DynamicYaml.cs | 499 --------------- YamlDotNet.Dynamic/Extensions.cs | 60 -- YamlDotNet.Dynamic/Properties/AssemblyInfo.cs | 36 -- YamlDotNet.Dynamic/YamlDoc.cs | 63 -- YamlDotNet.Dynamic/YamlDotNet.Dynamic.csproj | 64 -- YamlDotNet.FxCop | 579 ------------------ .../Properties/AssemblyInfo.cs | 57 -- YamlDotNet.RepresentationModel.Test/Runner.cs | 35 -- ...YamlDotNet.RepresentationModel.Test.csproj | 83 --- .../packages.config | 6 - YamlDotNet.RepresentationModel.nuspec | 22 - YamlDotNet.mono.sln | 97 --- YamlDotNet.shfbproj | 70 --- YamlDotNet.sln | 147 ----- YamlDotNet.snk | Bin 596 -> 0 bytes 276 files changed, 795 insertions(+), 5354 deletions(-) rename {YamlDotNet.Samples => SharpYaml.Samples}/DeserializeObjectGraph.cs (93%) rename {YamlDotNet.Samples => SharpYaml.Samples}/LoadYamlStream.cs (92%) rename {YamlDotNet.Samples => SharpYaml.Samples}/Program.cs (94%) rename {YamlDotNet.Samples => SharpYaml.Samples}/Properties/AssemblyInfo.cs (90%) rename {YamlDotNet.Samples => SharpYaml.Samples}/SerializeObjectGraph.cs (91%) rename YamlDotNet.Samples/YamlDotNet.Samples.csproj => SharpYaml.Samples/SharpYaml.Samples.csproj (83%) rename {YamlDotNet.Samples => SharpYaml.Samples}/app.config (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/DescriptorTests.cs (95%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/Dump.cs (91%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/EmitterTests.cs (94%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/InsertionQueueTests.cs (95%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/LookAheadBufferTests.cs (95%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/ParserTestHelper.cs (92%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/ParserTests.cs (95%) create mode 100644 SharpYaml.Tests/ParserTests.cs.orig rename {YamlDotNet.Core.Test => SharpYaml.Tests}/Properties/AssemblyInfo.cs (94%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/ScannerTestHelper.cs (94%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/ScannerTests.cs (95%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/SchemaTests.cs (95%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/Serialization/ExceptionWithNestedSerialization.cs (92%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/Serialization/ObjectFactoryTests.cs (88%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/Serialization/Samples.cs (91%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/Serialization/SerializationTests.cs (95%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/Serialization/SerializationTests2.cs (96%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/Serialization/TracingVisitor.cs (94%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/Serialization/YamlStreamTests.cs (95%) rename YamlDotNet.Core.Test/YamlDotNet.Test.csproj => SharpYaml.Tests/SharpYaml.Tests.csproj (94%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/YamlTest.cs (96%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/backreference.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/backwardsAlias.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/converter.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/convertible.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/dictionary.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/dictionaryExplicit.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/empty.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/explicitType.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/fail-backreference.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/forwardAlias.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/invalid-reference.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/list.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/listExplicit.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/listOfDictionaries.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/local-tags.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/namingConvention.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/sample.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/tags.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test1.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test10.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test11.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test12.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test13.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test14.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test2.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test3.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test4.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test5.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test6.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test7.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test8.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/files/test9.yaml (100%) rename {YamlDotNet.Core.Test => SharpYaml.Tests}/packages.config (100%) rename YamlDotNet.build => SharpYaml.build (100%) rename YamlDotNet.Core.nuspec => SharpYaml.nuspec (100%) create mode 100644 SharpYaml.sln rename YAMLLanguage/Key.snk => SharpYaml.snk (100%) rename {YamlDotNet => SharpYaml}/CharacterAnalyzer.cs (95%) rename {YamlDotNet => SharpYaml}/Constants.cs (94%) rename {YamlDotNet => SharpYaml}/Emitter.cs (95%) rename {YamlDotNet => SharpYaml}/EmitterState.cs (95%) rename {YamlDotNet => SharpYaml}/EventReader.cs (94%) rename {YamlDotNet => SharpYaml}/Events/AnchorAlias.cs (96%) rename {YamlDotNet => SharpYaml}/Events/DocumentEnd.cs (96%) rename {YamlDotNet => SharpYaml}/Events/DocumentStart.cs (95%) rename {YamlDotNet => SharpYaml}/Events/EventType.cs (95%) rename {YamlDotNet => SharpYaml}/Events/IAnchorAlias.cs (95%) rename {YamlDotNet => SharpYaml}/Events/IDocumentEnd.cs (95%) rename {YamlDotNet => SharpYaml}/Events/IDocumentStart.cs (94%) rename {YamlDotNet => SharpYaml}/Events/IMappingEnd.cs (95%) rename {YamlDotNet => SharpYaml}/Events/IMappingStart.cs (95%) rename {YamlDotNet => SharpYaml}/Events/INodeEvent.cs (95%) rename {YamlDotNet => SharpYaml}/Events/IParsingEvent.cs (95%) rename {YamlDotNet => SharpYaml}/Events/IScalar.cs (95%) rename {YamlDotNet => SharpYaml}/Events/ISequenceEnd.cs (95%) rename {YamlDotNet => SharpYaml}/Events/ISequenceStart.cs (95%) rename {YamlDotNet => SharpYaml}/Events/IStreamEnd.cs (95%) rename {YamlDotNet => SharpYaml}/Events/IStreamStart.cs (95%) rename {YamlDotNet => SharpYaml}/Events/MappingEnd.cs (96%) rename {YamlDotNet => SharpYaml}/Events/MappingStart.cs (96%) rename {YamlDotNet => SharpYaml}/Events/NodeEvent.cs (95%) rename {YamlDotNet => SharpYaml}/Events/ParsingEvent.cs (95%) rename {YamlDotNet => SharpYaml}/Events/Scalar.cs (96%) rename {YamlDotNet => SharpYaml}/Events/SequenceEnd.cs (96%) rename {YamlDotNet => SharpYaml}/Events/SequenceStart.cs (96%) rename {YamlDotNet => SharpYaml}/Events/StreamEnd.cs (96%) rename {YamlDotNet => SharpYaml}/Events/StreamStart.cs (96%) rename {YamlDotNet => SharpYaml}/FakeList.cs (96%) rename {YamlDotNet => SharpYaml}/IEmitter.cs (75%) rename {YamlDotNet => SharpYaml}/ILookAheadBuffer.cs (96%) rename {YamlDotNet => SharpYaml}/IParser.cs (84%) rename {YamlDotNet => SharpYaml}/InsertionQueue.cs (95%) rename {YamlDotNet => SharpYaml}/LookAheadBuffer.cs (96%) rename {YamlDotNet => SharpYaml}/Mark.cs (95%) rename {YamlDotNet => SharpYaml}/Parser.cs (95%) rename {YamlDotNet => SharpYaml}/ParserState.cs (95%) rename {YamlDotNet => SharpYaml}/Properties/AssemblyInfo.cs (86%) rename {YamlDotNet => SharpYaml}/ScalarStyle.cs (95%) rename {YamlDotNet => SharpYaml}/Scanner.cs (95%) rename {YamlDotNet => SharpYaml}/Schemas/CoreSchema.cs (97%) rename {YamlDotNet => SharpYaml}/Schemas/ExtendedSchema.cs (97%) rename {YamlDotNet => SharpYaml}/Schemas/FailsafeSchema.cs (95%) rename {YamlDotNet => SharpYaml}/Schemas/IYamlSchema.cs (95%) rename {YamlDotNet => SharpYaml}/Schemas/JsonSchema.cs (96%) rename {YamlDotNet => SharpYaml}/Schemas/SchemaBase.cs (96%) rename {YamlDotNet => SharpYaml}/SemanticErrorException.cs (96%) rename {YamlDotNet => SharpYaml}/Serialization/AnchorEventEmitter.cs (93%) rename {YamlDotNet => SharpYaml}/Serialization/AnchorNotFoundException.cs (96%) rename {YamlDotNet => SharpYaml}/Serialization/AttributeRegistry.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/ChainedEventEmitter.cs (92%) rename {YamlDotNet => SharpYaml}/Serialization/ChainedObjectFactory.cs (91%) rename {YamlDotNet => SharpYaml}/Serialization/DefaultObjectFactory.cs (92%) rename {YamlDotNet => SharpYaml}/Serialization/Descriptors/ArrayDescriptor.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/Descriptors/CollectionDescriptor.cs (96%) rename {YamlDotNet => SharpYaml}/Serialization/Descriptors/DictionaryDescriptor.cs (96%) rename {YamlDotNet => SharpYaml}/Serialization/Descriptors/FieldDescriptor.cs (93%) rename {YamlDotNet => SharpYaml}/Serialization/Descriptors/MemberDescriptorBase.cs (93%) rename {YamlDotNet => SharpYaml}/Serialization/Descriptors/NullableDescriptor.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/Descriptors/ObjectDescriptor.cs (97%) rename {YamlDotNet => SharpYaml}/Serialization/Descriptors/PrimitiveDescriptor.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/Descriptors/PropertyDescriptor.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/Descriptors/TypeDescriptorFactory.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/DocumentLoadingState.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/DuplicateAnchorException.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/EmitterState.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/EventInfo.cs (92%) rename {YamlDotNet => SharpYaml}/Serialization/IAttributeRegistry.cs (96%) rename {YamlDotNet => SharpYaml}/Serialization/IDynamicStyleFormat.cs (92%) rename {YamlDotNet => SharpYaml}/Serialization/IEventEmitter.cs (88%) rename {YamlDotNet => SharpYaml}/Serialization/IMemberDescriptor.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/IObjectFactory.cs (87%) rename {YamlDotNet => SharpYaml}/Serialization/ITagTypeRegistry.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/ITypeDescriptor.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/ITypeDescriptorFactory.cs (89%) rename {YamlDotNet => SharpYaml}/Serialization/IYamlSerializable.cs (96%) rename {YamlDotNet => SharpYaml}/Serialization/IYamlSerializableFactory.cs (92%) rename {YamlDotNet => SharpYaml}/Serialization/IYamlVisitor.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/IdentityEqualityComparer.cs (86%) rename {YamlDotNet => SharpYaml}/Serialization/JsonEventEmitter.cs (89%) rename {YamlDotNet => SharpYaml}/Serialization/LambdaObjectFactory.cs (93%) rename {YamlDotNet => SharpYaml}/Serialization/Serializer.cs (96%) rename {YamlDotNet => SharpYaml}/Serialization/SerializerContext.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/SerializerSettings.cs (97%) rename {YamlDotNet => SharpYaml}/Serialization/Serializers/AnchorSerializer.cs (93%) rename {YamlDotNet => SharpYaml}/Serialization/Serializers/ArraySerializer.cs (92%) rename {YamlDotNet => SharpYaml}/Serialization/Serializers/ChainedSerializer.cs (89%) rename {YamlDotNet => SharpYaml}/Serialization/Serializers/CollectionSerializer.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/Serializers/DictionarySerializer.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/Serializers/ObjectSerializer.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/Serializers/PrimitiveSerializer.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/Serializers/RoutingSerializer.cs (92%) rename {YamlDotNet => SharpYaml}/Serialization/Serializers/ScalarSerializerBase.cs (91%) rename {YamlDotNet => SharpYaml}/Serialization/Serializers/TagTypeSerializer.cs (97%) rename {YamlDotNet => SharpYaml}/Serialization/TagTypeRegistry.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/ValueInput.cs (96%) rename {YamlDotNet => SharpYaml}/Serialization/ValueOutput.cs (96%) rename {YamlDotNet => SharpYaml}/Serialization/WriterEventEmitter.cs (90%) rename {YamlDotNet => SharpYaml}/Serialization/YamlAliasNode.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/YamlDocument.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/YamlIgnoreAttribute.cs (86%) rename {YamlDotNet => SharpYaml}/Serialization/YamlMappingNode.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/YamlMemberAttribute.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/YamlNode.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/YamlNodeIdentityEqualityComparer.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/YamlScalarNode.cs (91%) rename {YamlDotNet => SharpYaml}/Serialization/YamlSequenceNode.cs (95%) rename {YamlDotNet => SharpYaml}/Serialization/YamlSerializableMethod.cs (93%) rename {YamlDotNet => SharpYaml}/Serialization/YamlStream.cs (94%) rename {YamlDotNet => SharpYaml}/Serialization/YamlStyleAttribute.cs (92%) rename {YamlDotNet => SharpYaml}/Serialization/YamlTagAttribute.cs (90%) rename {YamlDotNet => SharpYaml}/Serialization/YamlVisitor.cs (96%) rename YamlDotNet/YamlDotNet.csproj => SharpYaml/SharpYAml.csproj (95%) create mode 100644 SharpYaml/SharpYaml.csproj.DotSettings rename {YamlDotNet => SharpYaml}/SimpleKey.cs (95%) rename {YamlDotNet => SharpYaml}/SortedDictionary.cs (95%) rename {YamlDotNet => SharpYaml}/StringExtensions.cs (92%) rename {YamlDotNet => SharpYaml}/StringLookAheadBuffer.cs (95%) rename {YamlDotNet => SharpYaml}/SyntaxErrorException.cs (96%) rename {YamlDotNet => SharpYaml}/TagDirectiveCollection.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/Anchor.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/AnchorAlias.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/BlockEnd.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/BlockEntry.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/BlockMappingStart.cs (96%) rename {YamlDotNet => SharpYaml}/Tokens/BlockSequenceStart.cs (96%) rename {YamlDotNet => SharpYaml}/Tokens/DocumentEnd.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/DocumentStart.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/FlowEntry.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/FlowMappingEnd.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/FlowMappingStart.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/FlowSequenceEnd.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/FlowSequenceStart.cs (96%) rename {YamlDotNet => SharpYaml}/Tokens/Key.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/Scalar.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/StreamEnd.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/StreamStart.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/Tag.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/TagDirective.cs (96%) rename {YamlDotNet => SharpYaml}/Tokens/Token.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/Value.cs (95%) rename {YamlDotNet => SharpYaml}/Tokens/VersionDirective.cs (96%) rename {YamlDotNet => SharpYaml}/TypeExtensions.cs (96%) rename {YamlDotNet => SharpYaml}/Version.cs (96%) rename {YamlDotNet => SharpYaml}/YamlException.cs (95%) rename {YamlDotNet => SharpYaml}/YamlStyle.cs (95%) rename {YamlDotNetEditor => SharpYamlEditor}/FileAndContentTypeDefinitions.cs (96%) rename {YamlDotNetEditor => SharpYamlEditor}/LICENSE (100%) rename {YamlDotNetEditor => SharpYamlEditor}/Properties/AssemblyInfo.cs (90%) rename YamlDotNetEditor/YamlDotNetEditor.csproj => SharpYamlEditor/SharpYamlEditor.csproj (91%) rename {YamlDotNetEditor => SharpYamlEditor}/YamlDotNetEditor.cs (91%) rename {YamlDotNetEditor => SharpYamlEditor}/YamlDotNetEditorFormat.cs (88%) rename {YamlDotNetEditor => SharpYamlEditor}/YamlDotNetEditorType.cs (94%) rename {YamlDotNetEditor => SharpYamlEditor}/icon.png (100%) rename {YamlDotNetEditor => SharpYamlEditor}/preview.png (100%) rename {YamlDotNetEditor => SharpYamlEditor}/source.extension.vsixmanifest (100%) delete mode 100644 YAMLLanguage/GlobalSuppressions.cs delete mode 100644 YAMLLanguage/Guids.cs delete mode 100644 YAMLLanguage/Properties/AssemblyInfo.cs delete mode 100644 YAMLLanguage/Resources.Designer.cs delete mode 100644 YAMLLanguage/Resources.resx delete mode 100644 YAMLLanguage/Resources/Package.ico delete mode 100644 YAMLLanguage/VSPackage.resx delete mode 100644 YAMLLanguage/YAMLAuthoringScope.cs delete mode 100644 YAMLLanguage/YAMLLanguage.csproj delete mode 100644 YAMLLanguage/YAMLLanguagePackage.cs delete mode 100644 YAMLLanguage/YAMLLanguageService.cs delete mode 100644 YAMLLanguage/YAMLScanner.cs delete mode 100644 YamlDotNet.Configuration/ConfigurationLoader.cs delete mode 100644 YamlDotNet.Configuration/DotNetConfigurationProvider.cs delete mode 100644 YamlDotNet.Configuration/IConfigurationProvider.cs delete mode 100644 YamlDotNet.Configuration/Properties/AssemblyInfo.cs delete mode 100644 YamlDotNet.Configuration/YamlConfigurationProvider.cs delete mode 100644 YamlDotNet.Configuration/YamlConfigurationSection.cs delete mode 100644 YamlDotNet.Configuration/YamlDotNet.Configuration.csproj delete mode 100644 YamlDotNet.Converters.Test/Properties/AssemblyInfo.cs delete mode 100644 YamlDotNet.Converters.Test/Xml/XmlConverterTests.cs delete mode 100644 YamlDotNet.Converters.Test/YamlDotNet.Converters.Test.csproj delete mode 100644 YamlDotNet.Converters.Test/packages.config delete mode 100644 YamlDotNet.Converters.nuspec delete mode 100644 YamlDotNet.Converters/Properties/AssemblyInfo.cs delete mode 100644 YamlDotNet.Converters/Xml/Extensions/XmlConverterExtensions.cs delete mode 100644 YamlDotNet.Converters/Xml/XmlConverter.cs delete mode 100644 YamlDotNet.Converters/Xml/XmlConverterOptions.cs delete mode 100644 YamlDotNet.Converters/YamlDotNet.Converters.csproj delete mode 100644 YamlDotNet.Core2/YamlDotNet.Core2.csproj delete mode 100644 YamlDotNet.Dynamic.UnitTests/DynamicYamlTest.cs delete mode 100644 YamlDotNet.Dynamic.UnitTests/Properties/AssemblyInfo.cs delete mode 100644 YamlDotNet.Dynamic.UnitTests/YamlDotNet.Dynamic.UnitTests.csproj delete mode 100644 YamlDotNet.Dynamic.UnitTests/packages.config delete mode 100644 YamlDotNet.Dynamic.nuspec delete mode 100644 YamlDotNet.Dynamic/DynamicYaml.cs delete mode 100644 YamlDotNet.Dynamic/Extensions.cs delete mode 100644 YamlDotNet.Dynamic/Properties/AssemblyInfo.cs delete mode 100644 YamlDotNet.Dynamic/YamlDoc.cs delete mode 100644 YamlDotNet.Dynamic/YamlDotNet.Dynamic.csproj delete mode 100644 YamlDotNet.FxCop delete mode 100644 YamlDotNet.RepresentationModel.Test/Properties/AssemblyInfo.cs delete mode 100644 YamlDotNet.RepresentationModel.Test/Runner.cs delete mode 100644 YamlDotNet.RepresentationModel.Test/YamlDotNet.RepresentationModel.Test.csproj delete mode 100644 YamlDotNet.RepresentationModel.Test/packages.config delete mode 100644 YamlDotNet.RepresentationModel.nuspec delete mode 100644 YamlDotNet.mono.sln delete mode 100644 YamlDotNet.shfbproj delete mode 100644 YamlDotNet.sln delete mode 100644 YamlDotNet.snk diff --git a/CommonAssemblyInfo.cs b/CommonAssemblyInfo.cs index fbf776d..3c96683 100644 --- a/CommonAssemblyInfo.cs +++ b/CommonAssemblyInfo.cs @@ -32,7 +32,7 @@ using System; [assembly: AssemblyConfiguration("Release")] #endif [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("YamlDotNet")] +[assembly: AssemblyProduct("SharpYaml")] [assembly: AssemblyCopyright("Copyright © Antoine Aubry 2008, 2009, 2010, 2011, 2012, 2013")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/Dumper/Dumper.csproj b/Dumper/Dumper.csproj index b31f5c3..5a0440a 100644 --- a/Dumper/Dumper.csproj +++ b/Dumper/Dumper.csproj @@ -64,9 +64,9 @@ - + {BF32DE1B-6276-4341-B212-F8862ADBBA7A} - YamlDotNet + SharpYaml diff --git a/Dumper/Program.cs b/Dumper/Program.cs index dedefe0..c789d37 100644 --- a/Dumper/Program.cs +++ b/Dumper/Program.cs @@ -20,9 +20,9 @@ // SOFTWARE. using System; -using YamlDotNet; +using SharpYaml; using System.IO; -using YamlDotNet.Events; +using SharpYaml.Events; namespace Dumper { diff --git a/YamlDotNet.Samples/DeserializeObjectGraph.cs b/SharpYaml.Samples/DeserializeObjectGraph.cs similarity index 93% rename from YamlDotNet.Samples/DeserializeObjectGraph.cs rename to SharpYaml.Samples/DeserializeObjectGraph.cs index bc36709..a3625b0 100644 --- a/YamlDotNet.Samples/DeserializeObjectGraph.cs +++ b/SharpYaml.Samples/DeserializeObjectGraph.cs @@ -1,8 +1,8 @@ using System; using System.IO; -using YamlDotNet.Serialization; +using SharpYaml.Serialization; -namespace YamlDotNet.Samples +namespace SharpYaml.Samples { public class DeserializeObjectGraph { diff --git a/YamlDotNet.Samples/LoadYamlStream.cs b/SharpYaml.Samples/LoadYamlStream.cs similarity index 92% rename from YamlDotNet.Samples/LoadYamlStream.cs rename to SharpYaml.Samples/LoadYamlStream.cs index c72d8e1..13cc489 100644 --- a/YamlDotNet.Samples/LoadYamlStream.cs +++ b/SharpYaml.Samples/LoadYamlStream.cs @@ -2,9 +2,9 @@ using System; using System.Text; using System.IO; using System.Collections.Generic; -using YamlDotNet.Serialization; +using SharpYaml.Serialization; -namespace YamlDotNet.Samples +namespace SharpYaml.Samples { class LoadYamlStream { diff --git a/YamlDotNet.Samples/Program.cs b/SharpYaml.Samples/Program.cs similarity index 94% rename from YamlDotNet.Samples/Program.cs rename to SharpYaml.Samples/Program.cs index d6aabb2..7744f44 100644 --- a/YamlDotNet.Samples/Program.cs +++ b/SharpYaml.Samples/Program.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Reflection; -namespace YamlDotNet.Samples +namespace SharpYaml.Samples { class Program { diff --git a/YamlDotNet.Samples/Properties/AssemblyInfo.cs b/SharpYaml.Samples/Properties/AssemblyInfo.cs similarity index 90% rename from YamlDotNet.Samples/Properties/AssemblyInfo.cs rename to SharpYaml.Samples/Properties/AssemblyInfo.cs index e5b0862..5b3c2a4 100644 --- a/YamlDotNet.Samples/Properties/AssemblyInfo.cs +++ b/SharpYaml.Samples/Properties/AssemblyInfo.cs @@ -5,11 +5,11 @@ using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("YamlDotNet.Samples")] +[assembly: AssemblyTitle("SharpYaml.Samples")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("YamlDotNet.Samples")] +[assembly: AssemblyProduct("SharpYaml.Samples")] [assembly: AssemblyCopyright("Copyright © 2012")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/YamlDotNet.Samples/SerializeObjectGraph.cs b/SharpYaml.Samples/SerializeObjectGraph.cs similarity index 91% rename from YamlDotNet.Samples/SerializeObjectGraph.cs rename to SharpYaml.Samples/SerializeObjectGraph.cs index fe27af1..cebc2e0 100644 --- a/YamlDotNet.Samples/SerializeObjectGraph.cs +++ b/SharpYaml.Samples/SerializeObjectGraph.cs @@ -1,7 +1,7 @@ using System; -using YamlDotNet.Serialization; +using SharpYaml.Serialization; -namespace YamlDotNet.Samples +namespace SharpYaml.Samples { class SerializeObjectGraph { diff --git a/YamlDotNet.Samples/YamlDotNet.Samples.csproj b/SharpYaml.Samples/SharpYaml.Samples.csproj similarity index 83% rename from YamlDotNet.Samples/YamlDotNet.Samples.csproj rename to SharpYaml.Samples/SharpYaml.Samples.csproj index 75498bb..d162c96 100644 --- a/YamlDotNet.Samples/YamlDotNet.Samples.csproj +++ b/SharpYaml.Samples/SharpYaml.Samples.csproj @@ -8,8 +8,8 @@ {1EC10966-19C0-4CE3-949E-D11F600B8CA3} Exe Properties - YamlDotNet.Samples - YamlDotNet.Samples + SharpYaml.Samples + SharpYaml.Samples v4.0 @@ -54,13 +54,9 @@ - + {BF32DE1B-6276-4341-B212-F8862ADBBA7A} - YamlDotNet - - - {21CA0077-E15C-446D-9C43-F6D3F9D09687} - YamlDotNet.Serialzation + SharpYaml diff --git a/YamlDotNet.Samples/app.config b/SharpYaml.Samples/app.config similarity index 100% rename from YamlDotNet.Samples/app.config rename to SharpYaml.Samples/app.config diff --git a/YamlDotNet.Core.Test/DescriptorTests.cs b/SharpYaml.Tests/DescriptorTests.cs similarity index 95% rename from YamlDotNet.Core.Test/DescriptorTests.cs rename to SharpYaml.Tests/DescriptorTests.cs index d40fa95..5349cdf 100644 --- a/YamlDotNet.Core.Test/DescriptorTests.cs +++ b/SharpYaml.Tests/DescriptorTests.cs @@ -5,10 +5,10 @@ using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using Xunit; -using YamlDotNet.Serialization; -using YamlDotNet.Serialization.Descriptors; +using SharpYaml.Serialization; +using SharpYaml.Serialization.Descriptors; -namespace YamlDotNet.Test +namespace SharpYaml.Test { public class DescriptorTests { diff --git a/YamlDotNet.Core.Test/Dump.cs b/SharpYaml.Tests/Dump.cs similarity index 91% rename from YamlDotNet.Core.Test/Dump.cs rename to SharpYaml.Tests/Dump.cs index c071bd0..5233882 100644 --- a/YamlDotNet.Core.Test/Dump.cs +++ b/SharpYaml.Tests/Dump.cs @@ -1,6 +1,6 @@ using System.Diagnostics; -namespace YamlDotNet.Test +namespace SharpYaml.Test { public class Dump { diff --git a/YamlDotNet.Core.Test/EmitterTests.cs b/SharpYaml.Tests/EmitterTests.cs similarity index 94% rename from YamlDotNet.Core.Test/EmitterTests.cs rename to SharpYaml.Tests/EmitterTests.cs index adc79f6..98db3bc 100644 --- a/YamlDotNet.Core.Test/EmitterTests.cs +++ b/SharpYaml.Tests/EmitterTests.cs @@ -23,10 +23,10 @@ using System.Linq; using System.IO; using Xunit; using Xunit.Extensions; -using YamlDotNet.Events; -using YamlDotNet.Serialization; +using SharpYaml.Events; +using SharpYaml.Serialization; -namespace YamlDotNet.Test +namespace SharpYaml.Test { public class EmitterTests : YamlTest { diff --git a/YamlDotNet.Core.Test/InsertionQueueTests.cs b/SharpYaml.Tests/InsertionQueueTests.cs similarity index 95% rename from YamlDotNet.Core.Test/InsertionQueueTests.cs rename to SharpYaml.Tests/InsertionQueueTests.cs index 802195e..1fbceb3 100644 --- a/YamlDotNet.Core.Test/InsertionQueueTests.cs +++ b/SharpYaml.Tests/InsertionQueueTests.cs @@ -25,7 +25,7 @@ using System.Linq; using FluentAssertions; using Xunit; -namespace YamlDotNet.Test +namespace SharpYaml.Test { public class InsertionQueueTests { diff --git a/YamlDotNet.Core.Test/LookAheadBufferTests.cs b/SharpYaml.Tests/LookAheadBufferTests.cs similarity index 95% rename from YamlDotNet.Core.Test/LookAheadBufferTests.cs rename to SharpYaml.Tests/LookAheadBufferTests.cs index ad5308c..a4e4bdb 100644 --- a/YamlDotNet.Core.Test/LookAheadBufferTests.cs +++ b/SharpYaml.Tests/LookAheadBufferTests.cs @@ -26,7 +26,7 @@ using FakeItEasy.Core; using FluentAssertions; using Xunit; -namespace YamlDotNet.Test +namespace SharpYaml.Test { public class LookAheadBufferTests { diff --git a/YamlDotNet.Core.Test/ParserTestHelper.cs b/SharpYaml.Tests/ParserTestHelper.cs similarity index 92% rename from YamlDotNet.Core.Test/ParserTestHelper.cs rename to SharpYaml.Tests/ParserTestHelper.cs index 60e4330..7f283f6 100644 --- a/YamlDotNet.Core.Test/ParserTestHelper.cs +++ b/SharpYaml.Tests/ParserTestHelper.cs @@ -19,12 +19,12 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -using YamlDotNet.Events; -using YamlDotNet.Test; -using TagDirective = YamlDotNet.Tokens.TagDirective; -using VersionDirective = YamlDotNet.Tokens.VersionDirective; +using SharpYaml.Events; +using SharpYaml.Test; +using TagDirective = SharpYaml.Tokens.TagDirective; +using VersionDirective = SharpYaml.Tokens.VersionDirective; -namespace YamlDotNet.Test +namespace SharpYaml.Test { public class ParserTestHelper : YamlTest { diff --git a/YamlDotNet.Core.Test/ParserTests.cs b/SharpYaml.Tests/ParserTests.cs similarity index 95% rename from YamlDotNet.Core.Test/ParserTests.cs rename to SharpYaml.Tests/ParserTests.cs index 3759a86..d48f941 100644 --- a/YamlDotNet.Core.Test/ParserTests.cs +++ b/SharpYaml.Tests/ParserTests.cs @@ -22,10 +22,10 @@ using System.Collections; using FluentAssertions; using Xunit; -using YamlDotNet.Test; -using YamlDotNet.Events; +using SharpYaml.Test; +using SharpYaml.Events; -namespace YamlDotNet.Test +namespace SharpYaml.Test { public class ParserTests : ParserTestHelper { diff --git a/SharpYaml.Tests/ParserTests.cs.orig b/SharpYaml.Tests/ParserTests.cs.orig new file mode 100644 index 0000000..dc0490d --- /dev/null +++ b/SharpYaml.Tests/ParserTests.cs.orig @@ -0,0 +1,384 @@ +// This file is part of YamlDotNet - A .NET library for YAML. +// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry + +// Permission is hereby granted, free of charge, to any person obtaining a copy of +// this software and associated documentation files (the "Software"), to deal in +// the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +// of the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + +using System.Collections; +using Xunit; +<<<<<<< HEAD +using YamlDotNet.Events; +using VersionDirective = YamlDotNet.Tokens.VersionDirective; +using TagDirective = YamlDotNet.Tokens.TagDirective; +======= +using YamlDotNet.Core.Events; +>>>>>>> 44256f9... Simplified parser and scanner tests and improved failure messages + +namespace YamlDotNet.Test +{ + public class ParserTests : ParserTestHelper + { + [Fact] + public void EmptyDocument() + { + AssertSequenceOfEventsFrom(ParserFor("empty.yaml"), + StreamStart, + StreamEnd); + } + + [Fact] + public void VerifyEventsOnExample1() + { + AssertSequenceOfEventsFrom(ParserFor("test1.yaml"), + StreamStart, + DocumentStart(Explicit, Version(1, 1), + TagDirective("!", "!foo"), + TagDirective("!yaml!", TagYaml), + TagDirective("!!", TagYaml)), + PlainScalar(string.Empty), + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample2() + { + AssertSequenceOfEventsFrom(ParserFor("test2.yaml"), + StreamStart, + DocumentStart(Implicit), + SingleQuotedScalar("a scalar"), + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample3() + { + AssertSequenceOfEventsFrom(ParserFor("test3.yaml"), + StreamStart, + DocumentStart(Explicit), + SingleQuotedScalar("a scalar"), + DocumentEnd(Explicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample4() + { + AssertSequenceOfEventsFrom(ParserFor("test4.yaml"), + StreamStart, + DocumentStart(Implicit), + SingleQuotedScalar("a scalar"), + DocumentEnd(Implicit), + DocumentStart(Explicit), + SingleQuotedScalar("another scalar"), + DocumentEnd(Implicit), + DocumentStart(Explicit), + SingleQuotedScalar("yet another scalar"), + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample5() + { + AssertSequenceOfEventsFrom(ParserFor("test5.yaml"), + StreamStart, + DocumentStart(Implicit), + AnchoredFlowSequenceStart("A"), + AnchorAlias("A"), + SequenceEnd, + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample6() + { + var parser = ParserFor("test6.yaml"); + AssertSequenceOfEventsFrom(parser, + StreamStart, + DocumentStart(Implicit), + ExplicitDoubleQuotedScalar(TagYaml + "float", "3.14"), + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample7() + { + AssertSequenceOfEventsFrom(ParserFor("test7.yaml"), + StreamStart, + DocumentStart(Explicit), + PlainScalar(string.Empty), + DocumentEnd(Implicit), + DocumentStart(Explicit), + PlainScalar("a plain scalar"), + DocumentEnd(Implicit), + DocumentStart(Explicit), + SingleQuotedScalar("a single-quoted scalar"), + DocumentEnd(Implicit), + DocumentStart(Explicit), + DoubleQuotedScalar("a double-quoted scalar"), + DocumentEnd(Implicit), + DocumentStart(Explicit), + LiteralScalar("a literal scalar"), + DocumentEnd(Implicit), + DocumentStart(Explicit), + FoldedScalar("a folded scalar"), + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample8() + { + AssertSequenceOfEventsFrom(ParserFor("test8.yaml"), + StreamStart, + DocumentStart(Implicit), + FlowSequenceStart, + PlainScalar("item 1"), + PlainScalar("item 2"), + PlainScalar("item 3"), + SequenceEnd, + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample9() + { + AssertSequenceOfEventsFrom(ParserFor("test9.yaml"), + StreamStart, + DocumentStart(Implicit), + FlowMappingStart, + PlainScalar("a simple key"), + PlainScalar("a value"), + PlainScalar("a complex key"), + PlainScalar("another value"), + MappingEnd, + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample10() + { + AssertSequenceOfEventsFrom(ParserFor("test10.yaml"), + StreamStart, + DocumentStart(Implicit), + BlockSequenceStart, + PlainScalar("item 1"), + PlainScalar("item 2"), + BlockSequenceStart, + PlainScalar("item 3.1"), + PlainScalar("item 3.2"), + SequenceEnd, + BlockMappingStart, + PlainScalar("key 1"), + PlainScalar("value 1"), + PlainScalar("key 2"), + PlainScalar("value 2"), + MappingEnd, + SequenceEnd, + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample11() + { + AssertSequenceOfEventsFrom(ParserFor("test11.yaml"), + StreamStart, + DocumentStart(Implicit), + BlockMappingStart, + PlainScalar("a simple key"), + PlainScalar("a value"), + PlainScalar("a complex key"), + PlainScalar("another value"), + PlainScalar("a mapping"), + BlockMappingStart, + PlainScalar("key 1"), + PlainScalar("value 1"), + PlainScalar("key 2"), + PlainScalar("value 2"), + MappingEnd, + PlainScalar("a sequence"), + BlockSequenceStart, + PlainScalar("item 1"), + PlainScalar("item 2"), + SequenceEnd, + MappingEnd, + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample12() + { + AssertSequenceOfEventsFrom(ParserFor("test12.yaml"), + StreamStart, + DocumentStart(Implicit), + BlockSequenceStart, + BlockSequenceStart, + PlainScalar("item 1"), + PlainScalar("item 2"), + SequenceEnd, + BlockMappingStart, + PlainScalar("key 1"), + PlainScalar("value 1"), + PlainScalar("key 2"), + PlainScalar("value 2"), + MappingEnd, + BlockMappingStart, + PlainScalar("complex key"), + PlainScalar("complex value"), + MappingEnd, + SequenceEnd, + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample13() + { + AssertSequenceOfEventsFrom(ParserFor("test13.yaml"), + StreamStart, + DocumentStart(Implicit), + BlockMappingStart, + PlainScalar("a sequence"), + BlockSequenceStart, + PlainScalar("item 1"), + PlainScalar("item 2"), + SequenceEnd, + PlainScalar("a mapping"), + BlockMappingStart, + PlainScalar("key 1"), + PlainScalar("value 1"), + PlainScalar("key 2"), + PlainScalar("value 2"), + MappingEnd, + MappingEnd, + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokensOnExample14() + { + AssertSequenceOfEventsFrom(ParserFor("test14.yaml"), + StreamStart, + DocumentStart(Implicit), + BlockMappingStart, + PlainScalar("key"), + BlockSequenceStart, + PlainScalar("item 1"), + PlainScalar("item 2"), + SequenceEnd, + MappingEnd, + DocumentEnd(Implicit), + StreamEnd); + } + + [Fact] + public void VerifyTokenWithLocalTags() + { + AssertSequenceOfEventsFrom(ParserFor("local-tags.yaml"), + StreamStart, + DocumentStart(Explicit), + TaggedBlockMappingStart("!MyObject"), + PlainScalar("a"), + PlainScalar("1.0"), + PlainScalar("b"), + PlainScalar("42"), + PlainScalar("c"), + PlainScalar("-7"), + MappingEnd, + DocumentEnd(Implicit), + StreamEnd); + } + + private IParser ParserFor(string name) + { + return new Parser(YamlFile(name)); + } + + private void AssertSequenceOfEventsFrom(IParser parser, params ParsingEvent[] events) + { + var eventNumber = 1; + foreach (var @event in events) + { + Assert.True(parser.MoveNext(), "Missing parse event number " + eventNumber); + AssertCurrent(parser, @event, eventNumber); + eventNumber++; + } + Assert.False(parser.MoveNext(), "Found extra parse events"); + } + + private void AssertCurrent(IParser parser, ParsingEvent expected, int eventNumber) + { + var parsingEvent = parser.Current; + Assert.True(expected.GetType().IsInstanceOfType(parsingEvent), + string.Format("Parse event {0} is not of the expected type. Exprected: {1}, Actual: {2}", + eventNumber, expected.GetType().Name, parsingEvent.GetType().Name)); + + foreach (var property in expected.GetType().GetProperties()) + { + if (property.PropertyType == typeof(Mark) || !property.CanRead) + { + continue; + } + + var value = property.GetValue(parsingEvent, null); + var expectedValue = property.GetValue(expected, null); + if (expectedValue is IEnumerable && !(expectedValue is string)) + { + Dump.Write("\t{0} = {{", property.Name); + Dump.Write(string.Join(", ", (IEnumerable)value)); + Dump.WriteLine("}"); + + if (expectedValue is ICollection && value is ICollection) + { + var expectedCount = ((ICollection)expectedValue).Count; + var valueCount = ((ICollection)value).Count; + Assert.True(expectedCount.Equals(valueCount), + string.Format("Expected property {0} in parse event {1} to be a collection with {2} elements but found {3} elements", + property.Name, eventNumber, expectedCount, valueCount)); + } + + var values = ((IEnumerable)value).GetEnumerator(); + var expectedValues = ((IEnumerable)expectedValue).GetEnumerator(); + while (expectedValues.MoveNext()) + { + Assert.True(values.MoveNext(), string.Format("Property {0} in parse event {1} had too few elements", property.Name, eventNumber)); + Assert.True(Equals(expectedValues.Current, values.Current), + string.Format("Expected element in property {0} in parse event {1} to be {2} but was {3}", + property.Name, eventNumber, expectedValues.Current, values.Current)); + } + Assert.False(values.MoveNext(), string.Format("Property {0} in parse event {1} had too many elements", property.Name, eventNumber)); + } + else + { + Dump.WriteLine("\t{0} = {1}", property.Name, value); + Assert.True(Equals(expectedValue, value), string.Format("Expected property {0} in parse event {1} to be {2} but was {3}", + property.Name, eventNumber, expectedValue, value)); + } + } + } + } +} \ No newline at end of file diff --git a/YamlDotNet.Core.Test/Properties/AssemblyInfo.cs b/SharpYaml.Tests/Properties/AssemblyInfo.cs similarity index 94% rename from YamlDotNet.Core.Test/Properties/AssemblyInfo.cs rename to SharpYaml.Tests/Properties/AssemblyInfo.cs index 6ebc221..92f0b8e 100644 --- a/YamlDotNet.Core.Test/Properties/AssemblyInfo.cs +++ b/SharpYaml.Tests/Properties/AssemblyInfo.cs @@ -26,11 +26,11 @@ using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("YamlDotNet.Test")] +[assembly: AssemblyTitle("SharpYaml.Test")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("YamlDotNet.Test")] +[assembly: AssemblyProduct("SharpYaml.Test")] [assembly: AssemblyCopyright("Copyright © 2013")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/YamlDotNet.Core.Test/ScannerTestHelper.cs b/SharpYaml.Tests/ScannerTestHelper.cs similarity index 94% rename from YamlDotNet.Core.Test/ScannerTestHelper.cs rename to SharpYaml.Tests/ScannerTestHelper.cs index 134786c..83c32c6 100644 --- a/YamlDotNet.Core.Test/ScannerTestHelper.cs +++ b/SharpYaml.Tests/ScannerTestHelper.cs @@ -19,10 +19,10 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -using YamlDotNet.Test; -using YamlDotNet.Tokens; +using SharpYaml.Test; +using SharpYaml.Tokens; -namespace YamlDotNet.Test +namespace SharpYaml.Test { public class ScannerTestHelper : YamlTest { diff --git a/YamlDotNet.Core.Test/ScannerTests.cs b/SharpYaml.Tests/ScannerTests.cs similarity index 95% rename from YamlDotNet.Core.Test/ScannerTests.cs rename to SharpYaml.Tests/ScannerTests.cs index 8c5de2c..2f7d993 100644 --- a/YamlDotNet.Core.Test/ScannerTests.cs +++ b/SharpYaml.Tests/ScannerTests.cs @@ -21,9 +21,9 @@ using FluentAssertions; using Xunit; -using YamlDotNet.Tokens; +using SharpYaml.Tokens; -namespace YamlDotNet.Test +namespace SharpYaml.Test { public class ScannerTests : ScannerTestHelper { diff --git a/YamlDotNet.Core.Test/SchemaTests.cs b/SharpYaml.Tests/SchemaTests.cs similarity index 95% rename from YamlDotNet.Core.Test/SchemaTests.cs rename to SharpYaml.Tests/SchemaTests.cs index 3fe36ad..3c38336 100644 --- a/YamlDotNet.Core.Test/SchemaTests.cs +++ b/SharpYaml.Tests/SchemaTests.cs @@ -1,10 +1,10 @@ using System; using Xunit; -using YamlDotNet.Events; -using YamlDotNet.Schemas; -using YamlDotNet.Serialization; +using SharpYaml.Events; +using SharpYaml.Schemas; +using SharpYaml.Serialization; -namespace YamlDotNet.Test +namespace SharpYaml.Test { public class SchemaTests { diff --git a/YamlDotNet.Core.Test/Serialization/ExceptionWithNestedSerialization.cs b/SharpYaml.Tests/Serialization/ExceptionWithNestedSerialization.cs similarity index 92% rename from YamlDotNet.Core.Test/Serialization/ExceptionWithNestedSerialization.cs rename to SharpYaml.Tests/Serialization/ExceptionWithNestedSerialization.cs index 60c14f9..a583136 100644 --- a/YamlDotNet.Core.Test/Serialization/ExceptionWithNestedSerialization.cs +++ b/SharpYaml.Tests/Serialization/ExceptionWithNestedSerialization.cs @@ -1,8 +1,8 @@ using System.IO; using Xunit; -using YamlDotNet.Serialization; +using SharpYaml.Serialization; -namespace YamlDotNet.Test.Serialization +namespace SharpYaml.Test.Serialization { public class ExceptionWithNestedSerialization { diff --git a/YamlDotNet.Core.Test/Serialization/ObjectFactoryTests.cs b/SharpYaml.Tests/Serialization/ObjectFactoryTests.cs similarity index 88% rename from YamlDotNet.Core.Test/Serialization/ObjectFactoryTests.cs rename to SharpYaml.Tests/Serialization/ObjectFactoryTests.cs index 255554f..65ffbac 100644 --- a/YamlDotNet.Core.Test/Serialization/ObjectFactoryTests.cs +++ b/SharpYaml.Tests/Serialization/ObjectFactoryTests.cs @@ -1,8 +1,8 @@ using System.IO; using Xunit; -using YamlDotNet.Serialization; +using SharpYaml.Serialization; -namespace YamlDotNet.Test.Serialization +namespace SharpYaml.Test.Serialization { public class ObjectFactoryTests { diff --git a/YamlDotNet.Core.Test/Serialization/Samples.cs b/SharpYaml.Tests/Serialization/Samples.cs similarity index 91% rename from YamlDotNet.Core.Test/Serialization/Samples.cs rename to SharpYaml.Tests/Serialization/Samples.cs index 653bcb2..17aaffb 100644 --- a/YamlDotNet.Core.Test/Serialization/Samples.cs +++ b/SharpYaml.Tests/Serialization/Samples.cs @@ -1,9 +1,9 @@ using System; using System.IO; using Xunit; -using YamlDotNet.Serialization; +using SharpYaml.Serialization; -namespace YamlDotNet.Test.Serialization +namespace SharpYaml.Test.Serialization { public class Program { diff --git a/YamlDotNet.Core.Test/Serialization/SerializationTests.cs b/SharpYaml.Tests/Serialization/SerializationTests.cs similarity index 95% rename from YamlDotNet.Core.Test/Serialization/SerializationTests.cs rename to SharpYaml.Tests/Serialization/SerializationTests.cs index 3684295..9233169 100644 --- a/YamlDotNet.Core.Test/Serialization/SerializationTests.cs +++ b/SharpYaml.Tests/Serialization/SerializationTests.cs @@ -30,11 +30,11 @@ using System.Linq; using System.Reflection; using System.Text.RegularExpressions; using Xunit; -using YamlDotNet.Events; -using YamlDotNet.Serialization; -using YamlDotNet.Serialization.Serializers; +using SharpYaml.Events; +using SharpYaml.Serialization; +using SharpYaml.Serialization.Serializers; -namespace YamlDotNet.Test.Serialization +namespace SharpYaml.Test.Serialization { public class SerializationTests : YamlTest { diff --git a/YamlDotNet.Core.Test/Serialization/SerializationTests2.cs b/SharpYaml.Tests/Serialization/SerializationTests2.cs similarity index 96% rename from YamlDotNet.Core.Test/Serialization/SerializationTests2.cs rename to SharpYaml.Tests/Serialization/SerializationTests2.cs index 5dee4bf..6fe469b 100644 --- a/YamlDotNet.Core.Test/Serialization/SerializationTests2.cs +++ b/SharpYaml.Tests/Serialization/SerializationTests2.cs @@ -4,9 +4,9 @@ using System.Collections.Generic; using System.IO; using System.Linq; using Xunit; -using YamlDotNet.Serialization; +using SharpYaml.Serialization; -namespace YamlDotNet.Test.Serialization +namespace SharpYaml.Test.Serialization { public class SerializationTests2 { diff --git a/YamlDotNet.Core.Test/Serialization/TracingVisitor.cs b/SharpYaml.Tests/Serialization/TracingVisitor.cs similarity index 94% rename from YamlDotNet.Core.Test/Serialization/TracingVisitor.cs rename to SharpYaml.Tests/Serialization/TracingVisitor.cs index 78fa7d8..4061b8d 100644 --- a/YamlDotNet.Core.Test/Serialization/TracingVisitor.cs +++ b/SharpYaml.Tests/Serialization/TracingVisitor.cs @@ -20,9 +20,9 @@ // SOFTWARE. using System; -using YamlDotNet.Serialization; +using SharpYaml.Serialization; -namespace YamlDotNet.Test.Serialization +namespace SharpYaml.Test.Serialization { public class TracingVisitor : YamlVisitor { diff --git a/YamlDotNet.Core.Test/Serialization/YamlStreamTests.cs b/SharpYaml.Tests/Serialization/YamlStreamTests.cs similarity index 95% rename from YamlDotNet.Core.Test/Serialization/YamlStreamTests.cs rename to SharpYaml.Tests/Serialization/YamlStreamTests.cs index 6fd3f38..f3c03f0 100644 --- a/YamlDotNet.Core.Test/Serialization/YamlStreamTests.cs +++ b/SharpYaml.Tests/Serialization/YamlStreamTests.cs @@ -21,11 +21,11 @@ using System.Collections.Generic; using Xunit; -using YamlDotNet.Serialization; +using SharpYaml.Serialization; using System.Text; using System.IO; -namespace YamlDotNet.Test.Serialization +namespace SharpYaml.Test.Serialization { public class YamlStreamTests : YamlTest { diff --git a/YamlDotNet.Core.Test/YamlDotNet.Test.csproj b/SharpYaml.Tests/SharpYaml.Tests.csproj similarity index 94% rename from YamlDotNet.Core.Test/YamlDotNet.Test.csproj rename to SharpYaml.Tests/SharpYaml.Tests.csproj index 9423dd6..20ae6a3 100644 --- a/YamlDotNet.Core.Test/YamlDotNet.Test.csproj +++ b/SharpYaml.Tests/SharpYaml.Tests.csproj @@ -7,8 +7,8 @@ {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA} Library Properties - YamlDotNet.Test - YamlDotNet.Test + SharpYaml.Tests + SharpYaml.Tests v4.5 512 ..\ @@ -110,9 +110,9 @@ - + {bf32de1b-6276-4341-b212-f8862adbba7a} - YamlDotNet + SharpYaml diff --git a/YamlDotNet.Core.Test/YamlTest.cs b/SharpYaml.Tests/YamlTest.cs similarity index 96% rename from YamlDotNet.Core.Test/YamlTest.cs rename to SharpYaml.Tests/YamlTest.cs index 08b9e51..3c403d0 100644 --- a/YamlDotNet.Core.Test/YamlTest.cs +++ b/SharpYaml.Tests/YamlTest.cs @@ -25,7 +25,7 @@ using System.Linq; using System.Reflection; using System.Text.RegularExpressions; -namespace YamlDotNet.Test +namespace SharpYaml.Test { public class YamlTest { diff --git a/YamlDotNet.Core.Test/files/backreference.yaml b/SharpYaml.Tests/files/backreference.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/backreference.yaml rename to SharpYaml.Tests/files/backreference.yaml diff --git a/YamlDotNet.Core.Test/files/backwardsAlias.yaml b/SharpYaml.Tests/files/backwardsAlias.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/backwardsAlias.yaml rename to SharpYaml.Tests/files/backwardsAlias.yaml diff --git a/YamlDotNet.Core.Test/files/converter.yaml b/SharpYaml.Tests/files/converter.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/converter.yaml rename to SharpYaml.Tests/files/converter.yaml diff --git a/YamlDotNet.Core.Test/files/convertible.yaml b/SharpYaml.Tests/files/convertible.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/convertible.yaml rename to SharpYaml.Tests/files/convertible.yaml diff --git a/YamlDotNet.Core.Test/files/dictionary.yaml b/SharpYaml.Tests/files/dictionary.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/dictionary.yaml rename to SharpYaml.Tests/files/dictionary.yaml diff --git a/YamlDotNet.Core.Test/files/dictionaryExplicit.yaml b/SharpYaml.Tests/files/dictionaryExplicit.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/dictionaryExplicit.yaml rename to SharpYaml.Tests/files/dictionaryExplicit.yaml diff --git a/YamlDotNet.Core.Test/files/empty.yaml b/SharpYaml.Tests/files/empty.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/empty.yaml rename to SharpYaml.Tests/files/empty.yaml diff --git a/YamlDotNet.Core.Test/files/explicitType.yaml b/SharpYaml.Tests/files/explicitType.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/explicitType.yaml rename to SharpYaml.Tests/files/explicitType.yaml diff --git a/YamlDotNet.Core.Test/files/fail-backreference.yaml b/SharpYaml.Tests/files/fail-backreference.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/fail-backreference.yaml rename to SharpYaml.Tests/files/fail-backreference.yaml diff --git a/YamlDotNet.Core.Test/files/forwardAlias.yaml b/SharpYaml.Tests/files/forwardAlias.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/forwardAlias.yaml rename to SharpYaml.Tests/files/forwardAlias.yaml diff --git a/YamlDotNet.Core.Test/files/invalid-reference.yaml b/SharpYaml.Tests/files/invalid-reference.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/invalid-reference.yaml rename to SharpYaml.Tests/files/invalid-reference.yaml diff --git a/YamlDotNet.Core.Test/files/list.yaml b/SharpYaml.Tests/files/list.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/list.yaml rename to SharpYaml.Tests/files/list.yaml diff --git a/YamlDotNet.Core.Test/files/listExplicit.yaml b/SharpYaml.Tests/files/listExplicit.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/listExplicit.yaml rename to SharpYaml.Tests/files/listExplicit.yaml diff --git a/YamlDotNet.Core.Test/files/listOfDictionaries.yaml b/SharpYaml.Tests/files/listOfDictionaries.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/listOfDictionaries.yaml rename to SharpYaml.Tests/files/listOfDictionaries.yaml diff --git a/YamlDotNet.Core.Test/files/local-tags.yaml b/SharpYaml.Tests/files/local-tags.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/local-tags.yaml rename to SharpYaml.Tests/files/local-tags.yaml diff --git a/YamlDotNet.Core.Test/files/namingConvention.yaml b/SharpYaml.Tests/files/namingConvention.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/namingConvention.yaml rename to SharpYaml.Tests/files/namingConvention.yaml diff --git a/YamlDotNet.Core.Test/files/sample.yaml b/SharpYaml.Tests/files/sample.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/sample.yaml rename to SharpYaml.Tests/files/sample.yaml diff --git a/YamlDotNet.Core.Test/files/tags.yaml b/SharpYaml.Tests/files/tags.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/tags.yaml rename to SharpYaml.Tests/files/tags.yaml diff --git a/YamlDotNet.Core.Test/files/test1.yaml b/SharpYaml.Tests/files/test1.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test1.yaml rename to SharpYaml.Tests/files/test1.yaml diff --git a/YamlDotNet.Core.Test/files/test10.yaml b/SharpYaml.Tests/files/test10.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test10.yaml rename to SharpYaml.Tests/files/test10.yaml diff --git a/YamlDotNet.Core.Test/files/test11.yaml b/SharpYaml.Tests/files/test11.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test11.yaml rename to SharpYaml.Tests/files/test11.yaml diff --git a/YamlDotNet.Core.Test/files/test12.yaml b/SharpYaml.Tests/files/test12.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test12.yaml rename to SharpYaml.Tests/files/test12.yaml diff --git a/YamlDotNet.Core.Test/files/test13.yaml b/SharpYaml.Tests/files/test13.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test13.yaml rename to SharpYaml.Tests/files/test13.yaml diff --git a/YamlDotNet.Core.Test/files/test14.yaml b/SharpYaml.Tests/files/test14.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test14.yaml rename to SharpYaml.Tests/files/test14.yaml diff --git a/YamlDotNet.Core.Test/files/test2.yaml b/SharpYaml.Tests/files/test2.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test2.yaml rename to SharpYaml.Tests/files/test2.yaml diff --git a/YamlDotNet.Core.Test/files/test3.yaml b/SharpYaml.Tests/files/test3.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test3.yaml rename to SharpYaml.Tests/files/test3.yaml diff --git a/YamlDotNet.Core.Test/files/test4.yaml b/SharpYaml.Tests/files/test4.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test4.yaml rename to SharpYaml.Tests/files/test4.yaml diff --git a/YamlDotNet.Core.Test/files/test5.yaml b/SharpYaml.Tests/files/test5.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test5.yaml rename to SharpYaml.Tests/files/test5.yaml diff --git a/YamlDotNet.Core.Test/files/test6.yaml b/SharpYaml.Tests/files/test6.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test6.yaml rename to SharpYaml.Tests/files/test6.yaml diff --git a/YamlDotNet.Core.Test/files/test7.yaml b/SharpYaml.Tests/files/test7.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test7.yaml rename to SharpYaml.Tests/files/test7.yaml diff --git a/YamlDotNet.Core.Test/files/test8.yaml b/SharpYaml.Tests/files/test8.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test8.yaml rename to SharpYaml.Tests/files/test8.yaml diff --git a/YamlDotNet.Core.Test/files/test9.yaml b/SharpYaml.Tests/files/test9.yaml similarity index 100% rename from YamlDotNet.Core.Test/files/test9.yaml rename to SharpYaml.Tests/files/test9.yaml diff --git a/YamlDotNet.Core.Test/packages.config b/SharpYaml.Tests/packages.config similarity index 100% rename from YamlDotNet.Core.Test/packages.config rename to SharpYaml.Tests/packages.config diff --git a/YamlDotNet.build b/SharpYaml.build similarity index 100% rename from YamlDotNet.build rename to SharpYaml.build diff --git a/YamlDotNet.Core.nuspec b/SharpYaml.nuspec similarity index 100% rename from YamlDotNet.Core.nuspec rename to SharpYaml.nuspec diff --git a/SharpYaml.sln b/SharpYaml.sln new file mode 100644 index 0000000..b86dc66 --- /dev/null +++ b/SharpYaml.sln @@ -0,0 +1,83 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{69EE9636-55BA-49C2-827E-D5684221C345}" + ProjectSection(SolutionItems) = preProject + .gitignore = .gitignore + CommonAssemblyInfo.cs = CommonAssemblyInfo.cs + LICENSE = LICENSE + SharpYaml.build = SharpYaml.build + SharpYaml.nuspec = SharpYaml.nuspec + SharpYaml.snk = SharpYaml.snk + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpYaml", "SharpYaml\SharpYaml.csproj", "{BF32DE1B-6276-4341-B212-F8862ADBBA7A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dumper", "Dumper\Dumper.csproj", "{BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpYaml.Samples", "SharpYaml.Samples\SharpYaml.Samples.csproj", "{1EC10966-19C0-4CE3-949E-D11F600B8CA3}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{8DC198EF-4A39-4072-A66A-CA0DF8396F22}" + ProjectSection(SolutionItems) = preProject + .nuget\NuGet.Config = .nuget\NuGet.Config + .nuget\NuGet.exe = .nuget\NuGet.exe + .nuget\NuGet.targets = .nuget\NuGet.targets + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpYaml.Tests", "SharpYaml.Tests\SharpYaml.Tests.csproj", "{16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Debug|x86.ActiveCfg = Debug|Any CPU + {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Release|Any CPU.Build.0 = Release|Any CPU + {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Release|x86.ActiveCfg = Release|Any CPU + {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Debug|x86.ActiveCfg = Debug|Any CPU + {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Release|Any CPU.Build.0 = Release|Any CPU + {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Release|x86.ActiveCfg = Release|Any CPU + {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Debug|Any CPU.ActiveCfg = Debug|x86 + {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 + {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Debug|Mixed Platforms.Build.0 = Debug|x86 + {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Debug|x86.ActiveCfg = Debug|x86 + {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Debug|x86.Build.0 = Debug|x86 + {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Release|Any CPU.ActiveCfg = Release|x86 + {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Release|Mixed Platforms.ActiveCfg = Release|x86 + {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Release|Mixed Platforms.Build.0 = Release|x86 + {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Release|x86.ActiveCfg = Release|x86 + {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Release|x86.Build.0 = Release|x86 + {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Debug|x86.ActiveCfg = Debug|Any CPU + {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Release|Any CPU.Build.0 = Release|Any CPU + {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Release|x86.ActiveCfg = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/YAMLLanguage/Key.snk b/SharpYaml.snk similarity index 100% rename from YAMLLanguage/Key.snk rename to SharpYaml.snk diff --git a/YamlDotNet/CharacterAnalyzer.cs b/SharpYaml/CharacterAnalyzer.cs similarity index 95% rename from YamlDotNet/CharacterAnalyzer.cs rename to SharpYaml/CharacterAnalyzer.cs index 306e383..dd89251 100644 --- a/YamlDotNet/CharacterAnalyzer.cs +++ b/SharpYaml/CharacterAnalyzer.cs @@ -22,7 +22,7 @@ using System; using System.Diagnostics; -namespace YamlDotNet +namespace SharpYaml { internal class CharacterAnalyzer where TBuffer : ILookAheadBuffer { diff --git a/YamlDotNet/Constants.cs b/SharpYaml/Constants.cs similarity index 94% rename from YamlDotNet/Constants.cs rename to SharpYaml/Constants.cs index e225c6f..c919dd7 100644 --- a/YamlDotNet/Constants.cs +++ b/SharpYaml/Constants.cs @@ -20,9 +20,9 @@ // SOFTWARE. using System; -using YamlDotNet.Tokens; +using SharpYaml.Tokens; -namespace YamlDotNet +namespace SharpYaml { /// /// Defines constants thar relate to the YAML specification. diff --git a/YamlDotNet/Emitter.cs b/SharpYaml/Emitter.cs similarity index 95% rename from YamlDotNet/Emitter.cs rename to SharpYaml/Emitter.cs index e716a10..b31184b 100644 --- a/YamlDotNet/Emitter.cs +++ b/SharpYaml/Emitter.cs @@ -26,12 +26,12 @@ using System.Globalization; using System.IO; using System.Text; using System.Text.RegularExpressions; -using YamlDotNet.Events; -using Event = YamlDotNet.Events.IParsingEvent; -using TagDirective = YamlDotNet.Tokens.TagDirective; -using VersionDirective = YamlDotNet.Tokens.VersionDirective; +using SharpYaml.Events; +using Event = SharpYaml.Events.IParsingEvent; +using TagDirective = SharpYaml.Tokens.TagDirective; +using VersionDirective = SharpYaml.Tokens.VersionDirective; -namespace YamlDotNet +namespace SharpYaml { /// /// Emits YAML streams. diff --git a/YamlDotNet/EmitterState.cs b/SharpYaml/EmitterState.cs similarity index 95% rename from YamlDotNet/EmitterState.cs rename to SharpYaml/EmitterState.cs index c5d1210..f7f81c9 100644 --- a/YamlDotNet/EmitterState.cs +++ b/SharpYaml/EmitterState.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet +namespace SharpYaml { /// /// Defines the YAML emitter's state. diff --git a/YamlDotNet/EventReader.cs b/SharpYaml/EventReader.cs similarity index 94% rename from YamlDotNet/EventReader.cs rename to SharpYaml/EventReader.cs index 9653fd8..91461ff 100644 --- a/YamlDotNet/EventReader.cs +++ b/SharpYaml/EventReader.cs @@ -21,12 +21,12 @@ using System; using System.IO; -using YamlDotNet; +using SharpYaml; using System.Globalization; -using Event = YamlDotNet.Events.ParsingEvent; -using YamlDotNet.Events; +using Event = SharpYaml.Events.ParsingEvent; +using SharpYaml.Events; -namespace YamlDotNet +namespace SharpYaml { /// /// Reads events from a sequence of . diff --git a/YamlDotNet/Events/AnchorAlias.cs b/SharpYaml/Events/AnchorAlias.cs similarity index 96% rename from YamlDotNet/Events/AnchorAlias.cs rename to SharpYaml/Events/AnchorAlias.cs index 49d7bf4..22eb2a7 100644 --- a/YamlDotNet/Events/AnchorAlias.cs +++ b/SharpYaml/Events/AnchorAlias.cs @@ -22,7 +22,7 @@ using System; using System.Globalization; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents an alias event. diff --git a/YamlDotNet/Events/DocumentEnd.cs b/SharpYaml/Events/DocumentEnd.cs similarity index 96% rename from YamlDotNet/Events/DocumentEnd.cs rename to SharpYaml/Events/DocumentEnd.cs index 174dee4..9457260 100644 --- a/YamlDotNet/Events/DocumentEnd.cs +++ b/SharpYaml/Events/DocumentEnd.cs @@ -22,7 +22,7 @@ using System; using System.Globalization; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a document end event. diff --git a/YamlDotNet/Events/DocumentStart.cs b/SharpYaml/Events/DocumentStart.cs similarity index 95% rename from YamlDotNet/Events/DocumentStart.cs rename to SharpYaml/Events/DocumentStart.cs index da3913b..268d725 100644 --- a/YamlDotNet/Events/DocumentStart.cs +++ b/SharpYaml/Events/DocumentStart.cs @@ -21,9 +21,9 @@ using System; using System.Globalization; -using YamlDotNet.Tokens; +using SharpYaml.Tokens; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a document start event. diff --git a/YamlDotNet/Events/EventType.cs b/SharpYaml/Events/EventType.cs similarity index 95% rename from YamlDotNet/Events/EventType.cs rename to SharpYaml/Events/EventType.cs index 760d0e1..9a9ff51 100644 --- a/YamlDotNet/Events/EventType.cs +++ b/SharpYaml/Events/EventType.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Defines the event types. This allows for simpler type comparisons. diff --git a/YamlDotNet/Events/IAnchorAlias.cs b/SharpYaml/Events/IAnchorAlias.cs similarity index 95% rename from YamlDotNet/Events/IAnchorAlias.cs rename to SharpYaml/Events/IAnchorAlias.cs index f4b0e9f..ff361de 100644 --- a/YamlDotNet/Events/IAnchorAlias.cs +++ b/SharpYaml/Events/IAnchorAlias.cs @@ -19,7 +19,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents an alias event. diff --git a/YamlDotNet/Events/IDocumentEnd.cs b/SharpYaml/Events/IDocumentEnd.cs similarity index 95% rename from YamlDotNet/Events/IDocumentEnd.cs rename to SharpYaml/Events/IDocumentEnd.cs index eae998f..e6bd421 100644 --- a/YamlDotNet/Events/IDocumentEnd.cs +++ b/SharpYaml/Events/IDocumentEnd.cs @@ -19,7 +19,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a document end event. diff --git a/YamlDotNet/Events/IDocumentStart.cs b/SharpYaml/Events/IDocumentStart.cs similarity index 94% rename from YamlDotNet/Events/IDocumentStart.cs rename to SharpYaml/Events/IDocumentStart.cs index 2b8c24c..64905ba 100644 --- a/YamlDotNet/Events/IDocumentStart.cs +++ b/SharpYaml/Events/IDocumentStart.cs @@ -19,9 +19,9 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -using YamlDotNet.Tokens; +using SharpYaml.Tokens; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a document start event. diff --git a/YamlDotNet/Events/IMappingEnd.cs b/SharpYaml/Events/IMappingEnd.cs similarity index 95% rename from YamlDotNet/Events/IMappingEnd.cs rename to SharpYaml/Events/IMappingEnd.cs index 553ed10..1632521 100644 --- a/YamlDotNet/Events/IMappingEnd.cs +++ b/SharpYaml/Events/IMappingEnd.cs @@ -19,7 +19,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a mapping end event. diff --git a/YamlDotNet/Events/IMappingStart.cs b/SharpYaml/Events/IMappingStart.cs similarity index 95% rename from YamlDotNet/Events/IMappingStart.cs rename to SharpYaml/Events/IMappingStart.cs index 4d394de..a606567 100644 --- a/YamlDotNet/Events/IMappingStart.cs +++ b/SharpYaml/Events/IMappingStart.cs @@ -19,7 +19,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a mapping start event. diff --git a/YamlDotNet/Events/INodeEvent.cs b/SharpYaml/Events/INodeEvent.cs similarity index 95% rename from YamlDotNet/Events/INodeEvent.cs rename to SharpYaml/Events/INodeEvent.cs index 4154c1f..e7030ee 100644 --- a/YamlDotNet/Events/INodeEvent.cs +++ b/SharpYaml/Events/INodeEvent.cs @@ -19,7 +19,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Defines the behavior that is common between node events. diff --git a/YamlDotNet/Events/IParsingEvent.cs b/SharpYaml/Events/IParsingEvent.cs similarity index 95% rename from YamlDotNet/Events/IParsingEvent.cs rename to SharpYaml/Events/IParsingEvent.cs index 151ebad..d916ba6 100644 --- a/YamlDotNet/Events/IParsingEvent.cs +++ b/SharpYaml/Events/IParsingEvent.cs @@ -19,7 +19,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Base interface for parsing events. diff --git a/YamlDotNet/Events/IScalar.cs b/SharpYaml/Events/IScalar.cs similarity index 95% rename from YamlDotNet/Events/IScalar.cs rename to SharpYaml/Events/IScalar.cs index 6505e80..b1a63e4 100644 --- a/YamlDotNet/Events/IScalar.cs +++ b/SharpYaml/Events/IScalar.cs @@ -19,7 +19,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a scalar event. diff --git a/YamlDotNet/Events/ISequenceEnd.cs b/SharpYaml/Events/ISequenceEnd.cs similarity index 95% rename from YamlDotNet/Events/ISequenceEnd.cs rename to SharpYaml/Events/ISequenceEnd.cs index 52e1bc9..3e73d5b 100644 --- a/YamlDotNet/Events/ISequenceEnd.cs +++ b/SharpYaml/Events/ISequenceEnd.cs @@ -19,7 +19,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a sequence end event. diff --git a/YamlDotNet/Events/ISequenceStart.cs b/SharpYaml/Events/ISequenceStart.cs similarity index 95% rename from YamlDotNet/Events/ISequenceStart.cs rename to SharpYaml/Events/ISequenceStart.cs index ceb3cb7..868f56a 100644 --- a/YamlDotNet/Events/ISequenceStart.cs +++ b/SharpYaml/Events/ISequenceStart.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a sequence start event. diff --git a/YamlDotNet/Events/IStreamEnd.cs b/SharpYaml/Events/IStreamEnd.cs similarity index 95% rename from YamlDotNet/Events/IStreamEnd.cs rename to SharpYaml/Events/IStreamEnd.cs index 3e70817..fb8cfa3 100644 --- a/YamlDotNet/Events/IStreamEnd.cs +++ b/SharpYaml/Events/IStreamEnd.cs @@ -19,7 +19,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a stream end event. diff --git a/YamlDotNet/Events/IStreamStart.cs b/SharpYaml/Events/IStreamStart.cs similarity index 95% rename from YamlDotNet/Events/IStreamStart.cs rename to SharpYaml/Events/IStreamStart.cs index 9fc90b7..ca50788 100644 --- a/YamlDotNet/Events/IStreamStart.cs +++ b/SharpYaml/Events/IStreamStart.cs @@ -19,7 +19,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a stream start event. diff --git a/YamlDotNet/Events/MappingEnd.cs b/SharpYaml/Events/MappingEnd.cs similarity index 96% rename from YamlDotNet/Events/MappingEnd.cs rename to SharpYaml/Events/MappingEnd.cs index c802e9b..aa7111a 100644 --- a/YamlDotNet/Events/MappingEnd.cs +++ b/SharpYaml/Events/MappingEnd.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a mapping end event. diff --git a/YamlDotNet/Events/MappingStart.cs b/SharpYaml/Events/MappingStart.cs similarity index 96% rename from YamlDotNet/Events/MappingStart.cs rename to SharpYaml/Events/MappingStart.cs index 7e81972..f6a0253 100644 --- a/YamlDotNet/Events/MappingStart.cs +++ b/SharpYaml/Events/MappingStart.cs @@ -22,7 +22,7 @@ using System; using System.Globalization; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a mapping start event. diff --git a/YamlDotNet/Events/NodeEvent.cs b/SharpYaml/Events/NodeEvent.cs similarity index 95% rename from YamlDotNet/Events/NodeEvent.cs rename to SharpYaml/Events/NodeEvent.cs index 5d9b71a..5ec3ae9 100644 --- a/YamlDotNet/Events/NodeEvent.cs +++ b/SharpYaml/Events/NodeEvent.cs @@ -22,7 +22,7 @@ using System; using System.Text.RegularExpressions; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Contains the behavior that is common between node events. diff --git a/YamlDotNet/Events/ParsingEvent.cs b/SharpYaml/Events/ParsingEvent.cs similarity index 95% rename from YamlDotNet/Events/ParsingEvent.cs rename to SharpYaml/Events/ParsingEvent.cs index f74e76e..c21c20e 100644 --- a/YamlDotNet/Events/ParsingEvent.cs +++ b/SharpYaml/Events/ParsingEvent.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Base class for parsing events. diff --git a/YamlDotNet/Events/Scalar.cs b/SharpYaml/Events/Scalar.cs similarity index 96% rename from YamlDotNet/Events/Scalar.cs rename to SharpYaml/Events/Scalar.cs index 052bd5d..198d1e7 100644 --- a/YamlDotNet/Events/Scalar.cs +++ b/SharpYaml/Events/Scalar.cs @@ -22,7 +22,7 @@ using System; using System.Globalization; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a scalar event. diff --git a/YamlDotNet/Events/SequenceEnd.cs b/SharpYaml/Events/SequenceEnd.cs similarity index 96% rename from YamlDotNet/Events/SequenceEnd.cs rename to SharpYaml/Events/SequenceEnd.cs index 0158a08..66107b9 100644 --- a/YamlDotNet/Events/SequenceEnd.cs +++ b/SharpYaml/Events/SequenceEnd.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a sequence end event. diff --git a/YamlDotNet/Events/SequenceStart.cs b/SharpYaml/Events/SequenceStart.cs similarity index 96% rename from YamlDotNet/Events/SequenceStart.cs rename to SharpYaml/Events/SequenceStart.cs index 759e7e0..750de77 100644 --- a/YamlDotNet/Events/SequenceStart.cs +++ b/SharpYaml/Events/SequenceStart.cs @@ -22,7 +22,7 @@ using System; using System.Globalization; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a sequence start event. diff --git a/YamlDotNet/Events/StreamEnd.cs b/SharpYaml/Events/StreamEnd.cs similarity index 96% rename from YamlDotNet/Events/StreamEnd.cs rename to SharpYaml/Events/StreamEnd.cs index 814d785..398198a 100644 --- a/YamlDotNet/Events/StreamEnd.cs +++ b/SharpYaml/Events/StreamEnd.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a stream end event. diff --git a/YamlDotNet/Events/StreamStart.cs b/SharpYaml/Events/StreamStart.cs similarity index 96% rename from YamlDotNet/Events/StreamStart.cs rename to SharpYaml/Events/StreamStart.cs index a2c76ac..43d5556 100644 --- a/YamlDotNet/Events/StreamStart.cs +++ b/SharpYaml/Events/StreamStart.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Events +namespace SharpYaml.Events { /// /// Represents a stream start event. diff --git a/YamlDotNet/FakeList.cs b/SharpYaml/FakeList.cs similarity index 96% rename from YamlDotNet/FakeList.cs rename to SharpYaml/FakeList.cs index 3e1f5ea..2ef3070 100644 --- a/YamlDotNet/FakeList.cs +++ b/SharpYaml/FakeList.cs @@ -22,7 +22,7 @@ using System; using System.Collections.Generic; -namespace YamlDotNet +namespace SharpYaml { /// /// Implements an indexer through an IEnumerator<T>. diff --git a/YamlDotNet/IEmitter.cs b/SharpYaml/IEmitter.cs similarity index 75% rename from YamlDotNet/IEmitter.cs rename to SharpYaml/IEmitter.cs index 8010e15..e119dd8 100644 --- a/YamlDotNet/IEmitter.cs +++ b/SharpYaml/IEmitter.cs @@ -1,6 +1,6 @@ -using YamlDotNet.Events; +using SharpYaml.Events; -namespace YamlDotNet +namespace SharpYaml { /// /// Represents a YAML stream emitter. diff --git a/YamlDotNet/ILookAheadBuffer.cs b/SharpYaml/ILookAheadBuffer.cs similarity index 96% rename from YamlDotNet/ILookAheadBuffer.cs rename to SharpYaml/ILookAheadBuffer.cs index 11bcbd3..79de3b2 100644 --- a/YamlDotNet/ILookAheadBuffer.cs +++ b/SharpYaml/ILookAheadBuffer.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet +namespace SharpYaml { internal interface ILookAheadBuffer { diff --git a/YamlDotNet/IParser.cs b/SharpYaml/IParser.cs similarity index 84% rename from YamlDotNet/IParser.cs rename to SharpYaml/IParser.cs index 46052d6..3574189 100644 --- a/YamlDotNet/IParser.cs +++ b/SharpYaml/IParser.cs @@ -1,6 +1,6 @@ -using YamlDotNet.Events; +using SharpYaml.Events; -namespace YamlDotNet +namespace SharpYaml { /// /// Represents a YAML stream paser. diff --git a/YamlDotNet/InsertionQueue.cs b/SharpYaml/InsertionQueue.cs similarity index 95% rename from YamlDotNet/InsertionQueue.cs rename to SharpYaml/InsertionQueue.cs index f2eb925..c960624 100644 --- a/YamlDotNet/InsertionQueue.cs +++ b/SharpYaml/InsertionQueue.cs @@ -22,7 +22,7 @@ using System; using System.Collections.Generic; -namespace YamlDotNet +namespace SharpYaml { /// /// Generic queue on which items may be inserted diff --git a/YamlDotNet/LookAheadBuffer.cs b/SharpYaml/LookAheadBuffer.cs similarity index 96% rename from YamlDotNet/LookAheadBuffer.cs rename to SharpYaml/LookAheadBuffer.cs index e90bfa1..10cac0f 100644 --- a/YamlDotNet/LookAheadBuffer.cs +++ b/SharpYaml/LookAheadBuffer.cs @@ -22,7 +22,7 @@ using System; using System.IO; -namespace YamlDotNet +namespace SharpYaml { /// /// Provides access to a stream and allows to peek at the next characters, diff --git a/YamlDotNet/Mark.cs b/SharpYaml/Mark.cs similarity index 95% rename from YamlDotNet/Mark.cs rename to SharpYaml/Mark.cs index 2afd28a..99c7dc2 100644 --- a/YamlDotNet/Mark.cs +++ b/SharpYaml/Mark.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet +namespace SharpYaml { /// /// Represents a location inside a file diff --git a/YamlDotNet/Parser.cs b/SharpYaml/Parser.cs similarity index 95% rename from YamlDotNet/Parser.cs rename to SharpYaml/Parser.cs index b5b2488..8d4eb78 100644 --- a/YamlDotNet/Parser.cs +++ b/SharpYaml/Parser.cs @@ -23,18 +23,18 @@ using System; using System.Diagnostics; using System.Collections.Generic; using System.IO; -using YamlDotNet.Events; -using YamlDotNet.Tokens; -using AnchorAlias = YamlDotNet.Tokens.AnchorAlias; -using DocumentEnd = YamlDotNet.Tokens.DocumentEnd; -using DocumentStart = YamlDotNet.Tokens.DocumentStart; -using Event = YamlDotNet.Events.ParsingEvent; -using YamlStyle = YamlDotNet.YamlStyle; -using Scalar = YamlDotNet.Tokens.Scalar; -using StreamEnd = YamlDotNet.Tokens.StreamEnd; -using StreamStart = YamlDotNet.Tokens.StreamStart; +using SharpYaml.Events; +using SharpYaml.Tokens; +using AnchorAlias = SharpYaml.Tokens.AnchorAlias; +using DocumentEnd = SharpYaml.Tokens.DocumentEnd; +using DocumentStart = SharpYaml.Tokens.DocumentStart; +using Event = SharpYaml.Events.ParsingEvent; +using YamlStyle = SharpYaml.YamlStyle; +using Scalar = SharpYaml.Tokens.Scalar; +using StreamEnd = SharpYaml.Tokens.StreamEnd; +using StreamStart = SharpYaml.Tokens.StreamStart; -namespace YamlDotNet +namespace SharpYaml { /// /// Parses YAML streams. diff --git a/YamlDotNet/ParserState.cs b/SharpYaml/ParserState.cs similarity index 95% rename from YamlDotNet/ParserState.cs rename to SharpYaml/ParserState.cs index 5124654..ab18f93 100644 --- a/YamlDotNet/ParserState.cs +++ b/SharpYaml/ParserState.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet +namespace SharpYaml { /// /// Defines the YAML parser's state. diff --git a/YamlDotNet/Properties/AssemblyInfo.cs b/SharpYaml/Properties/AssemblyInfo.cs similarity index 86% rename from YamlDotNet/Properties/AssemblyInfo.cs rename to SharpYaml/Properties/AssemblyInfo.cs index 121faea..67e0328 100644 --- a/YamlDotNet/Properties/AssemblyInfo.cs +++ b/SharpYaml/Properties/AssemblyInfo.cs @@ -21,5 +21,5 @@ using System.Reflection; -[assembly: AssemblyTitle("YamlDotNet")] -[assembly: AssemblyDescription("The core YamlDotNet library, which contains the implementation of the parser and the emitter.")] +[assembly: AssemblyTitle("SharpYaml")] +[assembly: AssemblyDescription("The core SharpYaml library, which contains the implementation of the parser and the emitter.")] diff --git a/YamlDotNet/ScalarStyle.cs b/SharpYaml/ScalarStyle.cs similarity index 95% rename from YamlDotNet/ScalarStyle.cs rename to SharpYaml/ScalarStyle.cs index 2f211c5..509310d 100644 --- a/YamlDotNet/ScalarStyle.cs +++ b/SharpYaml/ScalarStyle.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet +namespace SharpYaml { /// /// Specifies the style of a YAML scalar. diff --git a/YamlDotNet/Scanner.cs b/SharpYaml/Scanner.cs similarity index 95% rename from YamlDotNet/Scanner.cs rename to SharpYaml/Scanner.cs index 03ce86c..872acc0 100644 --- a/YamlDotNet/Scanner.cs +++ b/SharpYaml/Scanner.cs @@ -24,9 +24,9 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; -using YamlDotNet.Tokens; +using SharpYaml.Tokens; -namespace YamlDotNet +namespace SharpYaml { /// /// Converts a sequence of characters into a sequence of YAML tokens. diff --git a/YamlDotNet/Schemas/CoreSchema.cs b/SharpYaml/Schemas/CoreSchema.cs similarity index 97% rename from YamlDotNet/Schemas/CoreSchema.cs rename to SharpYaml/Schemas/CoreSchema.cs index df1124e..456f5e2 100644 --- a/YamlDotNet/Schemas/CoreSchema.cs +++ b/SharpYaml/Schemas/CoreSchema.cs @@ -23,7 +23,7 @@ using System; -namespace YamlDotNet.Schemas +namespace SharpYaml.Schemas { /// /// Implements the Core schema. diff --git a/YamlDotNet/Schemas/ExtendedSchema.cs b/SharpYaml/Schemas/ExtendedSchema.cs similarity index 97% rename from YamlDotNet/Schemas/ExtendedSchema.cs rename to SharpYaml/Schemas/ExtendedSchema.cs index 53cb1b6..75f914e 100644 --- a/YamlDotNet/Schemas/ExtendedSchema.cs +++ b/SharpYaml/Schemas/ExtendedSchema.cs @@ -23,7 +23,7 @@ using System; -namespace YamlDotNet.Schemas +namespace SharpYaml.Schemas { /// /// Extension to the core schema and accept different flavor of scalars diff --git a/YamlDotNet/Schemas/FailsafeSchema.cs b/SharpYaml/Schemas/FailsafeSchema.cs similarity index 95% rename from YamlDotNet/Schemas/FailsafeSchema.cs rename to SharpYaml/Schemas/FailsafeSchema.cs index d2cd7e3..39cc92f 100644 --- a/YamlDotNet/Schemas/FailsafeSchema.cs +++ b/SharpYaml/Schemas/FailsafeSchema.cs @@ -21,9 +21,9 @@ // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE // OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -using YamlDotNet.Events; +using SharpYaml.Events; -namespace YamlDotNet.Schemas +namespace SharpYaml.Schemas { /// /// Implements the YAML failsafe schema. diff --git a/YamlDotNet/Schemas/IYamlSchema.cs b/SharpYaml/Schemas/IYamlSchema.cs similarity index 95% rename from YamlDotNet/Schemas/IYamlSchema.cs rename to SharpYaml/Schemas/IYamlSchema.cs index 9c64fec..7babe13 100644 --- a/YamlDotNet/Schemas/IYamlSchema.cs +++ b/SharpYaml/Schemas/IYamlSchema.cs @@ -1,7 +1,7 @@ using System; -using YamlDotNet.Events; +using SharpYaml.Events; -namespace YamlDotNet.Schemas +namespace SharpYaml.Schemas { /// /// Provides schema information for tag resolution. diff --git a/YamlDotNet/Schemas/JsonSchema.cs b/SharpYaml/Schemas/JsonSchema.cs similarity index 96% rename from YamlDotNet/Schemas/JsonSchema.cs rename to SharpYaml/Schemas/JsonSchema.cs index 7cfc090..3fe76b5 100644 --- a/YamlDotNet/Schemas/JsonSchema.cs +++ b/SharpYaml/Schemas/JsonSchema.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Schemas +namespace SharpYaml.Schemas { /// /// Implements a JSON schema. diff --git a/YamlDotNet/Schemas/SchemaBase.cs b/SharpYaml/Schemas/SchemaBase.cs similarity index 96% rename from YamlDotNet/Schemas/SchemaBase.cs rename to SharpYaml/Schemas/SchemaBase.cs index 08e04d3..9292a37 100644 --- a/YamlDotNet/Schemas/SchemaBase.cs +++ b/SharpYaml/Schemas/SchemaBase.cs @@ -24,9 +24,9 @@ using System; using System.Collections.Generic; using System.Text.RegularExpressions; -using YamlDotNet.Events; +using SharpYaml.Events; -namespace YamlDotNet.Schemas +namespace SharpYaml.Schemas { /// /// Base implementation for a based schema. diff --git a/YamlDotNet/SemanticErrorException.cs b/SharpYaml/SemanticErrorException.cs similarity index 96% rename from YamlDotNet/SemanticErrorException.cs rename to SharpYaml/SemanticErrorException.cs index 1058a5f..49a527f 100644 --- a/YamlDotNet/SemanticErrorException.cs +++ b/SharpYaml/SemanticErrorException.cs @@ -22,7 +22,7 @@ using System; using System.Runtime.Serialization; -namespace YamlDotNet +namespace SharpYaml { /// /// Exception that is thrown when a semantic error is detected on a YAML stream. diff --git a/YamlDotNet/Serialization/AnchorEventEmitter.cs b/SharpYaml/Serialization/AnchorEventEmitter.cs similarity index 93% rename from YamlDotNet/Serialization/AnchorEventEmitter.cs rename to SharpYaml/Serialization/AnchorEventEmitter.cs index a2caa49..2f49285 100644 --- a/YamlDotNet/Serialization/AnchorEventEmitter.cs +++ b/SharpYaml/Serialization/AnchorEventEmitter.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { internal class AnchorEventEmitter : ChainedEventEmitter { diff --git a/YamlDotNet/Serialization/AnchorNotFoundException.cs b/SharpYaml/Serialization/AnchorNotFoundException.cs similarity index 96% rename from YamlDotNet/Serialization/AnchorNotFoundException.cs rename to SharpYaml/Serialization/AnchorNotFoundException.cs index 7cfc21d..88f8d8b 100644 --- a/YamlDotNet/Serialization/AnchorNotFoundException.cs +++ b/SharpYaml/Serialization/AnchorNotFoundException.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// The exception that is thrown when an alias references an anchor that does not exist. diff --git a/YamlDotNet/Serialization/AttributeRegistry.cs b/SharpYaml/Serialization/AttributeRegistry.cs similarity index 95% rename from YamlDotNet/Serialization/AttributeRegistry.cs rename to SharpYaml/Serialization/AttributeRegistry.cs index 30150a0..c5898df 100644 --- a/YamlDotNet/Serialization/AttributeRegistry.cs +++ b/SharpYaml/Serialization/AttributeRegistry.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// A default implementation for . diff --git a/YamlDotNet/Serialization/ChainedEventEmitter.cs b/SharpYaml/Serialization/ChainedEventEmitter.cs similarity index 92% rename from YamlDotNet/Serialization/ChainedEventEmitter.cs rename to SharpYaml/Serialization/ChainedEventEmitter.cs index 8e9ec7c..1cb80bf 100644 --- a/YamlDotNet/Serialization/ChainedEventEmitter.cs +++ b/SharpYaml/Serialization/ChainedEventEmitter.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Provided the base implementation for an IEventEmitter that is a diff --git a/YamlDotNet/Serialization/ChainedObjectFactory.cs b/SharpYaml/Serialization/ChainedObjectFactory.cs similarity index 91% rename from YamlDotNet/Serialization/ChainedObjectFactory.cs rename to SharpYaml/Serialization/ChainedObjectFactory.cs index 6432299..91d2893 100644 --- a/YamlDotNet/Serialization/ChainedObjectFactory.cs +++ b/SharpYaml/Serialization/ChainedObjectFactory.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// An that can be chained with another object factory; diff --git a/YamlDotNet/Serialization/DefaultObjectFactory.cs b/SharpYaml/Serialization/DefaultObjectFactory.cs similarity index 92% rename from YamlDotNet/Serialization/DefaultObjectFactory.cs rename to SharpYaml/Serialization/DefaultObjectFactory.cs index 7a2f580..b6d4d77 100644 --- a/YamlDotNet/Serialization/DefaultObjectFactory.cs +++ b/SharpYaml/Serialization/DefaultObjectFactory.cs @@ -1,9 +1,9 @@ using System; using System.Collections; using System.Collections.Generic; -using YamlDotNet.Serialization.Descriptors; +using SharpYaml.Serialization.Descriptors; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Creates objects using Activator.CreateInstance. diff --git a/YamlDotNet/Serialization/Descriptors/ArrayDescriptor.cs b/SharpYaml/Serialization/Descriptors/ArrayDescriptor.cs similarity index 94% rename from YamlDotNet/Serialization/Descriptors/ArrayDescriptor.cs rename to SharpYaml/Serialization/Descriptors/ArrayDescriptor.cs index 1761944..9820338 100644 --- a/YamlDotNet/Serialization/Descriptors/ArrayDescriptor.cs +++ b/SharpYaml/Serialization/Descriptors/ArrayDescriptor.cs @@ -3,7 +3,7 @@ using System.Collections; using System.Collections.Generic; using System.Reflection; -namespace YamlDotNet.Serialization.Descriptors +namespace SharpYaml.Serialization.Descriptors { /// /// A descriptor for an array. diff --git a/YamlDotNet/Serialization/Descriptors/CollectionDescriptor.cs b/SharpYaml/Serialization/Descriptors/CollectionDescriptor.cs similarity index 96% rename from YamlDotNet/Serialization/Descriptors/CollectionDescriptor.cs rename to SharpYaml/Serialization/Descriptors/CollectionDescriptor.cs index 966820a..a1e08cb 100644 --- a/YamlDotNet/Serialization/Descriptors/CollectionDescriptor.cs +++ b/SharpYaml/Serialization/Descriptors/CollectionDescriptor.cs @@ -3,7 +3,7 @@ using System.Collections; using System.Collections.Generic; using System.Linq; -namespace YamlDotNet.Serialization.Descriptors +namespace SharpYaml.Serialization.Descriptors { /// /// Provides a descriptor for a . diff --git a/YamlDotNet/Serialization/Descriptors/DictionaryDescriptor.cs b/SharpYaml/Serialization/Descriptors/DictionaryDescriptor.cs similarity index 96% rename from YamlDotNet/Serialization/Descriptors/DictionaryDescriptor.cs rename to SharpYaml/Serialization/Descriptors/DictionaryDescriptor.cs index 42285b5..665608d 100644 --- a/YamlDotNet/Serialization/Descriptors/DictionaryDescriptor.cs +++ b/SharpYaml/Serialization/Descriptors/DictionaryDescriptor.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -namespace YamlDotNet.Serialization.Descriptors +namespace SharpYaml.Serialization.Descriptors { /// /// Provides a descriptor for a . diff --git a/YamlDotNet/Serialization/Descriptors/FieldDescriptor.cs b/SharpYaml/Serialization/Descriptors/FieldDescriptor.cs similarity index 93% rename from YamlDotNet/Serialization/Descriptors/FieldDescriptor.cs rename to SharpYaml/Serialization/Descriptors/FieldDescriptor.cs index 0171904..378f1ea 100644 --- a/YamlDotNet/Serialization/Descriptors/FieldDescriptor.cs +++ b/SharpYaml/Serialization/Descriptors/FieldDescriptor.cs @@ -1,7 +1,7 @@ using System; using System.Reflection; -namespace YamlDotNet.Serialization.Descriptors +namespace SharpYaml.Serialization.Descriptors { /// /// A for a diff --git a/YamlDotNet/Serialization/Descriptors/MemberDescriptorBase.cs b/SharpYaml/Serialization/Descriptors/MemberDescriptorBase.cs similarity index 93% rename from YamlDotNet/Serialization/Descriptors/MemberDescriptorBase.cs rename to SharpYaml/Serialization/Descriptors/MemberDescriptorBase.cs index dee13a6..da1c57e 100644 --- a/YamlDotNet/Serialization/Descriptors/MemberDescriptorBase.cs +++ b/SharpYaml/Serialization/Descriptors/MemberDescriptorBase.cs @@ -1,7 +1,7 @@ using System; using System.Reflection; -namespace YamlDotNet.Serialization.Descriptors +namespace SharpYaml.Serialization.Descriptors { /// /// Base class for for a diff --git a/YamlDotNet/Serialization/Descriptors/NullableDescriptor.cs b/SharpYaml/Serialization/Descriptors/NullableDescriptor.cs similarity index 94% rename from YamlDotNet/Serialization/Descriptors/NullableDescriptor.cs rename to SharpYaml/Serialization/Descriptors/NullableDescriptor.cs index 3212848..52a67e5 100644 --- a/YamlDotNet/Serialization/Descriptors/NullableDescriptor.cs +++ b/SharpYaml/Serialization/Descriptors/NullableDescriptor.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace YamlDotNet.Serialization.Descriptors +namespace SharpYaml.Serialization.Descriptors { /// /// Describes a descriptor for a nullable type . diff --git a/YamlDotNet/Serialization/Descriptors/ObjectDescriptor.cs b/SharpYaml/Serialization/Descriptors/ObjectDescriptor.cs similarity index 97% rename from YamlDotNet/Serialization/Descriptors/ObjectDescriptor.cs rename to SharpYaml/Serialization/Descriptors/ObjectDescriptor.cs index 7d970a5..d9cbc7c 100644 --- a/YamlDotNet/Serialization/Descriptors/ObjectDescriptor.cs +++ b/SharpYaml/Serialization/Descriptors/ObjectDescriptor.cs @@ -29,7 +29,7 @@ using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; -namespace YamlDotNet.Serialization.Descriptors +namespace SharpYaml.Serialization.Descriptors { /// /// Default implementation of a . diff --git a/YamlDotNet/Serialization/Descriptors/PrimitiveDescriptor.cs b/SharpYaml/Serialization/Descriptors/PrimitiveDescriptor.cs similarity index 94% rename from YamlDotNet/Serialization/Descriptors/PrimitiveDescriptor.cs rename to SharpYaml/Serialization/Descriptors/PrimitiveDescriptor.cs index 5741346..9ddc8a9 100644 --- a/YamlDotNet/Serialization/Descriptors/PrimitiveDescriptor.cs +++ b/SharpYaml/Serialization/Descriptors/PrimitiveDescriptor.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace YamlDotNet.Serialization.Descriptors +namespace SharpYaml.Serialization.Descriptors { /// /// Describes a descriptor for a primitive (bool, char, sbyte, byte, int, uint, long, ulong, float, double, decimal, string, DateTime). diff --git a/YamlDotNet/Serialization/Descriptors/PropertyDescriptor.cs b/SharpYaml/Serialization/Descriptors/PropertyDescriptor.cs similarity index 94% rename from YamlDotNet/Serialization/Descriptors/PropertyDescriptor.cs rename to SharpYaml/Serialization/Descriptors/PropertyDescriptor.cs index cfe8494..eb94fe2 100644 --- a/YamlDotNet/Serialization/Descriptors/PropertyDescriptor.cs +++ b/SharpYaml/Serialization/Descriptors/PropertyDescriptor.cs @@ -1,7 +1,7 @@ using System; using System.Reflection; -namespace YamlDotNet.Serialization.Descriptors +namespace SharpYaml.Serialization.Descriptors { /// /// A for a diff --git a/YamlDotNet/Serialization/Descriptors/TypeDescriptorFactory.cs b/SharpYaml/Serialization/Descriptors/TypeDescriptorFactory.cs similarity index 95% rename from YamlDotNet/Serialization/Descriptors/TypeDescriptorFactory.cs rename to SharpYaml/Serialization/Descriptors/TypeDescriptorFactory.cs index 3bc9953..7fda84f 100644 --- a/YamlDotNet/Serialization/Descriptors/TypeDescriptorFactory.cs +++ b/SharpYaml/Serialization/Descriptors/TypeDescriptorFactory.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace YamlDotNet.Serialization.Descriptors +namespace SharpYaml.Serialization.Descriptors { /// /// A default implementation for the . diff --git a/YamlDotNet/Serialization/DocumentLoadingState.cs b/SharpYaml/Serialization/DocumentLoadingState.cs similarity index 95% rename from YamlDotNet/Serialization/DocumentLoadingState.cs rename to SharpYaml/Serialization/DocumentLoadingState.cs index eae3436..42ffab1 100644 --- a/YamlDotNet/Serialization/DocumentLoadingState.cs +++ b/SharpYaml/Serialization/DocumentLoadingState.cs @@ -22,9 +22,9 @@ using System; using System.Collections.Generic; using System.Globalization; -using YamlDotNet; +using SharpYaml; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Manages the state of a while it is loading. diff --git a/YamlDotNet/Serialization/DuplicateAnchorException.cs b/SharpYaml/Serialization/DuplicateAnchorException.cs similarity index 95% rename from YamlDotNet/Serialization/DuplicateAnchorException.cs rename to SharpYaml/Serialization/DuplicateAnchorException.cs index 274a2a3..6feedf8 100644 --- a/YamlDotNet/Serialization/DuplicateAnchorException.cs +++ b/SharpYaml/Serialization/DuplicateAnchorException.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// The exception that is thrown when a duplicate anchor is detected. diff --git a/YamlDotNet/Serialization/EmitterState.cs b/SharpYaml/Serialization/EmitterState.cs similarity index 95% rename from YamlDotNet/Serialization/EmitterState.cs rename to SharpYaml/Serialization/EmitterState.cs index 9eab8ed..7c4a30b 100644 --- a/YamlDotNet/Serialization/EmitterState.cs +++ b/SharpYaml/Serialization/EmitterState.cs @@ -21,7 +21,7 @@ using System.Collections.Generic; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Holds state that is used when emitting a stream. diff --git a/YamlDotNet/Serialization/EventInfo.cs b/SharpYaml/Serialization/EventInfo.cs similarity index 92% rename from YamlDotNet/Serialization/EventInfo.cs rename to SharpYaml/Serialization/EventInfo.cs index 28c271f..faeba54 100644 --- a/YamlDotNet/Serialization/EventInfo.cs +++ b/SharpYaml/Serialization/EventInfo.cs @@ -1,7 +1,7 @@ using System; -using YamlDotNet.Events; +using SharpYaml.Events; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { public abstract class EventInfo { diff --git a/YamlDotNet/Serialization/IAttributeRegistry.cs b/SharpYaml/Serialization/IAttributeRegistry.cs similarity index 96% rename from YamlDotNet/Serialization/IAttributeRegistry.cs rename to SharpYaml/Serialization/IAttributeRegistry.cs index 40ce47b..6d8ff7b 100644 --- a/YamlDotNet/Serialization/IAttributeRegistry.cs +++ b/SharpYaml/Serialization/IAttributeRegistry.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// A registry for all attributes. diff --git a/YamlDotNet/Serialization/IDynamicStyleFormat.cs b/SharpYaml/Serialization/IDynamicStyleFormat.cs similarity index 92% rename from YamlDotNet/Serialization/IDynamicStyleFormat.cs rename to SharpYaml/Serialization/IDynamicStyleFormat.cs index d800336..92bd978 100644 --- a/YamlDotNet/Serialization/IDynamicStyleFormat.cs +++ b/SharpYaml/Serialization/IDynamicStyleFormat.cs @@ -1,4 +1,4 @@ -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// An interface to plug custom to specifics objects instances while diff --git a/YamlDotNet/Serialization/IEventEmitter.cs b/SharpYaml/Serialization/IEventEmitter.cs similarity index 88% rename from YamlDotNet/Serialization/IEventEmitter.cs rename to SharpYaml/Serialization/IEventEmitter.cs index dd67097..5b83a96 100644 --- a/YamlDotNet/Serialization/IEventEmitter.cs +++ b/SharpYaml/Serialization/IEventEmitter.cs @@ -1,4 +1,4 @@ -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Interface used to write YAML events. diff --git a/YamlDotNet/Serialization/IMemberDescriptor.cs b/SharpYaml/Serialization/IMemberDescriptor.cs similarity index 94% rename from YamlDotNet/Serialization/IMemberDescriptor.cs rename to SharpYaml/Serialization/IMemberDescriptor.cs index 764a1e0..1e0612c 100644 --- a/YamlDotNet/Serialization/IMemberDescriptor.cs +++ b/SharpYaml/Serialization/IMemberDescriptor.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Describe a member of an object. diff --git a/YamlDotNet/Serialization/IObjectFactory.cs b/SharpYaml/Serialization/IObjectFactory.cs similarity index 87% rename from YamlDotNet/Serialization/IObjectFactory.cs rename to SharpYaml/Serialization/IObjectFactory.cs index 0447721..3a10cfb 100644 --- a/YamlDotNet/Serialization/IObjectFactory.cs +++ b/SharpYaml/Serialization/IObjectFactory.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Creates instances of types. diff --git a/YamlDotNet/Serialization/ITagTypeRegistry.cs b/SharpYaml/Serialization/ITagTypeRegistry.cs similarity index 94% rename from YamlDotNet/Serialization/ITagTypeRegistry.cs rename to SharpYaml/Serialization/ITagTypeRegistry.cs index f991978..2dc5810 100644 --- a/YamlDotNet/Serialization/ITagTypeRegistry.cs +++ b/SharpYaml/Serialization/ITagTypeRegistry.cs @@ -1,7 +1,7 @@ using System; using System.Reflection; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Prodives tag discovery from a type and type discovery from a tag. diff --git a/YamlDotNet/Serialization/ITypeDescriptor.cs b/SharpYaml/Serialization/ITypeDescriptor.cs similarity index 94% rename from YamlDotNet/Serialization/ITypeDescriptor.cs rename to SharpYaml/Serialization/ITypeDescriptor.cs index 03798cc..d97d79b 100644 --- a/YamlDotNet/Serialization/ITypeDescriptor.cs +++ b/SharpYaml/Serialization/ITypeDescriptor.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Provides access members of a type. diff --git a/YamlDotNet/Serialization/ITypeDescriptorFactory.cs b/SharpYaml/Serialization/ITypeDescriptorFactory.cs similarity index 89% rename from YamlDotNet/Serialization/ITypeDescriptorFactory.cs rename to SharpYaml/Serialization/ITypeDescriptorFactory.cs index dc3e8d3..005767f 100644 --- a/YamlDotNet/Serialization/ITypeDescriptorFactory.cs +++ b/SharpYaml/Serialization/ITypeDescriptorFactory.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// A factory to create an instance of a diff --git a/YamlDotNet/Serialization/IYamlSerializable.cs b/SharpYaml/Serialization/IYamlSerializable.cs similarity index 96% rename from YamlDotNet/Serialization/IYamlSerializable.cs rename to SharpYaml/Serialization/IYamlSerializable.cs index fb86ba2..c9b462f 100644 --- a/YamlDotNet/Serialization/IYamlSerializable.cs +++ b/SharpYaml/Serialization/IYamlSerializable.cs @@ -19,7 +19,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Allows an object to customize how it is serialized and deserialized. diff --git a/YamlDotNet/Serialization/IYamlSerializableFactory.cs b/SharpYaml/Serialization/IYamlSerializableFactory.cs similarity index 92% rename from YamlDotNet/Serialization/IYamlSerializableFactory.cs rename to SharpYaml/Serialization/IYamlSerializableFactory.cs index b281712..3ec19ad 100644 --- a/YamlDotNet/Serialization/IYamlSerializableFactory.cs +++ b/SharpYaml/Serialization/IYamlSerializableFactory.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// A factory of diff --git a/YamlDotNet/Serialization/IYamlVisitor.cs b/SharpYaml/Serialization/IYamlVisitor.cs similarity index 95% rename from YamlDotNet/Serialization/IYamlVisitor.cs rename to SharpYaml/Serialization/IYamlVisitor.cs index 8d6350a..96a2370 100644 --- a/YamlDotNet/Serialization/IYamlVisitor.cs +++ b/SharpYaml/Serialization/IYamlVisitor.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Defines the method needed to be able to visit Yaml elements. diff --git a/YamlDotNet/Serialization/IdentityEqualityComparer.cs b/SharpYaml/Serialization/IdentityEqualityComparer.cs similarity index 86% rename from YamlDotNet/Serialization/IdentityEqualityComparer.cs rename to SharpYaml/Serialization/IdentityEqualityComparer.cs index 0544db7..9b9d479 100644 --- a/YamlDotNet/Serialization/IdentityEqualityComparer.cs +++ b/SharpYaml/Serialization/IdentityEqualityComparer.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Runtime.CompilerServices; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { internal class IdentityEqualityComparer : IEqualityComparer where T : class { diff --git a/YamlDotNet/Serialization/JsonEventEmitter.cs b/SharpYaml/Serialization/JsonEventEmitter.cs similarity index 89% rename from YamlDotNet/Serialization/JsonEventEmitter.cs rename to SharpYaml/Serialization/JsonEventEmitter.cs index 33fa885..5a01321 100644 --- a/YamlDotNet/Serialization/JsonEventEmitter.cs +++ b/SharpYaml/Serialization/JsonEventEmitter.cs @@ -1,9 +1,9 @@ using System; using System.Globalization; -using YamlDotNet; -using YamlDotNet.Events; +using SharpYaml; +using SharpYaml.Events; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { internal sealed class JsonEventEmitter : ChainedEventEmitter { diff --git a/YamlDotNet/Serialization/LambdaObjectFactory.cs b/SharpYaml/Serialization/LambdaObjectFactory.cs similarity index 93% rename from YamlDotNet/Serialization/LambdaObjectFactory.cs rename to SharpYaml/Serialization/LambdaObjectFactory.cs index 0f68a11..845c9d3 100644 --- a/YamlDotNet/Serialization/LambdaObjectFactory.cs +++ b/SharpYaml/Serialization/LambdaObjectFactory.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Creates objects using a Func{Type,object}"/>. diff --git a/YamlDotNet/Serialization/Serializer.cs b/SharpYaml/Serialization/Serializer.cs similarity index 96% rename from YamlDotNet/Serialization/Serializer.cs rename to SharpYaml/Serialization/Serializer.cs index 3df0e5d..3c0d267 100644 --- a/YamlDotNet/Serialization/Serializer.cs +++ b/SharpYaml/Serialization/Serializer.cs @@ -20,10 +20,10 @@ // SOFTWARE. using System; using System.IO; -using YamlDotNet.Events; -using YamlDotNet.Serialization.Serializers; +using SharpYaml.Events; +using SharpYaml.Serialization.Serializers; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Serializes and deserializes objects into and from YAML documents. diff --git a/YamlDotNet/Serialization/SerializerContext.cs b/SharpYaml/Serialization/SerializerContext.cs similarity index 94% rename from YamlDotNet/Serialization/SerializerContext.cs rename to SharpYaml/Serialization/SerializerContext.cs index 6e13998..dba50e0 100644 --- a/YamlDotNet/Serialization/SerializerContext.cs +++ b/SharpYaml/Serialization/SerializerContext.cs @@ -1,11 +1,11 @@ using System; using System.Collections.Generic; -using YamlDotNet.Events; -using YamlDotNet.Schemas; -using YamlDotNet.Serialization.Descriptors; -using YamlDotNet.Serialization.Serializers; +using SharpYaml.Events; +using SharpYaml.Schemas; +using SharpYaml.Serialization.Descriptors; +using SharpYaml.Serialization.Serializers; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// diff --git a/YamlDotNet/Serialization/SerializerSettings.cs b/SharpYaml/Serialization/SerializerSettings.cs similarity index 97% rename from YamlDotNet/Serialization/SerializerSettings.cs rename to SharpYaml/Serialization/SerializerSettings.cs index 81becc5..8ac8ef6 100644 --- a/YamlDotNet/Serialization/SerializerSettings.cs +++ b/SharpYaml/Serialization/SerializerSettings.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.Reflection; -using YamlDotNet.Schemas; +using SharpYaml.Schemas; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Settings used to configure serialization and control how objects are encoded into YAML. diff --git a/YamlDotNet/Serialization/Serializers/AnchorSerializer.cs b/SharpYaml/Serialization/Serializers/AnchorSerializer.cs similarity index 93% rename from YamlDotNet/Serialization/Serializers/AnchorSerializer.cs rename to SharpYaml/Serialization/Serializers/AnchorSerializer.cs index 70f9599..c138d89 100644 --- a/YamlDotNet/Serialization/Serializers/AnchorSerializer.cs +++ b/SharpYaml/Serialization/Serializers/AnchorSerializer.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using YamlDotNet.Events; +using SharpYaml.Events; -namespace YamlDotNet.Serialization.Serializers +namespace SharpYaml.Serialization.Serializers { internal class AnchorSerializer : ChainedSerializer { diff --git a/YamlDotNet/Serialization/Serializers/ArraySerializer.cs b/SharpYaml/Serialization/Serializers/ArraySerializer.cs similarity index 92% rename from YamlDotNet/Serialization/Serializers/ArraySerializer.cs rename to SharpYaml/Serialization/Serializers/ArraySerializer.cs index adb860c..f335025 100644 --- a/YamlDotNet/Serialization/Serializers/ArraySerializer.cs +++ b/SharpYaml/Serialization/Serializers/ArraySerializer.cs @@ -1,9 +1,9 @@ using System.Collections; using System.Collections.Generic; -using YamlDotNet.Events; -using YamlDotNet.Serialization.Descriptors; +using SharpYaml.Events; +using SharpYaml.Serialization.Descriptors; -namespace YamlDotNet.Serialization.Serializers +namespace SharpYaml.Serialization.Serializers { internal class ArraySerializer : IYamlSerializable, IYamlSerializableFactory { diff --git a/YamlDotNet/Serialization/Serializers/ChainedSerializer.cs b/SharpYaml/Serialization/Serializers/ChainedSerializer.cs similarity index 89% rename from YamlDotNet/Serialization/Serializers/ChainedSerializer.cs rename to SharpYaml/Serialization/Serializers/ChainedSerializer.cs index b5c6f18..ff8ac69 100644 --- a/YamlDotNet/Serialization/Serializers/ChainedSerializer.cs +++ b/SharpYaml/Serialization/Serializers/ChainedSerializer.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Serialization.Serializers +namespace SharpYaml.Serialization.Serializers { public class ChainedSerializer : IYamlSerializable { diff --git a/YamlDotNet/Serialization/Serializers/CollectionSerializer.cs b/SharpYaml/Serialization/Serializers/CollectionSerializer.cs similarity index 94% rename from YamlDotNet/Serialization/Serializers/CollectionSerializer.cs rename to SharpYaml/Serialization/Serializers/CollectionSerializer.cs index fdc10bb..991241f 100644 --- a/YamlDotNet/Serialization/Serializers/CollectionSerializer.cs +++ b/SharpYaml/Serialization/Serializers/CollectionSerializer.cs @@ -1,9 +1,9 @@ using System; using System.Collections; -using YamlDotNet.Events; -using YamlDotNet.Serialization.Descriptors; +using SharpYaml.Events; +using SharpYaml.Serialization.Descriptors; -namespace YamlDotNet.Serialization.Serializers +namespace SharpYaml.Serialization.Serializers { internal class CollectionSerializer : ObjectSerializer { diff --git a/YamlDotNet/Serialization/Serializers/DictionarySerializer.cs b/SharpYaml/Serialization/Serializers/DictionarySerializer.cs similarity index 94% rename from YamlDotNet/Serialization/Serializers/DictionarySerializer.cs rename to SharpYaml/Serialization/Serializers/DictionarySerializer.cs index 0705b20..ed015a5 100644 --- a/YamlDotNet/Serialization/Serializers/DictionarySerializer.cs +++ b/SharpYaml/Serialization/Serializers/DictionarySerializer.cs @@ -1,10 +1,10 @@ using System; using System.Collections.Generic; using System.Linq; -using YamlDotNet.Events; -using YamlDotNet.Serialization.Descriptors; +using SharpYaml.Events; +using SharpYaml.Serialization.Descriptors; -namespace YamlDotNet.Serialization.Serializers +namespace SharpYaml.Serialization.Serializers { internal class DictionarySerializer : ObjectSerializer { diff --git a/YamlDotNet/Serialization/Serializers/ObjectSerializer.cs b/SharpYaml/Serialization/Serializers/ObjectSerializer.cs similarity index 95% rename from YamlDotNet/Serialization/Serializers/ObjectSerializer.cs rename to SharpYaml/Serialization/Serializers/ObjectSerializer.cs index 32f6147..7c8d73b 100644 --- a/YamlDotNet/Serialization/Serializers/ObjectSerializer.cs +++ b/SharpYaml/Serialization/Serializers/ObjectSerializer.cs @@ -1,7 +1,7 @@ -using YamlDotNet.Events; -using YamlDotNet.Serialization.Descriptors; +using SharpYaml.Events; +using SharpYaml.Serialization.Descriptors; -namespace YamlDotNet.Serialization.Serializers +namespace SharpYaml.Serialization.Serializers { /// /// Base class for serializing an object that can be a Yaml !!map or !!seq. diff --git a/YamlDotNet/Serialization/Serializers/PrimitiveSerializer.cs b/SharpYaml/Serialization/Serializers/PrimitiveSerializer.cs similarity index 94% rename from YamlDotNet/Serialization/Serializers/PrimitiveSerializer.cs rename to SharpYaml/Serialization/Serializers/PrimitiveSerializer.cs index 443e9a9..b88b28c 100644 --- a/YamlDotNet/Serialization/Serializers/PrimitiveSerializer.cs +++ b/SharpYaml/Serialization/Serializers/PrimitiveSerializer.cs @@ -1,9 +1,9 @@ using System; using System.Globalization; -using YamlDotNet.Events; -using YamlDotNet.Serialization.Descriptors; +using SharpYaml.Events; +using SharpYaml.Serialization.Descriptors; -namespace YamlDotNet.Serialization.Serializers +namespace SharpYaml.Serialization.Serializers { internal class PrimitiveSerializer : ScalarSerializerBase, IYamlSerializableFactory { diff --git a/YamlDotNet/Serialization/Serializers/RoutingSerializer.cs b/SharpYaml/Serialization/Serializers/RoutingSerializer.cs similarity index 92% rename from YamlDotNet/Serialization/Serializers/RoutingSerializer.cs rename to SharpYaml/Serialization/Serializers/RoutingSerializer.cs index f58b08a..f43179c 100644 --- a/YamlDotNet/Serialization/Serializers/RoutingSerializer.cs +++ b/SharpYaml/Serialization/Serializers/RoutingSerializer.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using YamlDotNet.Serialization.Descriptors; +using SharpYaml.Serialization.Descriptors; -namespace YamlDotNet.Serialization.Serializers +namespace SharpYaml.Serialization.Serializers { /// /// This serializer is responsible to route to a specific serializer. diff --git a/YamlDotNet/Serialization/Serializers/ScalarSerializerBase.cs b/SharpYaml/Serialization/Serializers/ScalarSerializerBase.cs similarity index 91% rename from YamlDotNet/Serialization/Serializers/ScalarSerializerBase.cs rename to SharpYaml/Serialization/Serializers/ScalarSerializerBase.cs index 232a77b..d17d20d 100644 --- a/YamlDotNet/Serialization/Serializers/ScalarSerializerBase.cs +++ b/SharpYaml/Serialization/Serializers/ScalarSerializerBase.cs @@ -1,7 +1,7 @@ using System; -using YamlDotNet.Events; +using SharpYaml.Events; -namespace YamlDotNet.Serialization.Serializers +namespace SharpYaml.Serialization.Serializers { public abstract class ScalarSerializerBase : IYamlSerializable { diff --git a/YamlDotNet/Serialization/Serializers/TagTypeSerializer.cs b/SharpYaml/Serialization/Serializers/TagTypeSerializer.cs similarity index 97% rename from YamlDotNet/Serialization/Serializers/TagTypeSerializer.cs rename to SharpYaml/Serialization/Serializers/TagTypeSerializer.cs index 0fb2af8..b0a5624 100644 --- a/YamlDotNet/Serialization/Serializers/TagTypeSerializer.cs +++ b/SharpYaml/Serialization/Serializers/TagTypeSerializer.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; -using YamlDotNet.Events; -using YamlDotNet.Serialization.Descriptors; +using SharpYaml.Events; +using SharpYaml.Serialization.Descriptors; -namespace YamlDotNet.Serialization.Serializers +namespace SharpYaml.Serialization.Serializers { internal class TagTypeSerializer : ChainedSerializer { diff --git a/YamlDotNet/Serialization/TagTypeRegistry.cs b/SharpYaml/Serialization/TagTypeRegistry.cs similarity index 95% rename from YamlDotNet/Serialization/TagTypeRegistry.cs rename to SharpYaml/Serialization/TagTypeRegistry.cs index bfbb7db..1aa28f6 100644 --- a/YamlDotNet/Serialization/TagTypeRegistry.cs +++ b/SharpYaml/Serialization/TagTypeRegistry.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.Reflection; -using YamlDotNet.Schemas; +using SharpYaml.Schemas; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Default implementation of ITagTypeRegistry. diff --git a/YamlDotNet/Serialization/ValueInput.cs b/SharpYaml/Serialization/ValueInput.cs similarity index 96% rename from YamlDotNet/Serialization/ValueInput.cs rename to SharpYaml/Serialization/ValueInput.cs index 5c7214f..f7aad44 100644 --- a/YamlDotNet/Serialization/ValueInput.cs +++ b/SharpYaml/Serialization/ValueInput.cs @@ -1,4 +1,4 @@ -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// A value to serialize. diff --git a/YamlDotNet/Serialization/ValueOutput.cs b/SharpYaml/Serialization/ValueOutput.cs similarity index 96% rename from YamlDotNet/Serialization/ValueOutput.cs rename to SharpYaml/Serialization/ValueOutput.cs index 0dfbdd8..5185c66 100644 --- a/YamlDotNet/Serialization/ValueOutput.cs +++ b/SharpYaml/Serialization/ValueOutput.cs @@ -1,6 +1,6 @@ -using YamlDotNet.Events; +using SharpYaml.Events; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// A deserialized value used by that diff --git a/YamlDotNet/Serialization/WriterEventEmitter.cs b/SharpYaml/Serialization/WriterEventEmitter.cs similarity index 90% rename from YamlDotNet/Serialization/WriterEventEmitter.cs rename to SharpYaml/Serialization/WriterEventEmitter.cs index a699878..068706d 100644 --- a/YamlDotNet/Serialization/WriterEventEmitter.cs +++ b/SharpYaml/Serialization/WriterEventEmitter.cs @@ -1,7 +1,7 @@ -using YamlDotNet; -using YamlDotNet.Events; +using SharpYaml; +using SharpYaml.Events; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { internal sealed class WriterEventEmitter : IEventEmitter { diff --git a/YamlDotNet/Serialization/YamlAliasNode.cs b/SharpYaml/Serialization/YamlAliasNode.cs similarity index 95% rename from YamlDotNet/Serialization/YamlAliasNode.cs rename to SharpYaml/Serialization/YamlAliasNode.cs index 276703d..f481129 100644 --- a/YamlDotNet/Serialization/YamlAliasNode.cs +++ b/SharpYaml/Serialization/YamlAliasNode.cs @@ -21,9 +21,9 @@ using System; using System.Collections.Generic; -using YamlDotNet; +using SharpYaml; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Represents an alias node in the YAML document. diff --git a/YamlDotNet/Serialization/YamlDocument.cs b/SharpYaml/Serialization/YamlDocument.cs similarity index 94% rename from YamlDotNet/Serialization/YamlDocument.cs rename to SharpYaml/Serialization/YamlDocument.cs index 643849c..a8f2e23 100644 --- a/YamlDotNet/Serialization/YamlDocument.cs +++ b/SharpYaml/Serialization/YamlDocument.cs @@ -23,10 +23,10 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -using YamlDotNet; -using YamlDotNet.Events; +using SharpYaml; +using SharpYaml.Events; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Represents an YAML document. diff --git a/YamlDotNet/Serialization/YamlIgnoreAttribute.cs b/SharpYaml/Serialization/YamlIgnoreAttribute.cs similarity index 86% rename from YamlDotNet/Serialization/YamlIgnoreAttribute.cs rename to SharpYaml/Serialization/YamlIgnoreAttribute.cs index 17545e7..1cee89c 100644 --- a/YamlDotNet/Serialization/YamlIgnoreAttribute.cs +++ b/SharpYaml/Serialization/YamlIgnoreAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Instructs the YamlSerializer not to serialize the public field or public read/write property value. diff --git a/YamlDotNet/Serialization/YamlMappingNode.cs b/SharpYaml/Serialization/YamlMappingNode.cs similarity index 95% rename from YamlDotNet/Serialization/YamlMappingNode.cs rename to SharpYaml/Serialization/YamlMappingNode.cs index 7807209..23985b6 100644 --- a/YamlDotNet/Serialization/YamlMappingNode.cs +++ b/SharpYaml/Serialization/YamlMappingNode.cs @@ -23,10 +23,10 @@ using System; using System.Collections.Generic; using System.Text; -using YamlDotNet; -using YamlDotNet.Events; +using SharpYaml; +using SharpYaml.Events; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Represents a mapping node in the YAML document. diff --git a/YamlDotNet/Serialization/YamlMemberAttribute.cs b/SharpYaml/Serialization/YamlMemberAttribute.cs similarity index 94% rename from YamlDotNet/Serialization/YamlMemberAttribute.cs rename to SharpYaml/Serialization/YamlMemberAttribute.cs index 4bbfc85..35f13a5 100644 --- a/YamlDotNet/Serialization/YamlMemberAttribute.cs +++ b/SharpYaml/Serialization/YamlMemberAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Specify the way to store a property or field of some class or structure. diff --git a/YamlDotNet/Serialization/YamlNode.cs b/SharpYaml/Serialization/YamlNode.cs similarity index 95% rename from YamlDotNet/Serialization/YamlNode.cs rename to SharpYaml/Serialization/YamlNode.cs index a2f7215..43e267c 100644 --- a/YamlDotNet/Serialization/YamlNode.cs +++ b/SharpYaml/Serialization/YamlNode.cs @@ -20,11 +20,11 @@ // SOFTWARE. using System; -using YamlDotNet; -using YamlDotNet.Events; +using SharpYaml; +using SharpYaml.Events; using System.Collections.Generic; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Represents a single node in the YAML document. diff --git a/YamlDotNet/Serialization/YamlNodeIdentityEqualityComparer.cs b/SharpYaml/Serialization/YamlNodeIdentityEqualityComparer.cs similarity index 95% rename from YamlDotNet/Serialization/YamlNodeIdentityEqualityComparer.cs rename to SharpYaml/Serialization/YamlNodeIdentityEqualityComparer.cs index b745094..ecf9e82 100644 --- a/YamlDotNet/Serialization/YamlNodeIdentityEqualityComparer.cs +++ b/SharpYaml/Serialization/YamlNodeIdentityEqualityComparer.cs @@ -21,7 +21,7 @@ using System.Collections.Generic; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Comparer that is based on identity comparisons. diff --git a/YamlDotNet/Serialization/YamlScalarNode.cs b/SharpYaml/Serialization/YamlScalarNode.cs similarity index 91% rename from YamlDotNet/Serialization/YamlScalarNode.cs rename to SharpYaml/Serialization/YamlScalarNode.cs index 3128af2..b1918df 100644 --- a/YamlDotNet/Serialization/YamlScalarNode.cs +++ b/SharpYaml/Serialization/YamlScalarNode.cs @@ -23,10 +23,10 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using YamlDotNet; -using YamlDotNet.Events; +using SharpYaml; +using SharpYaml.Events; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Represents a scalar node in the YAML document. @@ -126,7 +126,7 @@ namespace YamlDotNet.Serialization } /// - /// Performs an implicit conversion from to . + /// Performs an implicit conversion from to . /// /// The value. /// The result of the conversion. @@ -136,7 +136,7 @@ namespace YamlDotNet.Serialization } /// - /// Performs an explicit conversion from to . + /// Performs an explicit conversion from to . /// /// The value. /// The result of the conversion. diff --git a/YamlDotNet/Serialization/YamlSequenceNode.cs b/SharpYaml/Serialization/YamlSequenceNode.cs similarity index 95% rename from YamlDotNet/Serialization/YamlSequenceNode.cs rename to SharpYaml/Serialization/YamlSequenceNode.cs index b6834c9..1694e39 100644 --- a/YamlDotNet/Serialization/YamlSequenceNode.cs +++ b/SharpYaml/Serialization/YamlSequenceNode.cs @@ -23,11 +23,11 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using YamlDotNet; -using YamlDotNet.Events; +using SharpYaml; +using SharpYaml.Events; using System.Text; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Represents a sequence node in the YAML document. diff --git a/YamlDotNet/Serialization/YamlSerializableMethod.cs b/SharpYaml/Serialization/YamlSerializableMethod.cs similarity index 93% rename from YamlDotNet/Serialization/YamlSerializableMethod.cs rename to SharpYaml/Serialization/YamlSerializableMethod.cs index 48b7000..b592ce2 100644 --- a/YamlDotNet/Serialization/YamlSerializableMethod.cs +++ b/SharpYaml/Serialization/YamlSerializableMethod.cs @@ -1,4 +1,4 @@ -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Specify the way to store a property or field of some class or structure. diff --git a/YamlDotNet/Serialization/YamlStream.cs b/SharpYaml/Serialization/YamlStream.cs similarity index 94% rename from YamlDotNet/Serialization/YamlStream.cs rename to SharpYaml/Serialization/YamlStream.cs index 21a8ccd..69b2280 100644 --- a/YamlDotNet/Serialization/YamlStream.cs +++ b/SharpYaml/Serialization/YamlStream.cs @@ -21,10 +21,10 @@ using System.Collections.Generic; using System.IO; -using YamlDotNet; -using YamlDotNet.Events; +using SharpYaml; +using SharpYaml.Events; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Represents an YAML stream. diff --git a/YamlDotNet/Serialization/YamlStyleAttribute.cs b/SharpYaml/Serialization/YamlStyleAttribute.cs similarity index 92% rename from YamlDotNet/Serialization/YamlStyleAttribute.cs rename to SharpYaml/Serialization/YamlStyleAttribute.cs index 31c0f1a..73a97cd 100644 --- a/YamlDotNet/Serialization/YamlStyleAttribute.cs +++ b/SharpYaml/Serialization/YamlStyleAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// An attribute to modify the output style of a sequence or mapping. diff --git a/YamlDotNet/Serialization/YamlTagAttribute.cs b/SharpYaml/Serialization/YamlTagAttribute.cs similarity index 90% rename from YamlDotNet/Serialization/YamlTagAttribute.cs rename to SharpYaml/Serialization/YamlTagAttribute.cs index d6fddad..8be4898 100644 --- a/YamlDotNet/Serialization/YamlTagAttribute.cs +++ b/SharpYaml/Serialization/YamlTagAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// An attribute to associate a tag with a particular type. diff --git a/YamlDotNet/Serialization/YamlVisitor.cs b/SharpYaml/Serialization/YamlVisitor.cs similarity index 96% rename from YamlDotNet/Serialization/YamlVisitor.cs rename to SharpYaml/Serialization/YamlVisitor.cs index 40aa109..f929417 100644 --- a/YamlDotNet/Serialization/YamlVisitor.cs +++ b/SharpYaml/Serialization/YamlVisitor.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Serialization +namespace SharpYaml.Serialization { /// /// Abstract implementation of that knows how to walk a complete Yaml object model. diff --git a/YamlDotNet/YamlDotNet.csproj b/SharpYaml/SharpYAml.csproj similarity index 95% rename from YamlDotNet/YamlDotNet.csproj rename to SharpYaml/SharpYAml.csproj index 5d9c389..6068808 100644 --- a/YamlDotNet/YamlDotNet.csproj +++ b/SharpYaml/SharpYAml.csproj @@ -8,21 +8,21 @@ {BF32DE1B-6276-4341-B212-F8862ADBBA7A} Library Properties - YamlDotNet - YamlDotNet + SharpYaml + SharpYaml v4.0 Profile136 512 {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} true - ..\YamlDotNet.snk + ..\SharpYaml.snk true full false bin\Debug\ - bin\Debug\YamlDotNet.xml + bin\Debug\SharpYaml.xml DEBUG;TRACE prompt 4 @@ -31,7 +31,7 @@ pdbonly true bin\Release\ - bin\Release\YamlDotNet.xml + bin\Release\SharpYaml.xml TRACE prompt 4 diff --git a/SharpYaml/SharpYaml.csproj.DotSettings b/SharpYaml/SharpYaml.csproj.DotSettings new file mode 100644 index 0000000..29b3aea --- /dev/null +++ b/SharpYaml/SharpYaml.csproj.DotSettings @@ -0,0 +1,4 @@ + + False + True + True \ No newline at end of file diff --git a/YamlDotNet/SimpleKey.cs b/SharpYaml/SimpleKey.cs similarity index 95% rename from YamlDotNet/SimpleKey.cs rename to SharpYaml/SimpleKey.cs index 1cce2ba..4aa700c 100644 --- a/YamlDotNet/SimpleKey.cs +++ b/SharpYaml/SimpleKey.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet +namespace SharpYaml { /// /// Represents a simple key. diff --git a/YamlDotNet/SortedDictionary.cs b/SharpYaml/SortedDictionary.cs similarity index 95% rename from YamlDotNet/SortedDictionary.cs rename to SharpYaml/SortedDictionary.cs index 91bbe4d..1a0fff8 100644 --- a/YamlDotNet/SortedDictionary.cs +++ b/SharpYaml/SortedDictionary.cs @@ -3,7 +3,7 @@ using System.Collections; using System.Collections.Generic; using System.Diagnostics; -namespace YamlDotNet +namespace SharpYaml { [DebuggerDisplay("Count = {Count}")] internal class SortedDictionary : IDictionary, IDictionary diff --git a/YamlDotNet/StringExtensions.cs b/SharpYaml/StringExtensions.cs similarity index 92% rename from YamlDotNet/StringExtensions.cs rename to SharpYaml/StringExtensions.cs index d542906..1387d68 100644 --- a/YamlDotNet/StringExtensions.cs +++ b/SharpYaml/StringExtensions.cs @@ -1,4 +1,4 @@ -namespace YamlDotNet +namespace SharpYaml { /// /// Add extensions methods to . diff --git a/YamlDotNet/StringLookAheadBuffer.cs b/SharpYaml/StringLookAheadBuffer.cs similarity index 95% rename from YamlDotNet/StringLookAheadBuffer.cs rename to SharpYaml/StringLookAheadBuffer.cs index 2309466..037f925 100644 --- a/YamlDotNet/StringLookAheadBuffer.cs +++ b/SharpYaml/StringLookAheadBuffer.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet +namespace SharpYaml { internal class StringLookAheadBuffer : ILookAheadBuffer { diff --git a/YamlDotNet/SyntaxErrorException.cs b/SharpYaml/SyntaxErrorException.cs similarity index 96% rename from YamlDotNet/SyntaxErrorException.cs rename to SharpYaml/SyntaxErrorException.cs index 0bafebb..0d07e94 100644 --- a/YamlDotNet/SyntaxErrorException.cs +++ b/SharpYaml/SyntaxErrorException.cs @@ -22,7 +22,7 @@ using System; using System.Runtime.Serialization; -namespace YamlDotNet +namespace SharpYaml { /// /// Exception that is thrown when a syntax error is detected on a YAML stream. diff --git a/YamlDotNet/TagDirectiveCollection.cs b/SharpYaml/TagDirectiveCollection.cs similarity index 95% rename from YamlDotNet/TagDirectiveCollection.cs rename to SharpYaml/TagDirectiveCollection.cs index 95467c1..df12445 100644 --- a/YamlDotNet/TagDirectiveCollection.cs +++ b/SharpYaml/TagDirectiveCollection.cs @@ -22,9 +22,9 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using YamlDotNet.Tokens; +using SharpYaml.Tokens; -namespace YamlDotNet +namespace SharpYaml { /// /// Collection of . diff --git a/YamlDotNet/Tokens/Anchor.cs b/SharpYaml/Tokens/Anchor.cs similarity index 95% rename from YamlDotNet/Tokens/Anchor.cs rename to SharpYaml/Tokens/Anchor.cs index 4dd1d4d..f603a84 100644 --- a/YamlDotNet/Tokens/Anchor.cs +++ b/SharpYaml/Tokens/Anchor.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents an anchor token. diff --git a/YamlDotNet/Tokens/AnchorAlias.cs b/SharpYaml/Tokens/AnchorAlias.cs similarity index 95% rename from YamlDotNet/Tokens/AnchorAlias.cs rename to SharpYaml/Tokens/AnchorAlias.cs index a9a4860..f200b8e 100644 --- a/YamlDotNet/Tokens/AnchorAlias.cs +++ b/SharpYaml/Tokens/AnchorAlias.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents an alias token. diff --git a/YamlDotNet/Tokens/BlockEnd.cs b/SharpYaml/Tokens/BlockEnd.cs similarity index 95% rename from YamlDotNet/Tokens/BlockEnd.cs rename to SharpYaml/Tokens/BlockEnd.cs index 34b218b..b3539d8 100644 --- a/YamlDotNet/Tokens/BlockEnd.cs +++ b/SharpYaml/Tokens/BlockEnd.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a block end token. diff --git a/YamlDotNet/Tokens/BlockEntry.cs b/SharpYaml/Tokens/BlockEntry.cs similarity index 95% rename from YamlDotNet/Tokens/BlockEntry.cs rename to SharpYaml/Tokens/BlockEntry.cs index fc8c02f..9ef4ba6 100644 --- a/YamlDotNet/Tokens/BlockEntry.cs +++ b/SharpYaml/Tokens/BlockEntry.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a block entry event. diff --git a/YamlDotNet/Tokens/BlockMappingStart.cs b/SharpYaml/Tokens/BlockMappingStart.cs similarity index 96% rename from YamlDotNet/Tokens/BlockMappingStart.cs rename to SharpYaml/Tokens/BlockMappingStart.cs index 743b1c5..7980f91 100644 --- a/YamlDotNet/Tokens/BlockMappingStart.cs +++ b/SharpYaml/Tokens/BlockMappingStart.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a block mapping start token. diff --git a/YamlDotNet/Tokens/BlockSequenceStart.cs b/SharpYaml/Tokens/BlockSequenceStart.cs similarity index 96% rename from YamlDotNet/Tokens/BlockSequenceStart.cs rename to SharpYaml/Tokens/BlockSequenceStart.cs index 19e439b..da58417 100644 --- a/YamlDotNet/Tokens/BlockSequenceStart.cs +++ b/SharpYaml/Tokens/BlockSequenceStart.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a block sequence start token. diff --git a/YamlDotNet/Tokens/DocumentEnd.cs b/SharpYaml/Tokens/DocumentEnd.cs similarity index 95% rename from YamlDotNet/Tokens/DocumentEnd.cs rename to SharpYaml/Tokens/DocumentEnd.cs index 67cdc1c..7477d30 100644 --- a/YamlDotNet/Tokens/DocumentEnd.cs +++ b/SharpYaml/Tokens/DocumentEnd.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a document end token. diff --git a/YamlDotNet/Tokens/DocumentStart.cs b/SharpYaml/Tokens/DocumentStart.cs similarity index 95% rename from YamlDotNet/Tokens/DocumentStart.cs rename to SharpYaml/Tokens/DocumentStart.cs index 794e1f3..02d999b 100644 --- a/YamlDotNet/Tokens/DocumentStart.cs +++ b/SharpYaml/Tokens/DocumentStart.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a document start token. diff --git a/YamlDotNet/Tokens/FlowEntry.cs b/SharpYaml/Tokens/FlowEntry.cs similarity index 95% rename from YamlDotNet/Tokens/FlowEntry.cs rename to SharpYaml/Tokens/FlowEntry.cs index 5ca655f..b35885f 100644 --- a/YamlDotNet/Tokens/FlowEntry.cs +++ b/SharpYaml/Tokens/FlowEntry.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a flow entry event. diff --git a/YamlDotNet/Tokens/FlowMappingEnd.cs b/SharpYaml/Tokens/FlowMappingEnd.cs similarity index 95% rename from YamlDotNet/Tokens/FlowMappingEnd.cs rename to SharpYaml/Tokens/FlowMappingEnd.cs index 7f27404..bcff580 100644 --- a/YamlDotNet/Tokens/FlowMappingEnd.cs +++ b/SharpYaml/Tokens/FlowMappingEnd.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a flow mapping end token. diff --git a/YamlDotNet/Tokens/FlowMappingStart.cs b/SharpYaml/Tokens/FlowMappingStart.cs similarity index 95% rename from YamlDotNet/Tokens/FlowMappingStart.cs rename to SharpYaml/Tokens/FlowMappingStart.cs index d90ef11..e61f4ea 100644 --- a/YamlDotNet/Tokens/FlowMappingStart.cs +++ b/SharpYaml/Tokens/FlowMappingStart.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a flow mapping start token. diff --git a/YamlDotNet/Tokens/FlowSequenceEnd.cs b/SharpYaml/Tokens/FlowSequenceEnd.cs similarity index 95% rename from YamlDotNet/Tokens/FlowSequenceEnd.cs rename to SharpYaml/Tokens/FlowSequenceEnd.cs index 24e171d..d19b25b 100644 --- a/YamlDotNet/Tokens/FlowSequenceEnd.cs +++ b/SharpYaml/Tokens/FlowSequenceEnd.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a flow sequence end token. diff --git a/YamlDotNet/Tokens/FlowSequenceStart.cs b/SharpYaml/Tokens/FlowSequenceStart.cs similarity index 96% rename from YamlDotNet/Tokens/FlowSequenceStart.cs rename to SharpYaml/Tokens/FlowSequenceStart.cs index 6138f3a..608aa8d 100644 --- a/YamlDotNet/Tokens/FlowSequenceStart.cs +++ b/SharpYaml/Tokens/FlowSequenceStart.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a flow sequence start token. diff --git a/YamlDotNet/Tokens/Key.cs b/SharpYaml/Tokens/Key.cs similarity index 95% rename from YamlDotNet/Tokens/Key.cs rename to SharpYaml/Tokens/Key.cs index 494d5e7..e54ed7a 100644 --- a/YamlDotNet/Tokens/Key.cs +++ b/SharpYaml/Tokens/Key.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a key token. diff --git a/YamlDotNet/Tokens/Scalar.cs b/SharpYaml/Tokens/Scalar.cs similarity index 95% rename from YamlDotNet/Tokens/Scalar.cs rename to SharpYaml/Tokens/Scalar.cs index 0227252..5c2b2d8 100644 --- a/YamlDotNet/Tokens/Scalar.cs +++ b/SharpYaml/Tokens/Scalar.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a scalar token. diff --git a/YamlDotNet/Tokens/StreamEnd.cs b/SharpYaml/Tokens/StreamEnd.cs similarity index 95% rename from YamlDotNet/Tokens/StreamEnd.cs rename to SharpYaml/Tokens/StreamEnd.cs index 4ba1ab5..d75a360 100644 --- a/YamlDotNet/Tokens/StreamEnd.cs +++ b/SharpYaml/Tokens/StreamEnd.cs @@ -22,7 +22,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a stream end event. diff --git a/YamlDotNet/Tokens/StreamStart.cs b/SharpYaml/Tokens/StreamStart.cs similarity index 95% rename from YamlDotNet/Tokens/StreamStart.cs rename to SharpYaml/Tokens/StreamStart.cs index 885390d..f40c26d 100644 --- a/YamlDotNet/Tokens/StreamStart.cs +++ b/SharpYaml/Tokens/StreamStart.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a stream start token. diff --git a/YamlDotNet/Tokens/Tag.cs b/SharpYaml/Tokens/Tag.cs similarity index 95% rename from YamlDotNet/Tokens/Tag.cs rename to SharpYaml/Tokens/Tag.cs index 88d957b..3ce7c36 100644 --- a/YamlDotNet/Tokens/Tag.cs +++ b/SharpYaml/Tokens/Tag.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a tag token. diff --git a/YamlDotNet/Tokens/TagDirective.cs b/SharpYaml/Tokens/TagDirective.cs similarity index 96% rename from YamlDotNet/Tokens/TagDirective.cs rename to SharpYaml/Tokens/TagDirective.cs index aa79354..b76d7b8 100644 --- a/YamlDotNet/Tokens/TagDirective.cs +++ b/SharpYaml/Tokens/TagDirective.cs @@ -23,7 +23,7 @@ using System; using System.Globalization; using System.Text.RegularExpressions; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a tag directive token. diff --git a/YamlDotNet/Tokens/Token.cs b/SharpYaml/Tokens/Token.cs similarity index 95% rename from YamlDotNet/Tokens/Token.cs rename to SharpYaml/Tokens/Token.cs index 65acf1a..c43fd48 100644 --- a/YamlDotNet/Tokens/Token.cs +++ b/SharpYaml/Tokens/Token.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Base class for YAML tokens. diff --git a/YamlDotNet/Tokens/Value.cs b/SharpYaml/Tokens/Value.cs similarity index 95% rename from YamlDotNet/Tokens/Value.cs rename to SharpYaml/Tokens/Value.cs index 3e32183..32cf785 100644 --- a/YamlDotNet/Tokens/Value.cs +++ b/SharpYaml/Tokens/Value.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a value token. diff --git a/YamlDotNet/Tokens/VersionDirective.cs b/SharpYaml/Tokens/VersionDirective.cs similarity index 96% rename from YamlDotNet/Tokens/VersionDirective.cs rename to SharpYaml/Tokens/VersionDirective.cs index 3a6776b..b64cafa 100644 --- a/YamlDotNet/Tokens/VersionDirective.cs +++ b/SharpYaml/Tokens/VersionDirective.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet.Tokens +namespace SharpYaml.Tokens { /// /// Represents a version directive token. diff --git a/YamlDotNet/TypeExtensions.cs b/SharpYaml/TypeExtensions.cs similarity index 96% rename from YamlDotNet/TypeExtensions.cs rename to SharpYaml/TypeExtensions.cs index f22cbe6..2130159 100644 --- a/YamlDotNet/TypeExtensions.cs +++ b/SharpYaml/TypeExtensions.cs @@ -2,7 +2,7 @@ using System.Reflection; using System.Runtime.CompilerServices; -namespace YamlDotNet +namespace SharpYaml { internal static class TypeExtensions { diff --git a/YamlDotNet/Version.cs b/SharpYaml/Version.cs similarity index 96% rename from YamlDotNet/Version.cs rename to SharpYaml/Version.cs index 6f067f8..ca88f35 100644 --- a/YamlDotNet/Version.cs +++ b/SharpYaml/Version.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet +namespace SharpYaml { /// /// Specifies the version of the YAML language. diff --git a/YamlDotNet/YamlException.cs b/SharpYaml/YamlException.cs similarity index 95% rename from YamlDotNet/YamlException.cs rename to SharpYaml/YamlException.cs index 2394cf8..d6fcabf 100644 --- a/YamlDotNet/YamlException.cs +++ b/SharpYaml/YamlException.cs @@ -22,10 +22,10 @@ using System; using System.Runtime.Serialization; -namespace YamlDotNet +namespace SharpYaml { /// - /// Base exception that is thrown when the a problem occurs in the YamlDotNet library. + /// Base exception that is thrown when the a problem occurs in the SharpYaml library. /// public class YamlException : Exception { diff --git a/YamlDotNet/YamlStyle.cs b/SharpYaml/YamlStyle.cs similarity index 95% rename from YamlDotNet/YamlStyle.cs rename to SharpYaml/YamlStyle.cs index 6d81594..640d415 100644 --- a/YamlDotNet/YamlStyle.cs +++ b/SharpYaml/YamlStyle.cs @@ -21,7 +21,7 @@ using System; -namespace YamlDotNet +namespace SharpYaml { /// /// Specifies the style of a sequence or mapping. diff --git a/YamlDotNetEditor/FileAndContentTypeDefinitions.cs b/SharpYamlEditor/FileAndContentTypeDefinitions.cs similarity index 96% rename from YamlDotNetEditor/FileAndContentTypeDefinitions.cs rename to SharpYamlEditor/FileAndContentTypeDefinitions.cs index 497d658..906dea7 100644 --- a/YamlDotNetEditor/FileAndContentTypeDefinitions.cs +++ b/SharpYamlEditor/FileAndContentTypeDefinitions.cs @@ -22,7 +22,7 @@ using Microsoft.VisualStudio.Utilities; using System.ComponentModel.Composition; -namespace YamlDotNetEditor +namespace SharpYamlEditor { internal static class FileAndContentTypeDefinitions { diff --git a/YamlDotNetEditor/LICENSE b/SharpYamlEditor/LICENSE similarity index 100% rename from YamlDotNetEditor/LICENSE rename to SharpYamlEditor/LICENSE diff --git a/YamlDotNetEditor/Properties/AssemblyInfo.cs b/SharpYamlEditor/Properties/AssemblyInfo.cs similarity index 90% rename from YamlDotNetEditor/Properties/AssemblyInfo.cs rename to SharpYamlEditor/Properties/AssemblyInfo.cs index eac632c..24cf4ef 100644 --- a/YamlDotNetEditor/Properties/AssemblyInfo.cs +++ b/SharpYamlEditor/Properties/AssemblyInfo.cs @@ -5,11 +5,11 @@ using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("YamlDotNetEditor")] +[assembly: AssemblyTitle("SharpYamlEditor")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("YamlDotNetEditor")] +[assembly: AssemblyProduct("SharpYamlEditor")] [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/YamlDotNetEditor/YamlDotNetEditor.csproj b/SharpYamlEditor/SharpYamlEditor.csproj similarity index 91% rename from YamlDotNetEditor/YamlDotNetEditor.csproj rename to SharpYamlEditor/SharpYamlEditor.csproj index fb4a8b7..9b0b4a1 100644 --- a/YamlDotNetEditor/YamlDotNetEditor.csproj +++ b/SharpYamlEditor/SharpYamlEditor.csproj @@ -15,8 +15,8 @@ {708C56D8-492C-4EED-A306-1FE75FC7D234} Library Properties - YamlDotNetEditor - YamlDotNetEditor + SharpYamlEditor + SharpYamlEditor v4.5 512 false @@ -69,9 +69,9 @@ - - - + + + @@ -94,9 +94,9 @@ - + {bf32de1b-6276-4341-b212-f8862adbba7a} - YamlDotNet + SharpYaml diff --git a/YamlDotNetEditor/YamlDotNetEditor.cs b/SharpYamlEditor/YamlDotNetEditor.cs similarity index 91% rename from YamlDotNetEditor/YamlDotNetEditor.cs rename to SharpYamlEditor/YamlDotNetEditor.cs index 13a9aec..2c1f4c6 100644 --- a/YamlDotNetEditor/YamlDotNetEditor.cs +++ b/SharpYamlEditor/YamlDotNetEditor.cs @@ -28,11 +28,11 @@ using Microsoft.VisualStudio.Utilities; using System.IO; using Microsoft.VisualStudio.Language.StandardClassification; using System.Text.RegularExpressions; -using YamlDotNet; -using YamlDotNet.Schemas; -using YamlDotNet.Tokens; +using SharpYaml; +using SharpYaml.Schemas; +using SharpYaml.Tokens; -namespace YamlDotNetEditor +namespace SharpYamlEditor { #region Provider definition @@ -42,7 +42,7 @@ namespace YamlDotNetEditor /// [Export(typeof(IClassifierProvider))] [ContentType("yaml")] - internal class YamlDotNetEditorProvider : IClassifierProvider + internal class SharpYamlEditorProvider : IClassifierProvider { /// /// Import the classification registry to be used for getting a reference @@ -53,7 +53,7 @@ namespace YamlDotNetEditor public IClassifier GetClassifier(ITextBuffer buffer) { - return buffer.Properties.GetOrCreateSingletonProperty(delegate { return new YamlDotNetEditor(ClassificationRegistry); }); + return buffer.Properties.GetOrCreateSingletonProperty(delegate { return new SharpYamlEditor(ClassificationRegistry); }); } } #endregion //provider def @@ -62,7 +62,7 @@ namespace YamlDotNetEditor /// /// Classifier that classifies all text as an instance of the OrinaryClassifierType /// - class YamlDotNetEditor : IClassifier + class SharpYamlEditor : IClassifier { private readonly CoreSchema schema; private readonly IClassificationType _comment; @@ -77,7 +77,7 @@ namespace YamlDotNetEditor private readonly IClassificationType _directive; private readonly IClassificationType _tab; - internal YamlDotNetEditor(IClassificationTypeRegistryService registry) + internal SharpYamlEditor(IClassificationTypeRegistryService registry) { schema = new CoreSchema(); _comment = registry.GetClassificationType(PredefinedClassificationTypeNames.Comment); @@ -168,7 +168,7 @@ namespace YamlDotNetEditor { // Decode the scalar var scalarToken = (Scalar) scanner.Current; - var scalar = new YamlDotNet.Events.Scalar(scalarToken.Value); + var scalar = new SharpYaml.Events.Scalar(scalarToken.Value); switch (schema.GetDefaultTag(scalar)) { case JsonSchema.BoolShortTag: diff --git a/YamlDotNetEditor/YamlDotNetEditorFormat.cs b/SharpYamlEditor/YamlDotNetEditorFormat.cs similarity index 88% rename from YamlDotNetEditor/YamlDotNetEditorFormat.cs rename to SharpYamlEditor/YamlDotNetEditorFormat.cs index 11a7aad..99d3344 100644 --- a/YamlDotNetEditor/YamlDotNetEditorFormat.cs +++ b/SharpYamlEditor/YamlDotNetEditorFormat.cs @@ -24,7 +24,7 @@ using System.Windows.Media; using Microsoft.VisualStudio.Text.Classification; using Microsoft.VisualStudio.Utilities; -namespace YamlDotNetEditor +namespace SharpYamlEditor { #region Format definition [Export(typeof(EditorFormatDefinition))] @@ -42,7 +42,7 @@ namespace YamlDotNetEditor } [Export(typeof(EditorFormatDefinition))] - [ClassificationType(ClassificationTypeNames = "YamlDotNetEditor")] + [ClassificationType(ClassificationTypeNames = "SharpYamlEditor")] [Name("YamlAlias")] [UserVisible(true)] //this should be visible to the end user [Order(Before = Priority.Default)] //set the priority to be after the default classifiers @@ -56,7 +56,7 @@ namespace YamlDotNetEditor } [Export(typeof(EditorFormatDefinition))] - [ClassificationType(ClassificationTypeNames = "YamlDotNetEditor")] + [ClassificationType(ClassificationTypeNames = "SharpYamlEditor")] [Name("YamlKey")] [UserVisible(true)] //this should be visible to the end user [Order(Before = Priority.Default)] //set the priority to be after the default classifiers @@ -70,7 +70,7 @@ namespace YamlDotNetEditor } [Export(typeof(EditorFormatDefinition))] - [ClassificationType(ClassificationTypeNames = "YamlDotNetEditor")] + [ClassificationType(ClassificationTypeNames = "SharpYamlEditor")] [Name("YamlValue")] [UserVisible(true)] //this should be visible to the end user [Order(Before = Priority.Default)] //set the priority to be after the default classifiers @@ -84,7 +84,7 @@ namespace YamlDotNetEditor } [Export(typeof(EditorFormatDefinition))] - [ClassificationType(ClassificationTypeNames = "YamlDotNetEditor")] + [ClassificationType(ClassificationTypeNames = "SharpYamlEditor")] [Name("YamlNumber")] [UserVisible(true)] //this should be visible to the end user [Order(Before = Priority.Default)] //set the priority to be after the default classifiers @@ -98,7 +98,7 @@ namespace YamlDotNetEditor } [Export(typeof(EditorFormatDefinition))] - [ClassificationType(ClassificationTypeNames = "YamlDotNetEditor")] + [ClassificationType(ClassificationTypeNames = "SharpYamlEditor")] [Name("YamlString")] [UserVisible(true)] //this should be visible to the end user [Order(Before = Priority.Default)] //set the priority to be after the default classifiers @@ -112,7 +112,7 @@ namespace YamlDotNetEditor } [Export(typeof(EditorFormatDefinition))] - [ClassificationType(ClassificationTypeNames = "YamlDotNetEditor")] + [ClassificationType(ClassificationTypeNames = "SharpYamlEditor")] [Name("YamlTag")] [UserVisible(true)] //this should be visible to the end user [Order(Before = Priority.Default)] //set the priority to be after the default classifiers @@ -126,7 +126,7 @@ namespace YamlDotNetEditor } [Export(typeof(EditorFormatDefinition))] - [ClassificationType(ClassificationTypeNames = "YamlDotNetEditor")] + [ClassificationType(ClassificationTypeNames = "SharpYamlEditor")] [Name("YamlSymbol")] [UserVisible(true)] //this should be visible to the end user [Order(Before = Priority.Default)] //set the priority to be after the default classifiers @@ -140,7 +140,7 @@ namespace YamlDotNetEditor } [Export(typeof(EditorFormatDefinition))] - [ClassificationType(ClassificationTypeNames = "YamlDotNetEditor")] + [ClassificationType(ClassificationTypeNames = "SharpYamlEditor")] [Name("YamlDirective")] [UserVisible(true)] //this should be visible to the end user [Order(Before = Priority.Default)] //set the priority to be after the default classifiers @@ -155,7 +155,7 @@ namespace YamlDotNetEditor } [Export(typeof(EditorFormatDefinition))] - [ClassificationType(ClassificationTypeNames = "YamlDotNetEditor")] + [ClassificationType(ClassificationTypeNames = "SharpYamlEditor")] [Name("YamlTab")] [UserVisible(true)] //this should be visible to the end user [Order(Before = Priority.Default)] //set the priority to be after the default classifiers diff --git a/YamlDotNetEditor/YamlDotNetEditorType.cs b/SharpYamlEditor/YamlDotNetEditorType.cs similarity index 94% rename from YamlDotNetEditor/YamlDotNetEditorType.cs rename to SharpYamlEditor/YamlDotNetEditorType.cs index e0477bd..f47f75f 100644 --- a/YamlDotNetEditor/YamlDotNetEditorType.cs +++ b/SharpYamlEditor/YamlDotNetEditorType.cs @@ -23,9 +23,9 @@ using System.ComponentModel.Composition; using Microsoft.VisualStudio.Text.Classification; using Microsoft.VisualStudio.Utilities; -namespace YamlDotNetEditor +namespace SharpYamlEditor { - internal static class YamlDotNetEditorClassificationDefinition + internal static class SharpYamlEditorClassificationDefinition { [Export(typeof(ClassificationTypeDefinition))] [Name("YamlAnchor")] diff --git a/YamlDotNetEditor/icon.png b/SharpYamlEditor/icon.png similarity index 100% rename from YamlDotNetEditor/icon.png rename to SharpYamlEditor/icon.png diff --git a/YamlDotNetEditor/preview.png b/SharpYamlEditor/preview.png similarity index 100% rename from YamlDotNetEditor/preview.png rename to SharpYamlEditor/preview.png diff --git a/YamlDotNetEditor/source.extension.vsixmanifest b/SharpYamlEditor/source.extension.vsixmanifest similarity index 100% rename from YamlDotNetEditor/source.extension.vsixmanifest rename to SharpYamlEditor/source.extension.vsixmanifest diff --git a/YAMLLanguage/GlobalSuppressions.cs b/YAMLLanguage/GlobalSuppressions.cs deleted file mode 100644 index d7af9b3..0000000 --- a/YAMLLanguage/GlobalSuppressions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -// This file is used by Code Analysis to maintain SuppressMessage -// attributes that are applied to this project. Project-level -// suppressions either have no target or are given a specific target -// and scoped to a namespace, type, member, etc. -// -// To add a suppression to this file, right-click the message in the -// Error List, point to "Suppress Message(s)", and click "In Project -// Suppression File". You do not need to add suppressions to this -// file manually. - -[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1017:MarkAssembliesWithComVisible")] diff --git a/YAMLLanguage/Guids.cs b/YAMLLanguage/Guids.cs deleted file mode 100644 index fc2d519..0000000 --- a/YAMLLanguage/Guids.cs +++ /dev/null @@ -1,35 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -// Guids.cs -// MUST match guids.h -using System; - -namespace Company.YAMLLanguage -{ - static class GuidList - { - public const string guidYAMLLanguagePkgString = "43fab734-0c27-4a61-b19d-757e43a7721c"; - public const string guidYAMLLanguageCmdSetString = "5efd1df5-30e5-473e-8a46-27a91d7ca6b8"; - - public static readonly Guid guidYAMLLanguageCmdSet = new Guid(guidYAMLLanguageCmdSetString); - }; -} \ No newline at end of file diff --git a/YAMLLanguage/Properties/AssemblyInfo.cs b/YAMLLanguage/Properties/AssemblyInfo.cs deleted file mode 100644 index 7fac260..0000000 --- a/YAMLLanguage/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,55 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; -using System.Reflection; -using System.Resources; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("YAML Language")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Company")] -[assembly: AssemblyProduct("YAML Language")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: ComVisible(false)] -[assembly: CLSCompliant(false)] -[assembly: NeutralResourcesLanguage("en-US")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] - diff --git a/YAMLLanguage/Resources.Designer.cs b/YAMLLanguage/Resources.Designer.cs deleted file mode 100644 index 0427b30..0000000 --- a/YAMLLanguage/Resources.Designer.cs +++ /dev/null @@ -1,85 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.42 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Company.YAMLLanguage { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Company.YAMLLanguage.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - } -} diff --git a/YAMLLanguage/Resources.resx b/YAMLLanguage/Resources.resx deleted file mode 100644 index 03fef61..0000000 --- a/YAMLLanguage/Resources.resx +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - \ No newline at end of file diff --git a/YAMLLanguage/Resources/Package.ico b/YAMLLanguage/Resources/Package.ico deleted file mode 100644 index ea3b23fe8d4b3a45be89f9286e617624007290be..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1078 zcmc&xJ8l9o5PeG`(IBx$SZ#smxB@50S<)>X?vjox?E$y~f|6^vHuyg004_Ke13iCf4sF{q z;lqOW`lIoaB$u%Ct2e&_Qe3Xk#6xfx?>a7JsvGS1C78t@vc9%2c8+y#&J#+ z%g - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - YAML Language - - - Provides YAML Syntax Hilightning - - - Resources\Package.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - \ No newline at end of file diff --git a/YAMLLanguage/YAMLAuthoringScope.cs b/YAMLLanguage/YAMLAuthoringScope.cs deleted file mode 100644 index 1a2a348..0000000 --- a/YAMLLanguage/YAMLAuthoringScope.cs +++ /dev/null @@ -1,53 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; -using Microsoft.VisualStudio.Package; -using Microsoft.VisualStudio.TextManager.Interop; -using Microsoft.VisualStudio; - -namespace Company.YAMLLanguage -{ - class YAMLAuthoringScope : AuthoringScope - { - public override string GetDataTipText(int line, int col, out TextSpan span) - { - span = new TextSpan(); - return null; - } - - public override Declarations GetDeclarations(IVsTextView view, int line, int col, TokenInfo info, ParseReason reason) - { - return null; - } - - public override Methods GetMethods(int line, int col, string name) - { - return null; - } - - public override string Goto(VSConstants.VSStd97CmdID cmd, IVsTextView textView, int line, int col, out TextSpan span) - { - span = new TextSpan(); - return null; - } - } -} \ No newline at end of file diff --git a/YAMLLanguage/YAMLLanguage.csproj b/YAMLLanguage/YAMLLanguage.csproj deleted file mode 100644 index 21e3ccf..0000000 --- a/YAMLLanguage/YAMLLanguage.csproj +++ /dev/null @@ -1,105 +0,0 @@ - - - Debug - AnyCPU - 9.0.30729 - 2.0 - Library - Properties - Company.YAMLLanguage - YAMLLanguage - true - ..\YamlDotNet.snk - v3.5 - {7F0A3477-79B7-4425-B0DB-0EF7DD7E37C0} - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - true - - - - - - - - - - - - - 3.5 - - - - - - - - - - - True - True - Resources.resx - - - - - - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - true - Designer - - - - - - - - {BF32DE1B-6276-4341-B212-F8862ADBBA7A} - YamlDotNet.Core - - - - - true - true - - - - - \ No newline at end of file diff --git a/YAMLLanguage/YAMLLanguagePackage.cs b/YAMLLanguage/YAMLLanguagePackage.cs deleted file mode 100644 index 2450c03..0000000 --- a/YAMLLanguage/YAMLLanguagePackage.cs +++ /dev/null @@ -1,102 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -// VsPkg.cs : Implementation of YAMLLanguage -// - -using System; -using System.Diagnostics; -using System.Globalization; -using System.Runtime.InteropServices; -using System.ComponentModel.Design; -using Microsoft.Win32; -using Microsoft.VisualStudio.Shell.Interop; -using Microsoft.VisualStudio.OLE.Interop; -using Microsoft.VisualStudio.Shell; - -namespace Company.YAMLLanguage -{ - /// - /// This is the class that implements the package exposed by this assembly. - /// - /// The minimum requirement for a class to be considered a valid package for Visual Studio - /// is to implement the IVsPackage interface and register itself with the shell. - /// This package uses the helper classes defined inside the Managed Package Framework (MPF) - /// to do it: it derives from the Package class that provides the implementation of the - /// IVsPackage interface and uses the registration attributes defined in the framework to - /// register itself and its components with the shell. - /// - // This attribute tells the registration utility (regpkg.exe) that this class needs - // to be registered as package. - [PackageRegistration(UseManagedResourcesOnly = true)] - // A Visual Studio component can be registered under different regitry roots; for instance - // when you debug your package you want to register it in the experimental hive. This - // attribute specifies the registry root to use if no one is provided to regpkg.exe with - // the /root switch. - [DefaultRegistryRoot("Software\\Microsoft\\VisualStudio\\9.0")] - // This attribute is used to register the informations needed to show the this package - // in the Help/About dialog of Visual Studio. - [InstalledProductRegistration(false, "#110", "#112", "1.0", IconResourceID = 400)] - // In order be loaded inside Visual Studio in a machine that has not the VS SDK installed, - // package needs to have a valid load key (it can be requested at - // http://msdn.microsoft.com/vstudio/extend/). This attributes tells the shell that this - // package has a load key embedded in its resources. - [ProvideLoadKey("Standard", "1.0", "YAML Language", "Company", 1)] - [ProvideService(typeof(YAMLLanguageService), ServiceName = "YAML Language")] - [ProvideLanguageService(typeof(YAMLLanguageService), "YAML Language", 106, MatchBracesAtCaret = true, EnableCommenting = true, DefaultToInsertSpaces = true, ShowMatchingBrace = true, RequestStockColors = false)] - [ProvideLanguageExtension(typeof(YAMLLanguageService), ".yaml")] - [Guid(GuidList.guidYAMLLanguagePkgString)] - public sealed class YAMLLanguagePackage : Package - { - /// - /// Default constructor of the package. - /// Inside this method you can place any initialization code that does not require - /// any Visual Studio service because at this point the package object is created but - /// not sited yet inside Visual Studio environment. The place to do all the other - /// initialization is the Initialize method. - /// - public YAMLLanguagePackage() - { - Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering constructor for: {0}", this.ToString())); - } - - ///////////////////////////////////////////////////////////////////////////// - // Overriden Package Implementation - #region Package Members - - /// - /// Initialization of the package; this method is called right after the package is sited, so this is the place - /// where you can put all the initilaization code that rely on services provided by VisualStudio. - /// - protected override void Initialize() - { - Trace.WriteLine (string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", this.ToString())); - base.Initialize(); - - IServiceContainer serviceContainer = this; - YAMLLanguageService languageService = new YAMLLanguageService(); - languageService.SetSite(this); - serviceContainer.AddService(typeof(YAMLLanguageService), languageService, true); - } - #endregion - - } -} \ No newline at end of file diff --git a/YAMLLanguage/YAMLLanguageService.cs b/YAMLLanguage/YAMLLanguageService.cs deleted file mode 100644 index ae79032..0000000 --- a/YAMLLanguage/YAMLLanguageService.cs +++ /dev/null @@ -1,133 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; -using Microsoft.VisualStudio; -using Microsoft.VisualStudio.Package; -using Microsoft.VisualStudio.TextManager.Interop; -using System.Drawing; - -namespace Company.YAMLLanguage -{ - internal enum ColorIndex - { - Text = 1, - Anchor, - AnchorReference, - Tag, - MappingSeparator, - SequenceItem, - BlockSequence, - BlockMapping, - BlockSeparator, - Comment, - Directive, - } - - public class YAMLLanguageService : LanguageService - { - private LanguagePreferences preferences; - - public override LanguagePreferences GetLanguagePreferences() - { - if (preferences == null) - { - preferences = new LanguagePreferences(Site, typeof(YAMLLanguageService).GUID, Name); - preferences.Init(); - } - return preferences; - } - - private static IVsColorableItem MakeColorableItem(string name, COLORINDEX foreColor, Color foreColorRgb, COLORINDEX backColor, Color backColorRgb, FONTFLAGS style) - { - return new ColorableItem( - name, - name, - foreColor, - backColor, - foreColorRgb, - backColorRgb, - style - ); - } - - private static IVsColorableItem MakeColorableItem(string name, COLORINDEX foreColor, Color foreColorRgb, COLORINDEX backColor, Color backColorRgb) - { - return MakeColorableItem(name, foreColor, foreColorRgb, backColor, backColorRgb, FONTFLAGS.FF_DEFAULT); - } - - private static readonly IVsColorableItem[] colorableItems = new[] - { - MakeColorableItem("YAML - Text", COLORINDEX.CI_MAROON, Color.Maroon, COLORINDEX.CI_YELLOW, Color.FromArgb(255, 254, 191)), - MakeColorableItem("YAML - Anchor", COLORINDEX.CI_DARKBLUE, Color.Navy, COLORINDEX.CI_SYSPLAINTEXT_BK, Color.Empty, FONTFLAGS.FF_BOLD), - MakeColorableItem("YAML - Anchor reference", COLORINDEX.CI_BLUE, Color.RoyalBlue, COLORINDEX.CI_SYSPLAINTEXT_BK, Color.Empty, FONTFLAGS.FF_BOLD), - MakeColorableItem("YAML - Tag", COLORINDEX.CI_PURPLE, Color.FromArgb(43, 145, 175), COLORINDEX.CI_SYSPLAINTEXT_BK, Color.Empty), - MakeColorableItem("YAML - Mapping separator", COLORINDEX.CI_RED, Color.Red, COLORINDEX.CI_SYSPLAINTEXT_BK, Color.Empty, FONTFLAGS.FF_BOLD), - MakeColorableItem("YAML - Sequence item", COLORINDEX.CI_RED, Color.Red, COLORINDEX.CI_SYSPLAINTEXT_BK, Color.Empty, FONTFLAGS.FF_BOLD), - MakeColorableItem("YAML - Block sequence", COLORINDEX.CI_RED, Color.Red, COLORINDEX.CI_SYSPLAINTEXT_BK, Color.Empty, FONTFLAGS.FF_BOLD), - MakeColorableItem("YAML - Block mapping", COLORINDEX.CI_RED, Color.Red, COLORINDEX.CI_SYSPLAINTEXT_BK, Color.Empty, FONTFLAGS.FF_BOLD), - MakeColorableItem("YAML - Block separator", COLORINDEX.CI_RED, Color.Red, COLORINDEX.CI_SYSPLAINTEXT_BK, Color.Empty, FONTFLAGS.FF_BOLD), - MakeColorableItem("YAML - Comment", COLORINDEX.CI_GREEN, Color.Green, COLORINDEX.CI_SYSPLAINTEXT_BK, Color.Empty), - MakeColorableItem("YAML - Directive", COLORINDEX.CI_DARKGRAY, Color.FromArgb(85, 85, 85), COLORINDEX.CI_YELLOW, Color.FromArgb(255, 254, 191)), - }; - - public override int GetColorableItem(int index, out IVsColorableItem item) - { - item = colorableItems[index - 1]; - return VSConstants.S_OK; - } - - public override int GetItemCount(out int count) - { - count = colorableItems.Length; - return VSConstants.S_OK; - } - - private YAMLScanner scanner; - - public override IScanner GetScanner(IVsTextLines buffer) - { - if (scanner == null) - { - scanner = new YAMLScanner(buffer); - } - return scanner; - } - - public override AuthoringScope ParseSource(ParseRequest req) - { - return new YAMLAuthoringScope(); - } - - public override string GetFormatFilterList() - { - return "YAML files (*.yaml)\n*.yaml\n"; - } - - public override string Name - { - get - { - return "YAML"; - } - } - } -} \ No newline at end of file diff --git a/YAMLLanguage/YAMLScanner.cs b/YAMLLanguage/YAMLScanner.cs deleted file mode 100644 index 194a327..0000000 --- a/YAMLLanguage/YAMLScanner.cs +++ /dev/null @@ -1,263 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; -using Microsoft.VisualStudio.Package; -using Microsoft.VisualStudio.TextManager.Interop; -using System.Text.RegularExpressions; -using System.Collections.Generic; -using YamlDotNet.Core; -using System.IO; -using YamlDotNet.Core.Tokens; -using System.Diagnostics; - -namespace Company.YAMLLanguage -{ - public class YAMLScanner : IScanner - { - private IVsTextLines buffer; - - public YAMLScanner(IVsTextLines buffer) - { - this.buffer = buffer; - } - - #region IScanner Members - private string currentSource; - private int currentOffset; - - private char? PeekNextChar() - { - return currentOffset < currentSource.Length ? (char?)currentSource[currentOffset] : null; - } - - private char ReadNextChar() - { - return currentSource[currentOffset++]; - } - - private Match ReadMatch(Regex pattern) - { - Match match = pattern.Match(currentSource, currentOffset); - if(!match.Success) - { - throw new InvalidOperationException("The match should always succeed."); - } - currentOffset += match.Length; - return match; - } - - private static readonly Regex textPattern = new Regex(@"[^,:\-\{\}\[\]]+", RegexOptions.Compiled); - private static readonly Regex whitespacePattern = new Regex(@"\s+", RegexOptions.Compiled); - private static readonly Regex anchorPattern = new Regex(@"[&*][^\s]+", RegexOptions.Compiled); - private static readonly Regex commentPattern = new Regex(@"#.*", RegexOptions.Compiled); - private static readonly Regex directivePattern = new Regex(@"%.*", RegexOptions.Compiled); - private static readonly Regex tagPattern = new Regex(@"!(([^!]*!)|(<[^>]+>))?", RegexOptions.Compiled); - - public bool ScanTokenAndProvideInfoAboutIt(TokenInfo tokenInfo, ref int state) - { - if(scannedTokens.Count > 0) - { - TokenInfo token = scannedTokens.Dequeue(); - tokenInfo.StartIndex = token.StartIndex; - tokenInfo.EndIndex = token.EndIndex; - tokenInfo.Type = token.Type; - tokenInfo.Color = token.Color; - return true; - } - return false; - - //char? current = PeekNextChar(); - //if(current == null) - //{ - // return false; - //} - - //if (current.Value == '%' && currentOffset == 0) - //{ - // ScanDirectiveToken(tokenInfo); - //} - //else - //{ - // switch(current.Value) - // { - // case '-': - // case ':': - // ScanDelimiterToken(tokenInfo); - // break; - - // case '[': - // case ']': - // case '{': - // case '}': - // ScanPairedDelimiterToken(tokenInfo); - // break; - - // case ' ': - // case '\t': - // ScanWhitespaceToken(tokenInfo); - // break; - - // case '&': - // ScanAnchorToken(tokenInfo); - // break; - - // case '*': - // ScanAnchorReferenceToken(tokenInfo); - // break; - - // case '!': - // ScanTagToken(tokenInfo); - // break; - - // case '#': - // ScanCommentToken(tokenInfo); - // break; - - // default: - // ScanTextToken(tokenInfo); - // break; - // } - //} - //return true; - } - - private void ScanTagToken(TokenInfo tokenInfo) - { - ScanRegexToken(tokenInfo, tagPattern); - tokenInfo.Type = TokenType.Literal; - tokenInfo.Color = (TokenColor)ColorIndex.Tag; - } - - private void ScanDirectiveToken(TokenInfo tokenInfo) - { - ScanRegexToken(tokenInfo, directivePattern); - tokenInfo.Type = TokenType.Keyword; - tokenInfo.Color = (TokenColor)ColorIndex.Directive; - } - - private void ScanCommentToken(TokenInfo tokenInfo) - { - ScanRegexToken(tokenInfo, commentPattern); - tokenInfo.Type = TokenType.LineComment; - tokenInfo.Color = (TokenColor)ColorIndex.Comment; - } - - private void ScanAnchorToken(TokenInfo tokenInfo) - { - ScanRegexToken(tokenInfo, anchorPattern); - tokenInfo.Type = TokenType.Identifier; - tokenInfo.Color = (TokenColor)ColorIndex.Anchor; - } - - private void ScanAnchorReferenceToken(TokenInfo tokenInfo) - { - ScanRegexToken(tokenInfo, anchorPattern); - tokenInfo.Type = TokenType.Identifier; - tokenInfo.Color = (TokenColor)ColorIndex.AnchorReference; - } - - private static readonly IDictionary delimiterColors = new Dictionary - { - { ':', ColorIndex.MappingSeparator }, - { '-', ColorIndex.SequenceItem }, - { '[', ColorIndex.BlockSequence }, - { ']', ColorIndex.BlockSequence }, - { '{', ColorIndex.BlockMapping }, - { '}', ColorIndex.BlockMapping }, - { ',', ColorIndex.BlockSeparator }, - }; - - private void ScanDelimiterToken(TokenInfo tokenInfo) - { - tokenInfo.StartIndex = currentOffset; - tokenInfo.EndIndex = currentOffset; - tokenInfo.Type = TokenType.Keyword; - tokenInfo.Color = (TokenColor)delimiterColors[ReadNextChar()]; - } - - private void ScanPairedDelimiterToken(TokenInfo tokenInfo) - { - ScanDelimiterToken(tokenInfo); - tokenInfo.Trigger = TokenTriggers.MatchBraces; - } - - private void ScanTextToken(TokenInfo tokenInfo) - { - ScanRegexToken(tokenInfo, textPattern); - tokenInfo.Type = TokenType.Literal; - tokenInfo.Color = (TokenColor)ColorIndex.Text; - } - - private void ScanWhitespaceToken(TokenInfo tokenInfo) - { - ScanRegexToken(tokenInfo, whitespacePattern); - tokenInfo.Type = TokenType.WhiteSpace; - tokenInfo.Color = (TokenColor)ColorIndex.Text; - } - - private void ScanRegexToken(TokenInfo tokenInfo, Regex pattern) - { - Match match = ReadMatch(pattern); - tokenInfo.StartIndex = match.Index; - tokenInfo.EndIndex = match.Index + match.Length - 1; - } - - private readonly Queue scannedTokens = new Queue(); - - public void SetSource(string source, int offset) - { - if(offset > 0) - { - source = source.Substring(offset); - } - - Scanner scanner = new Scanner(new StringReader(source)); - try - { - int currentOffset = 0; - Token previous = null; - while(scanner.MoveNext()) - { - Token token = scanner.Current; - Debug.WriteLine(token.GetType().Name); - if(token.Start.Index != token.End.Index) - { - TokenInfoParsed(token, TokenType.String, ColorIndex.Text); - currentOffset = token.End.Index; - previous = token; - } - } - } - catch(YamlException) - { - } - } - - private void TokenInfoParsed(Token token, TokenType type, ColorIndex color) - { - TokenInfo info = new TokenInfo(token.Start.Index, token.End.Index - 1, type); - info.Color = (TokenColor)color; - scannedTokens.Enqueue(info); - } - #endregion - } -} \ No newline at end of file diff --git a/YamlDotNet.Configuration/ConfigurationLoader.cs b/YamlDotNet.Configuration/ConfigurationLoader.cs deleted file mode 100644 index 05fb4f0..0000000 --- a/YamlDotNet.Configuration/ConfigurationLoader.cs +++ /dev/null @@ -1,90 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Globalization; - -namespace YamlDotNet.Configuration -{ - /// - /// Loads configuration from various providers. - /// - /// - /// ConfigurationLoader is always initialized with a single provider: . - /// - public class ConfigurationLoader - { - private ConfigurationLoader() - { - } - - /// - /// Gets the only instance of . - /// - public static readonly ConfigurationLoader Instance = new ConfigurationLoader(); - - private readonly HashSet providers = new HashSet - { - new DotNetConfigurationProvider() - }; - - /// - /// Registers a new configuration provider. - /// - /// The configuration provider. - public void Register(IConfigurationProvider provider) - { - if (provider == null) - { - throw new ArgumentNullException("provider"); - } - - providers.Add(provider); - } - - /// - /// Gets the configuration section with the specified name. - /// - /// The name of the configuration section. - /// - /// The specified section does not exist. - public object GetSection(string name) - { - if (string.IsNullOrEmpty(name)) - { - throw new ArgumentNullException("name"); - } - - foreach (var provider in providers) - { - object section = provider.GetSection(name); - if (section != null) - { - return section; - } - } - - throw new ConfigurationErrorsException(string.Format(CultureInfo.InvariantCulture, "Configuration section '{0}' does not exist.", name)); - } - } -} diff --git a/YamlDotNet.Configuration/DotNetConfigurationProvider.cs b/YamlDotNet.Configuration/DotNetConfigurationProvider.cs deleted file mode 100644 index f622c00..0000000 --- a/YamlDotNet.Configuration/DotNetConfigurationProvider.cs +++ /dev/null @@ -1,39 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; -using System.Configuration; - -namespace YamlDotNet.Configuration -{ - /// - /// Provider for the standard configuration system. - /// - public sealed class DotNetConfigurationProvider : IConfigurationProvider - { - #region IConfigurationProvider Members - object IConfigurationProvider.GetSection(string name) - { - return ConfigurationManager.GetSection(name); - } - #endregion - } -} \ No newline at end of file diff --git a/YamlDotNet.Configuration/IConfigurationProvider.cs b/YamlDotNet.Configuration/IConfigurationProvider.cs deleted file mode 100644 index 1ff5f67..0000000 --- a/YamlDotNet.Configuration/IConfigurationProvider.cs +++ /dev/null @@ -1,38 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; - -namespace YamlDotNet.Configuration -{ - /// - /// Defines an interface for obtaining configuration sections. - /// - public interface IConfigurationProvider - { - /// - /// Gets the configuration section with the specified name. - /// - /// The name of the configuration section. - /// - object GetSection(string name); - } -} \ No newline at end of file diff --git a/YamlDotNet.Configuration/Properties/AssemblyInfo.cs b/YamlDotNet.Configuration/Properties/AssemblyInfo.cs deleted file mode 100644 index 9cb7349..0000000 --- a/YamlDotNet.Configuration/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,25 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System.Reflection; - -[assembly: AssemblyTitle("YamlDotNet.Configuration")] -[assembly: AssemblyDescription("Part of the YamlDotNet library, provides an unified way of reading configuration files.")] diff --git a/YamlDotNet.Configuration/YamlConfigurationProvider.cs b/YamlDotNet.Configuration/YamlConfigurationProvider.cs deleted file mode 100644 index 24ff987..0000000 --- a/YamlDotNet.Configuration/YamlConfigurationProvider.cs +++ /dev/null @@ -1,96 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; -using System.Collections.Generic; -using System.Configuration; -using System.IO; -using System.Text.RegularExpressions; -using YamlDotNet.Serialization; - -namespace YamlDotNet.Configuration -{ - /// - /// Configuration provider that loads a YAML stream. - /// - public sealed class YamlConfigurationProvider : IConfigurationProvider - { - private IDictionary sections; - - /// - /// Initializes a new instance of the class. - /// - public YamlConfigurationProvider() - : this(BuildDefaultFilename()) - { - } - - /// - /// Initializes a new instance of the class. - /// - /// The fileName. - public YamlConfigurationProvider(string fileName) - { - using (TextReader yaml = File.OpenText(fileName)) - { - LoadSections(yaml); - } - } - - /// - /// Initializes a new instance of the class. - /// - /// The yaml. - public YamlConfigurationProvider(TextReader yaml) - { - LoadSections(yaml); - } - - private static string BuildDefaultFilename() - { - return Regex.Replace( - ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None).FilePath, - @"\.config$", - ".yaml", - RegexOptions.IgnoreCase - ); - } - - private void LoadSections(TextReader yaml) - { - var deserializer = new Serializer(); - sections = (IDictionary)deserializer.Deserialize(yaml, typeof(Dictionary)); - } - - #region IConfigurationProvider Members - object IConfigurationProvider.GetSection(string name) - { - object section; - if (sections.TryGetValue(name, out section)) - { - return section; - } - return null; - } - #endregion - } - -} diff --git a/YamlDotNet.Configuration/YamlConfigurationSection.cs b/YamlDotNet.Configuration/YamlConfigurationSection.cs deleted file mode 100644 index dba874a..0000000 --- a/YamlDotNet.Configuration/YamlConfigurationSection.cs +++ /dev/null @@ -1,165 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; -using System.Configuration; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Xml; -using YamlDotNet.Serialization; - -namespace YamlDotNet.Configuration -{ - /// - /// YAML-based configuration section. Allows to declare configuration sections that obtain their content - /// by deserializing a YAML stream. - /// - /// - /// By default, the configuration section loads the content of the element. The type of that content must - /// be defined in the stream itself. Alterantively, the type attribute may be used to specify - /// the type of the section. The configuration element can have the file attribute, which - /// specifies a file to be loaded instead of the content of the element. In that case, the element's content - /// is ignored. - /// - /// - /// App.config: - /// - /// - /// <?xml version="1.0" encoding="utf-8" ?> - /// <configuration> - /// <configSections> - /// <section name="MyConfiguration1" type="YamlDotNet.Configuration.YamlConfigurationSection, YamlDotNet.Configuration" /> - /// <section name="MyConfiguration2" type="YamlDotNet.Configuration.YamlConfigurationSection, YamlDotNet.Configuration" /> - /// <section name="MyConfiguration3" type="YamlDotNet.Configuration.YamlConfigurationSection, YamlDotNet.Configuration" /> - /// <section name="MyConfiguration4" type="YamlDotNet.Configuration.YamlConfigurationSection, YamlDotNet.Configuration" /> - /// </configSections> - /// - /// <MyConfiguration1> - /// <![CDATA[ - /// !<!MyConfiguration,MyAssembly> { - /// myString: a string, - /// myInt: 1 - /// } - /// ]]> - /// </MyConfiguration1> - /// - /// <MyConfiguration2 type="MyConfiguration, MyAssembly"> - /// <![CDATA[ - /// myString: a string - /// myInt: 2 - /// ]]> - /// </MyConfiguration2> - /// - /// <MyConfiguration3 file="explicit.yaml" /> - /// - /// <MyConfiguration4 type="MyConfiguration, MyAssembly" file="implicit.yaml" /> - /// </configuration> - /// - /// - /// explicit.yaml: - /// - /// - /// !<!MyConfiguration,MyAssembly> { - /// myString: a string, - /// myInt: 3 - /// } - /// - /// - /// implicit.yaml: - /// - /// - /// myString: a string - /// myInt: 4 - /// - /// - public sealed class YamlConfigurationSection : IConfigurationSectionHandler - { - private static readonly Regex indentParser = new Regex(@"^\s*", RegexOptions.Compiled); - - #region IConfigurationSectionHandler Members - object IConfigurationSectionHandler.Create(object parent, object configContext, XmlNode section) - { - TextReader yaml; - if (section.Attributes["file"] != null) - { - string fileName = section.Attributes["file"].Value; - if (!File.Exists(fileName)) - { - string configPath = Path.GetDirectoryName(ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None).FilePath); - fileName = Path.Combine(configPath, fileName); - } - - yaml = File.OpenText(fileName); - } - else - { - yaml = GetYamlContent(section); - } - - var sectionType = typeof(object); - if (section.Attributes["type"] != null) - { - sectionType = Type.GetType(section.Attributes["type"].Value, true); - } - - var deserializer = new Serializer(); - return deserializer.Deserialize(yaml, sectionType); - } - #endregion - - #region Implementation details - private static TextReader GetYamlContent(XmlNode section) - { - string[] lines = section.InnerText.Split('\n'); - - int firstNonEmptyLineIndex = -1; - int lastNonEmptyLineIndex = -2; - - for (int i = 0; i < lines.Length; ++i) - { - lines[i] = lines[i].TrimEnd('\r', '\t', ' '); - if (lines[i].Length != 0) - { - if (firstNonEmptyLineIndex == -1) - { - firstNonEmptyLineIndex = i; - } - lastNonEmptyLineIndex = i; - } - } - - StringBuilder yamlText = new StringBuilder(); - if (firstNonEmptyLineIndex <= lastNonEmptyLineIndex) - { - int indent = indentParser.Match(lines[firstNonEmptyLineIndex]).Length; - - for (int i = firstNonEmptyLineIndex; i <= lastNonEmptyLineIndex; ++i) - { - yamlText.AppendLine(lines[i].Substring(indent)); - } - } - - return new StringReader(yamlText.ToString()); - } - #endregion - } -} diff --git a/YamlDotNet.Configuration/YamlDotNet.Configuration.csproj b/YamlDotNet.Configuration/YamlDotNet.Configuration.csproj deleted file mode 100644 index bd8ec06..0000000 --- a/YamlDotNet.Configuration/YamlDotNet.Configuration.csproj +++ /dev/null @@ -1,113 +0,0 @@ - - - - Debug - AnyCPU - 9.0.30729 - 2.0 - {A0178805-DC16-46B6-BEDF-AA201207C17E} - Library - Properties - YamlDotNet.Configuration - YamlDotNet.Configuration - true - ..\YamlDotNet.snk - v3.5 - 512 - - - 3.5 - - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - false - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - true - bin\Debug\YamlDotNet.Configuration.XML - AllRules.ruleset - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - true - AllRules.ruleset - bin\Release\YamlDotNet.Configuration.XML - - - - - - - - - - - Properties\CommonAssemblyInfo.cs - - - - - - - - - - - {BF32DE1B-6276-4341-B212-F8862ADBBA7A} - YamlDotNet - - - {21CA0077-E15C-446D-9C43-F6D3F9D09687} - YamlDotNet.Serialzation - - - - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 3.5 SP1 - true - - - False - Windows Installer 3.1 - true - - - - - \ No newline at end of file diff --git a/YamlDotNet.Converters.Test/Properties/AssemblyInfo.cs b/YamlDotNet.Converters.Test/Properties/AssemblyInfo.cs deleted file mode 100644 index dc07347..0000000 --- a/YamlDotNet.Converters.Test/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,57 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("YamlDotNet.Converters.Test")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("YamlDotNet.Converters.Test")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("df6aec56-f9da-4011-be40-d19b2090c211")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/YamlDotNet.Converters.Test/Xml/XmlConverterTests.cs b/YamlDotNet.Converters.Test/Xml/XmlConverterTests.cs deleted file mode 100644 index f378df9..0000000 --- a/YamlDotNet.Converters.Test/Xml/XmlConverterTests.cs +++ /dev/null @@ -1,118 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using Xunit; -using YamlDotNet.Serialization; -using YamlDotNet.Converters.Xml; -using YamlDotNet.Converters.Xml.Extensions; -using YamlDotNet.Test; -using System.IO; - -namespace YamlDotNet.Converters.Test.Xml -{ - public class XmlConverterTests : YamlTest - { - [Fact] - public void ScalarToXml() { - var writer = new StringWriter(); - var yaml = GetDocument("test2.yaml"); - - var xml = new XmlConverter().ToXml(yaml); - - xml.Save(writer); - Dump.Write(writer); - } - - [Fact] - public void SequenceOfScalarsToXml() { - var writer = new StringWriter(); - var yaml = GetDocument("test8.yaml"); - - var xml = new XmlConverter().ToXml(yaml); - - xml.Save(writer); - Dump.Write(writer); - } - - [Fact] - public void MappingOfScalarsToXml() { - var writer = new StringWriter(); - var yaml = GetDocument("test9.yaml"); - - var xml = new XmlConverter().ToXml(yaml); - - xml.Save(writer); - Dump.Write(writer); - } - - [Fact] - public void SequenceOfMappingAndSequencesToXml() { - var writer = new StringWriter(); - var yaml = GetDocument("test10.yaml"); - - var xml = new XmlConverter().ToXml(yaml); - - xml.Save(writer); - Dump.Write(writer); - } - - [Fact] - public void ToXmlUsingExtension() { - var writer = new StringWriter(); - var yaml = GetDocument("test10.yaml"); - - var xml = yaml.ToXml(); - - xml.Save(writer); - Dump.Write(writer); - } - - [Fact] - public void Roundtrip() - { - var yaml = GetDocument("test10.yaml"); - - var converter = new XmlConverter(); - var xml = converter.ToXml(yaml); - - var firstBuffer = new StringWriter(); - xml.Save(firstBuffer); - Dump.Write(firstBuffer); - - var intermediate = converter.FromXml(xml); - var final = converter.ToXml(intermediate); - - var secondBuffer = new StringWriter(); - final.Save(secondBuffer); - Dump.Write(secondBuffer); - - Assert.Equal(firstBuffer.ToString(), secondBuffer.ToString()); - } - - private static YamlDocument GetDocument(string name) - { - var stream = new YamlStream(); - stream.Load(YamlFile(name)); - Assert.True(stream.Documents.Count > 0, "The file [" + name + "] did not contain any Yaml documents"); - return stream.Documents[0]; - } - } -} \ No newline at end of file diff --git a/YamlDotNet.Converters.Test/YamlDotNet.Converters.Test.csproj b/YamlDotNet.Converters.Test/YamlDotNet.Converters.Test.csproj deleted file mode 100644 index 26b1622..0000000 --- a/YamlDotNet.Converters.Test/YamlDotNet.Converters.Test.csproj +++ /dev/null @@ -1,82 +0,0 @@ - - - - - Debug - AnyCPU - {F0EAB124-9790-41C7-AE0F-F050CA0141D3} - Library - Properties - YamlDotNet.Converters.Test - YamlDotNet.Converters.Test - v4.5 - 512 - ..\ - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE;TEST_DUMP - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\FluentAssertions.2.1.0.0\lib\net45\FluentAssertions.dll - - - - - - - - - - ..\packages\xunit.1.9.1\lib\net20\xunit.dll - - - ..\packages\xunit.extensions.1.9.1\lib\net20\xunit.extensions.dll - - - - - - - - - - - - {6a8dcaf7-6c13-4ada-aed9-7aba88fe7717} - YamlDotNet.Converters - - - {16d8043d-c3db-4868-bff3-b2ebdf537aaa} - YamlDotNet.Test - - - {bf32de1b-6276-4341-b212-f8862adbba7a} - YamlDotNet - - - - - - \ No newline at end of file diff --git a/YamlDotNet.Converters.Test/packages.config b/YamlDotNet.Converters.Test/packages.config deleted file mode 100644 index 52b4492..0000000 --- a/YamlDotNet.Converters.Test/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/YamlDotNet.Converters.nuspec b/YamlDotNet.Converters.nuspec deleted file mode 100644 index c6d30f8..0000000 --- a/YamlDotNet.Converters.nuspec +++ /dev/null @@ -1,23 +0,0 @@ - - - - YamlDotNet.Converters - - Antoine Aubry - A .NET library for YAML. yamldotnet provides low level parsing and emitting of YAML as well as a high level object model similar to XmlDocument. - This package contains the converters to other formats, such as XML. - en-US - http://www.aaubry.net/yamldotnet/license.aspx - http://www.aaubry.net/yamldotnet.aspx - http://www.aaubry.net/IMAGES%2f2012%2f11%2fyamldotnet.png.jpgx - yaml conversion xml development library - - - - - - - - - - \ No newline at end of file diff --git a/YamlDotNet.Converters/Properties/AssemblyInfo.cs b/YamlDotNet.Converters/Properties/AssemblyInfo.cs deleted file mode 100644 index 3a7dcd0..0000000 --- a/YamlDotNet.Converters/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,25 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System.Reflection; - -[assembly: AssemblyTitle("YamlDotNet.Converters")] -[assembly: AssemblyDescription("Part of the YamlDotNet library, provides converters to transform other formats from and to YAML.")] diff --git a/YamlDotNet.Converters/Xml/Extensions/XmlConverterExtensions.cs b/YamlDotNet.Converters/Xml/Extensions/XmlConverterExtensions.cs deleted file mode 100644 index ee6917f..0000000 --- a/YamlDotNet.Converters/Xml/Extensions/XmlConverterExtensions.cs +++ /dev/null @@ -1,51 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; -using System.Xml; -using YamlDotNet.Converters.Xml; -using YamlDotNet.Serialization; - -namespace YamlDotNet.Converters.Xml.Extensions { - /// - /// Defines extension methods for calling the methods of . - /// - public static class XmlConverterExtensions - { - /// - /// Invokes . - /// - public static XmlDocument ToXml(this YamlDocument document, XmlConverterOptions options) - { - XmlConverter converter = new XmlConverter(options); - return converter.ToXml(document); - } - - /// - /// Invokes . - /// - public static XmlDocument ToXml(this YamlDocument document) - { - XmlConverter converter = new XmlConverter(); - return converter.ToXml(document); - } - } -} \ No newline at end of file diff --git a/YamlDotNet.Converters/Xml/XmlConverter.cs b/YamlDotNet.Converters/Xml/XmlConverter.cs deleted file mode 100644 index d1be932..0000000 --- a/YamlDotNet.Converters/Xml/XmlConverter.cs +++ /dev/null @@ -1,367 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; -using System.Xml; -using YamlDotNet.Serialization; -using System.Globalization; -using System.Diagnostics; - -namespace YamlDotNet.Converters.Xml -{ - /// - /// Converts between and . - /// - public class XmlConverter - { - #region YamlToXmlDocumentVisitor - private class YamlToXmlDocumentVisitor : YamlVisitor - { - private XmlDocument myDocument; - private XmlNode current; - private readonly XmlConverterOptions options; - - public XmlDocument Document - { - get - { - return myDocument; - } - } - - private void PushNode(string elementName) - { - XmlNode newNode = myDocument.CreateElement(elementName); - current.AppendChild(newNode); - current = newNode; - } - - private void PopNode() - { - current = current.ParentNode; - } - - public YamlToXmlDocumentVisitor(XmlConverterOptions options) - { - this.options = options; - } - - protected override void Visit(YamlDocument document) - { - myDocument = new XmlDocument(); - current = myDocument; - PushNode(options.RootElementName); - } - - protected override void Visit(YamlScalarNode scalar) - { - current.AppendChild(myDocument.CreateTextNode(scalar.Value)); - } - - protected override void Visit(YamlSequenceNode sequence) - { - PushNode(options.SequenceElementName); - } - - protected override void Visited(YamlSequenceNode sequence) - { - PopNode(); - } - - protected override void VisitChildren(YamlSequenceNode sequence) - { - foreach (var item in sequence.Children) - { - PushNode(options.SequenceItemElementName); - item.Accept(this); - PopNode(); - } - } - - protected override void Visit(YamlMappingNode mapping) - { - PushNode(options.MappingElementName); - } - - protected override void Visited(YamlMappingNode mapping) - { - PopNode(); - } - - protected override void VisitChildren(YamlMappingNode mapping) - { - foreach (var pair in mapping.Children) - { - PushNode(options.MappingEntryElementName); - - PushNode(options.MappingKeyElementName); - pair.Key.Accept(this); - PopNode(); - - PushNode(options.MappingValueElementName); - pair.Value.Accept(this); - PopNode(); - - PopNode(); - } - } - } - #endregion - - #region XmlToYamlConverter - private class XmlToYamlConverter - { - private struct ExitCaller : IDisposable - { - private readonly XmlToYamlConverter owner; - - public ExitCaller(XmlToYamlConverter owner) - { - this.owner = owner; - } - - #region IDisposable Members - public void Dispose() - { - owner.Exit(); - } - #endregion - } - - private readonly XmlConverterOptions options; - private readonly XmlDocument document; - private XmlNode current; - private XmlNode currentParent; - - public XmlToYamlConverter(XmlDocument document, XmlConverterOptions options) - { - this.document = document; - this.options = options; - } - - public YamlDocument ParseDocument() - { - currentParent = document; - current = document.DocumentElement; - using (ExpectElement(options.RootElementName)) - { - return new YamlDocument(ParseNode()); - } - } - - private YamlNode ParseNode() - { - if(AcceptText()) - { - return ParseScalar(); - } - - if (AcceptElement(options.SequenceElementName)) - { - return ParseSequence(); - } - - if (AcceptElement(options.MappingElementName)) - { - return ParseMapping(); - } - - throw new InvalidOperationException("Expected sequence, mapping or scalar."); - } - - private YamlNode ParseMapping() - { - using(ExpectElement(options.MappingElementName)) - { - YamlMappingNode mapping = new YamlMappingNode(); - while (AcceptElement(options.MappingEntryElementName)) - { - using(ExpectElement(options.MappingEntryElementName)) - { - YamlNode key; - using(ExpectElement(options.MappingKeyElementName)) - { - key = ParseNode(); - } - - YamlNode value; - using(ExpectElement(options.MappingValueElementName)) - { - value = ParseNode(); - } - - mapping.Children.Add(key, value); - } - } - return mapping; - } - } - - private YamlNode ParseSequence() - { - using (ExpectElement(options.SequenceElementName)) - { - YamlSequenceNode sequence = new YamlSequenceNode(); - while (AcceptElement(options.SequenceItemElementName)) - { - using(ExpectElement(options.SequenceItemElementName)) - { - sequence.Children.Add(ParseNode()); - } - } - return sequence; - } - } - - private YamlNode ParseScalar() - { - string text = ExpectText(); - Exit(); - return new YamlScalarNode(text); - } - - #region Navigation methods - private bool Accept(XmlNodeType nodeType, string elementName) - { - if (current == null) - { - return false; - } - - if (current.NodeType != nodeType) - { - return false; - } - - if (nodeType == XmlNodeType.Element) - { - if (current.LocalName != elementName) - { - return false; - } - } - - return true; - } - - private bool AcceptText() - { - return Accept(XmlNodeType.Text, null); - } - - private bool AcceptElement(string elementName) - { - return Accept(XmlNodeType.Element, elementName); - } - - private XmlNode Expect(XmlNodeType nodeType, string elementName) - { - if(!Accept(nodeType, elementName)) - { - if (nodeType == XmlNodeType.Text) - { - throw new InvalidOperationException(string.Format( - CultureInfo.InvariantCulture, - "Expected node type '{0}', got '{1}'.", - nodeType, - current.NodeType - )); - } - else - { - throw new InvalidOperationException(string.Format( - CultureInfo.InvariantCulture, - "Expected element '{0}', got '{1}'.", - elementName, - current.LocalName - )); - } - } - - currentParent = current; - current = current.FirstChild; - return currentParent; - } - - private IDisposable ExpectElement(string elementName) - { - Expect(XmlNodeType.Element, elementName); - return new ExitCaller(this); - } - - private string ExpectText() - { - return Expect(XmlNodeType.Text, null).Value; - } - - private void Exit() - { - Debug.Assert(current == null); - current = currentParent.NextSibling; - currentParent = currentParent.ParentNode; - } - #endregion - } - #endregion - - private readonly XmlConverterOptions options; - - /// - /// Initializes a new instance of the class. - /// - /// The options. - public XmlConverter(XmlConverterOptions options) - { - this.options = options.IsReadOnly ? options : options.AsReadOnly(); - } - - /// - /// Initializes a new instance of the class. - /// - public XmlConverter() - : this(XmlConverterOptions.Default) - { - } - - /// - /// Converts a to . - /// - /// The YAML document to convert. - /// - public XmlDocument ToXml(YamlDocument document) - { - YamlToXmlDocumentVisitor visitor = new YamlToXmlDocumentVisitor(options); - document.Accept(visitor); - return visitor.Document; - } - - /// - /// Converts a to . - /// - /// The XML document to convert. - /// - public YamlDocument FromXml(XmlDocument document) - { - XmlToYamlConverter converter = new XmlToYamlConverter(document, options); - return converter.ParseDocument(); - } - } -} \ No newline at end of file diff --git a/YamlDotNet.Converters/Xml/XmlConverterOptions.cs b/YamlDotNet.Converters/Xml/XmlConverterOptions.cs deleted file mode 100644 index c340506..0000000 --- a/YamlDotNet.Converters/Xml/XmlConverterOptions.cs +++ /dev/null @@ -1,233 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; - -namespace YamlDotNet.Converters.Xml -{ - /// - /// Specifies the behavior of the . - /// - public class XmlConverterOptions - { - private bool isReadOnly; - - /// - /// Gets a value indicating whether this instance is readonly. - /// - /// - /// true if this instance is readonly; otherwise, false. - /// - public bool IsReadOnly - { - get - { - return isReadOnly; - } - } - - private void EnsureIsNotReadonly() - { - if(isReadOnly) - { - throw new InvalidOperationException("This object cannot be modified."); - } - } - - private string rootElementName = "root"; - - /// - /// Gets or sets the name of the root XML element. - /// - /// The name of the root element. - public string RootElementName - { - get - { - return rootElementName; - } - set - { - EnsureIsNotReadonly(); - if (string.IsNullOrEmpty(value)) - { - throw new ArgumentNullException("value"); - } - - rootElementName = value; - } - } - - private string sequenceElementName = "sequence"; - - /// - /// Gets or sets the name of the sequence XML element. - /// - /// The name of the sequence element. - public string SequenceElementName - { - get - { - return sequenceElementName; - } - set - { - EnsureIsNotReadonly(); - if (string.IsNullOrEmpty(value)) - { - throw new ArgumentNullException("value"); - } - sequenceElementName = value; - } - } - - private string sequenceItemElementName = "item"; - - /// - /// Gets or sets the name of the sequence item XML element. - /// - /// The name of the sequence item element. - public string SequenceItemElementName - { - get - { - return sequenceItemElementName; - } - set - { - EnsureIsNotReadonly(); - if (string.IsNullOrEmpty(value)) - { - throw new ArgumentNullException("value"); - } - sequenceItemElementName = value; - } - } - - private string mappingElementName = "mapping"; - - /// - /// Gets or sets the name of the mapping XML element. - /// - /// The name of the mapping element. - public string MappingElementName - { - get - { - return mappingElementName; - } - set - { - EnsureIsNotReadonly(); - if (string.IsNullOrEmpty(value)) - { - throw new ArgumentNullException("value"); - } - mappingElementName = value; - } - } - - private string mappingEntryElementName = "entry"; - - /// - /// Gets or sets the name of the mapping entry XML element. - /// - /// The name of the mapping entry element. - public string MappingEntryElementName - { - get - { - return mappingEntryElementName; - } - set - { - EnsureIsNotReadonly(); - if (string.IsNullOrEmpty(value)) - { - throw new ArgumentNullException("value"); - } - mappingEntryElementName = value; - } - } - - private string mappingKeyElementName = "key"; - - /// - /// Gets or sets the name of the mapping key XML element. - /// - /// The name of the mapping key element. - public string MappingKeyElementName - { - get - { - return mappingKeyElementName; - } - set - { - EnsureIsNotReadonly(); - if (string.IsNullOrEmpty(value)) - { - throw new ArgumentNullException("value"); - } - mappingKeyElementName = value; - } - } - - private string mappingValueElementName = "value"; - - /// - /// Gets or sets the name of the mapping value XML element. - /// - /// The name of the mapping value element. - public string MappingValueElementName - { - get - { - return mappingValueElementName; - } - set - { - EnsureIsNotReadonly(); - if (string.IsNullOrEmpty(value)) - { - throw new ArgumentNullException("value"); - } - mappingValueElementName = value; - } - } - - /// - /// Gets a read-only copy of the current object. - /// - /// - public XmlConverterOptions AsReadOnly() - { - XmlConverterOptions copy = (XmlConverterOptions)MemberwiseClone(); - copy.isReadOnly = true; - return copy; - } - - /// - /// The default options. - /// - public static readonly XmlConverterOptions Default = new XmlConverterOptions().AsReadOnly(); - } -} \ No newline at end of file diff --git a/YamlDotNet.Converters/YamlDotNet.Converters.csproj b/YamlDotNet.Converters/YamlDotNet.Converters.csproj deleted file mode 100644 index 36bacbd..0000000 --- a/YamlDotNet.Converters/YamlDotNet.Converters.csproj +++ /dev/null @@ -1,116 +0,0 @@ - - - - Debug - AnyCPU - 9.0.21022 - 2.0 - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717} - Library - Properties - YamlDotNet.Converters - YamlDotNet.Converters - true - ..\YamlDotNet.snk - - - 3.5 - - - v4.0 - true - http://localhost/YamlDotNet.Converters/ - true - Web - true - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - true - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - true - bin\Debug\YamlDotNet.Converters.XML - AllRules.ruleset - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - AllRules.ruleset - bin\Release\YamlDotNet.Converters.XML - - - - - - - - - - CommonAssemblyInfo.cs - - - - - - - - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 2.0 %28x86%29 - true - - - False - .NET Framework 3.0 %28x86%29 - false - - - False - .NET Framework 3.5 - false - - - False - .NET Framework 3.5 SP1 - false - - - - - {bf32de1b-6276-4341-b212-f8862adbba7a} - YamlDotNet - - - - - \ No newline at end of file diff --git a/YamlDotNet.Core2/YamlDotNet.Core2.csproj b/YamlDotNet.Core2/YamlDotNet.Core2.csproj deleted file mode 100644 index 8f3dbc2..0000000 --- a/YamlDotNet.Core2/YamlDotNet.Core2.csproj +++ /dev/null @@ -1,53 +0,0 @@ - - - - - 10.0 - Debug - AnyCPU - {D04B180D-2CEB-424A-9343-079B887D9F94} - Library - Properties - YamlDotNet.Core - YamlDotNet.Core2 - v4.0 - Profile136 - 512 - {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - \ No newline at end of file diff --git a/YamlDotNet.Dynamic.UnitTests/DynamicYamlTest.cs b/YamlDotNet.Dynamic.UnitTests/DynamicYamlTest.cs deleted file mode 100644 index edceae8..0000000 --- a/YamlDotNet.Dynamic.UnitTests/DynamicYamlTest.cs +++ /dev/null @@ -1,237 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -// Credits for this class: https://github.com/imgen - -using System; -using System.Collections.Generic; -using Xunit; - -namespace YamlDotNet.Dynamic.UnitTests -{ - public class DynamicYamlTest - { - [Fact] - public void TestMappingNode() - { - dynamic dynamicYaml = new DynamicYaml(MappingYaml); - - var receipt = (string)(dynamicYaml.Receipt); - var firstPartNo = dynamicYaml.Items[0].part_no; - Assert.Equal(receipt, "Oz-Ware Purchase Invoice"); - } - - [Fact] - public void TestSequenceNode() - { - dynamic dynamicYaml = new DynamicYaml(SequenceYaml); - - string firstName = dynamicYaml[0].name; - Assert.Equal(firstName, "Me"); - } - - [Fact] - public void TestNestedSequenceNode() - { - dynamic dynamicYaml = new DynamicYaml(NestedSequenceYaml); - - string firstNumberAsString = dynamicYaml[0, 0]; - Assert.Equal(firstNumberAsString, "1"); - int firstNumberAsInt = dynamicYaml[0, 0]; - Assert.Equal(firstNumberAsInt, 1); - } - - [Fact] - public void TestEnumConvert() - { - dynamic dynamicYaml = new DynamicYaml(EnumYaml); - - StringComparison stringComparisonMode = dynamicYaml[0].stringComparisonMode; - Assert.Equal(StringComparison.CurrentCultureIgnoreCase, stringComparisonMode); - } - - [Fact] - public void TestArrayConvert() - { - dynamic dynamicYaml = new DynamicYaml(NestedSequenceYaml); - dynamic[] dynamicArray = null; - - Assert.DoesNotThrow(() => - { - dynamicArray = dynamicYaml; - Assert.NotNull(dynamicArray); - Assert.NotEmpty(dynamicArray); - }); - - Assert.DoesNotThrow(() => - { - int[] intArray = dynamicArray[0]; - Assert.NotNull(intArray); - Assert.NotEmpty(intArray); - }); - } - - [Fact] - public void TestEnumArrayConvert() - { - dynamic dynamicYaml = new DynamicYaml(EnumSequenceYaml); - - Assert.DoesNotThrow(() => - { - StringComparison[] enumArray = dynamicYaml; - Assert.NotNull(enumArray); - Assert.NotEmpty(enumArray); - }); - } - - [Fact] - public void TestCollectionConvert() - { - dynamic dynamicYaml = new DynamicYaml(NestedSequenceYaml); - List dynamicList = null; - Assert.DoesNotThrow(() => - { - dynamicList = dynamicYaml; - Assert.NotNull(dynamicList); - Assert.NotEmpty(dynamicList); - }); - - Assert.DoesNotThrow(() => - { - List intList = dynamicList[0]; - Assert.NotNull(intList); - Assert.NotEmpty(intList); - }); - } - - [Fact] - public void TestEnumCollectionConvert() - { - dynamic dynamicYaml = new DynamicYaml(EnumSequenceYaml); - - Assert.DoesNotThrow(() => - { - List enumList = dynamicYaml; - Assert.NotNull(enumList); - Assert.NotEmpty(enumList); - }); - } - - [Fact] - public void TestDictionaryConvert() - { - dynamic dynamicYaml = new DynamicYaml(MappingYaml); - - Dictionary dynamicDictionary = null; - Assert.DoesNotThrow(() => - { - dynamicDictionary = dynamicYaml; - Assert.NotNull(dynamicDictionary); - Assert.NotEmpty(dynamicDictionary); - }); - - Assert.DoesNotThrow(() => - { - Dictionary stringDictonary = dynamicDictionary["customer"]; - Assert.NotNull(stringDictonary); - Assert.NotEmpty(stringDictonary); - }); - } - - [Fact] - public void TestEnumDictonaryConvert() - { - dynamic dynamicYaml = new DynamicYaml(EnumMappingYaml); - - Assert.DoesNotThrow(() => - { - IDictionary enumDict = dynamicYaml; - Assert.NotNull(enumDict); - Assert.NotEmpty(enumDict); - }); - } - - [Fact] - public void TestNonexistingMember() - { - dynamic dynamicYaml = new DynamicYaml(SequenceYaml); - var title = (string)(dynamicYaml[0].Title); - Assert.Null(title); - var id = (int?)(dynamicYaml[0].Id); - Assert.Null(id); - } - - private const string EnumYaml = @"--- - - stringComparisonMode: CurrentCultureIgnoreCase - - stringComparisonMode: Ordinal"; - - private const string EnumMappingYaml = @"--- - CurrentCultureIgnoreCase: on - Ordinal: off"; - - private const string EnumSequenceYaml = @"--- - - CurrentCultureIgnoreCase - - Ordinal"; - - private const string SequenceYaml = @"--- - - name: Me - - name: You"; - - private const string NestedSequenceYaml = @"--- - - [1, 2, 3] - - [4, 5, 6]"; - - private const string MappingYaml = @"--- - receipt: Oz-Ware Purchase Invoice - date: 2007-08-06 - customer: - given: Dorothy - family: Gale - - items: - - part_no: A4786 - descrip: Water Bucket (Filled) - price: 1.47 - quantity: 4 - - - part_no: E1628 - descrip: High Heeled ""Ruby"" Slippers - price: 100.27 - quantity: 1 - - bill-to: &id001 - street: | - 123 Tornado Alley - Suite 16 - city: East Westville - state: KS - - ship-to: *id001 - - specialDelivery: > - Follow the Yellow Brick - Road to the Emerald City. - Pay no attention to the - man behind the curtain. - -..."; - } -} diff --git a/YamlDotNet.Dynamic.UnitTests/Properties/AssemblyInfo.cs b/YamlDotNet.Dynamic.UnitTests/Properties/AssemblyInfo.cs deleted file mode 100644 index e228744..0000000 --- a/YamlDotNet.Dynamic.UnitTests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("YamlDotNet.Dynamic.UnitTests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("YamlDotNet.Dynamic.UnitTests")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("4101852b-818c-4847-9f0b-da45637326b0")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/YamlDotNet.Dynamic.UnitTests/YamlDotNet.Dynamic.UnitTests.csproj b/YamlDotNet.Dynamic.UnitTests/YamlDotNet.Dynamic.UnitTests.csproj deleted file mode 100644 index 1b79710..0000000 --- a/YamlDotNet.Dynamic.UnitTests/YamlDotNet.Dynamic.UnitTests.csproj +++ /dev/null @@ -1,78 +0,0 @@ - - - - - Debug - AnyCPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71} - Library - Properties - YamlDotNet.Dynamic.UnitTests - YamlDotNet.Dynamic.UnitTests - v4.0 - 512 - 10.0.0 - 2.0 - - ..\ - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - ..\packages\xunit.1.9.1\lib\net20\xunit.dll - - - ..\packages\xunit.extensions.1.9.1\lib\net20\xunit.extensions.dll - - - - - - - - - {57B52D79-04A0-4091-8EE2-B419C009C2A6} - YamlDotNet.Dynamic - - - {bf32de1b-6276-4341-b212-f8862adbba7a} - YamlDotNet - - - - - - - - - \ No newline at end of file diff --git a/YamlDotNet.Dynamic.UnitTests/packages.config b/YamlDotNet.Dynamic.UnitTests/packages.config deleted file mode 100644 index 3e8e5a2..0000000 --- a/YamlDotNet.Dynamic.UnitTests/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/YamlDotNet.Dynamic.nuspec b/YamlDotNet.Dynamic.nuspec deleted file mode 100644 index bc1e6b4..0000000 --- a/YamlDotNet.Dynamic.nuspec +++ /dev/null @@ -1,19 +0,0 @@ - - - - YamlDotNet.Dynamic - - Antoine Aubry - A .NET library for YAML. yamldotnet provides low level parsing and emitting of YAML as well as a high level object model similar to XmlDocument. - This package contains the YAML parser to dynamic objects. - en-US - http://www.aaubry.net/yamldotnet/license.aspx - http://www.aaubry.net/yamldotnet.aspx - http://www.aaubry.net/IMAGES%2f2012%2f11%2fyamldotnet.png.jpgx - yaml parser development library dynamic - - - - - - \ No newline at end of file diff --git a/YamlDotNet.Dynamic/DynamicYaml.cs b/YamlDotNet.Dynamic/DynamicYaml.cs deleted file mode 100644 index 32f232e..0000000 --- a/YamlDotNet.Dynamic/DynamicYaml.cs +++ /dev/null @@ -1,499 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -// Credits for this class: https://github.com/imgen - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Dynamic; -using System.IO; -using System.Linq; -using YamlDotNet.Serialization; - -namespace YamlDotNet.Dynamic -{ - public class DynamicYaml : DynamicObject - { - private static readonly Type[] ConvertableBasicTypes = - { - typeof(DynamicYaml), - typeof(object), - typeof(string), - typeof(char), - typeof(int), - typeof(long), - typeof(float), - typeof(double), - typeof(decimal) - }; - - - private static readonly Type[] ConvertableGenericCollectionTypes = - { - typeof(IEnumerable<>), - typeof(ICollection<>), - typeof(IList<>), - typeof(List<>) - }; - - private static readonly Type[] ConvertableGenericDictionaryTypes = - { - typeof(IDictionary<,>), - typeof(Dictionary<,>) - }; - - private static readonly Type[] ConvertableCollectionTypes = ConvertableGenericCollectionTypes. - SelectMany(type => ConvertableBasicTypes. - Select(basicType => type.MakeGenericType(basicType)) - ).ToArray(); - - private static readonly Type[] ConvertableDictionaryTypes = ConvertableGenericDictionaryTypes. - SelectMany(type => ConvertableBasicTypes. - SelectMany(valueType => ConvertableBasicTypes. - Select(keyType => type.MakeGenericType(keyType, valueType) - ))).ToArray(); - - private static readonly Type[] ConvertableArrayTypes = ConvertableBasicTypes.Select( - type => type.MakeArrayType()).ToArray(); - - private YamlMappingNode mappingNode; - private YamlSequenceNode sequenceNode; - private YamlScalarNode scalarNode; - private YamlNode yamlNode; - - public DynamicYaml(YamlNode node) - { - Reload(node); - } - - public DynamicYaml(TextReader reader) - : this(YamlDoc.LoadFromTextReader(reader)) - { - } - - public DynamicYaml(string yaml) - : this(YamlDoc.LoadFromString(yaml)) - { - } - - public void Reload(YamlNode node) - { - yamlNode = node; - mappingNode = yamlNode as YamlMappingNode; - sequenceNode = yamlNode as YamlSequenceNode; - scalarNode = yamlNode as YamlScalarNode; - children = null; - } - - public void Reload(TextReader reader) - { - Reload(YamlDoc.LoadFromTextReader(reader)); - } - - public void Reload(string yaml) - { - Reload(YamlDoc.LoadFromString(yaml)); - } - - public override bool TryGetMember(GetMemberBinder binder, out object result) - { - return TryGetValueByKeyAndType(binder.Name, binder.ReturnType, out result); - } - - private static bool FailToGetValue(out object result) - { - result = null; - return false; - } - - private static bool SuccessfullyGetValue(out object result, object value) - { - result = value; - return true; - } - - private bool TryGetValueByKeyAndType(string key, - Type type, - out object result) - { - if (mappingNode == null) - { - return FailToGetValue(out result); - } - var yamlKey = new YamlScalarNode(key.Decapitalize()); - var yamlKey2 = new YamlScalarNode(key.Capitalize()); - return TryGetValueByYamlKeyAndType(yamlKey, type, out result) || - TryGetValueByYamlKeyAndType(yamlKey2, type, out result); - } - - private bool TryGetValueByYamlKeyAndType(YamlScalarNode yamlKey, Type type, out object result) - { - if (mappingNode.Children.ContainsKey(yamlKey)) - { - var value = mappingNode.Children[yamlKey]; - if (YamlDoc.TryMapValue(value, out result)) - { - return true; - } - } - - return IsNullableType(type) ? SuccessfullyGetValue(out result, new DynamicYaml((YamlNode)null)) : FailToGetValue(out result); - } - - private static bool IsNullableType(Type type) - { - return type != null && (!type.IsValueType || Nullable.GetUnderlyingType(type) != null); - } - - private bool TryGetValueByIndex(int index, out object result) - { - if (sequenceNode == null) - { - return FailToGetValue(out result); - } - - if (index >= sequenceNode.Count()) - { - throw new IndexOutOfRangeException(); - } - - return YamlDoc.TryMapValue(sequenceNode.ToArray()[index], out result); - } - - public override bool TryGetIndex(GetIndexBinder binder, object[] indices, out object result) - { - var stringKey = indices[0] as string; - if (stringKey != null) - { - if (TryGetValueByKeyAndType(stringKey, binder.ReturnType, out result)) - { - return indices.Length <= 1 || TryGetIndex(binder, indices.Skip(1).ToArray(), out result); - } - - return FailToGetValue(out result); - } - - var intKey = indices[0] as int?; - if (intKey != null) - { - if (TryGetValueByIndex(intKey.Value, out result)) - { - if (indices.Length > 1) - { - if (result is DynamicYaml) - { - return ((DynamicYaml)result).TryGetIndex(binder, indices.Skip(1).ToArray(), out result); - } - return FailToGetValue(out result); - } - - return true; - } - - return FailToGetValue(out result); - } - - return base.TryGetIndex(binder, indices, out result); - } - - private bool TryConvertToBasicType(Type type, bool isNullable, out object result) - { - if (type == typeof(object) || type == typeof(DynamicYaml)) - { - return SuccessfullyGetValue(out result, this); - } - if (scalarNode == null) - { - if (isNullable) - { - return SuccessfullyGetValue(out result, null); - } - return FailToGetValue(out result); - } - if (type == typeof(string)) - { - return SuccessfullyGetValue(out result, scalarNode.Value); - } - if (type == typeof(char)) - { - char charResult; - bool success = char.TryParse(scalarNode.Value, out charResult); - result = success ? (object)charResult : null; - return success; - } - if (type == typeof(int)) - { - int intResult; - bool success = int.TryParse(scalarNode.Value, out intResult); - result = success ? (object)intResult : null; - return success; - } - if (type == typeof(long)) - { - long longResult; - bool success = long.TryParse(scalarNode.Value, out longResult); - result = success ? (object)longResult : null; - return success; - } - if (type == typeof(float)) - { - float floatResult; - bool success = float.TryParse(scalarNode.Value, out floatResult); - result = success ? (object)floatResult : null; - return success; - } - if (type == typeof(double)) - { - double doubleResult; - bool success = double.TryParse(scalarNode.Value, out doubleResult); - result = success ? (object)doubleResult : null; - return success; - } - if (type == typeof(decimal)) - { - decimal decimalResult; - bool success = decimal.TryParse(scalarNode.Value, out decimalResult); - result = success ? (object)decimalResult : null; - return success; - } - if (type.IsEnum) - { - long longResult; - if (long.TryParse(scalarNode.Value, out longResult)) - { - result = longResult; - return true; - } - - try - { - result = Enum.Parse(type, scalarNode.Value); - return true; - } - catch - { - return FailToGetValue(out result); - } - } - - return FailToGetValue(out result); - } - - public override bool TryConvert(ConvertBinder binder, out object result) - { - var type = binder.ReturnType; - - return TryConvertToType(type, out result); - } - - private bool IsGenericEnumCollection(Type type) - { - if (!type.IsGenericType) - { - return false; - } - - Type[] genericTypeArgs = type.GetGenericArguments(); - if (genericTypeArgs.Length != 1) - { - return false; - } - - var elementType = genericTypeArgs.First(); - - return elementType.IsEnum && ConvertableGenericCollectionTypes.Any( - genericType => genericType.MakeGenericType(elementType) == type); - } - - private bool IsLegalElementType(Type type) - { - return type.IsEnum || ConvertableBasicTypes.Contains(type); - } - - private bool IsGenericEnumDictionary(Type type) - { - if (!type.IsGenericType) - { - return false; - } - - Type[] genericTypeArgs = type.GetGenericArguments(); - if (genericTypeArgs.Length != 2) - { - return false; - } - Type keyType = genericTypeArgs[0], valueType = genericTypeArgs[1]; - return (keyType.IsEnum || valueType.IsEnum) && - ConvertableGenericDictionaryTypes. - Any(genericType => genericType.MakeGenericType(keyType, valueType) == type) && - IsLegalElementType(keyType) && IsLegalElementType(valueType); - } - - private bool TryConvertToType(Type type, out object result) - { - if (type.IsArray && - (ConvertableArrayTypes.Contains(type) || - type.GetElementType().IsSubclassOf(typeof(Enum))) - ) - { - return TryConvertToArray(type, out result); - } - if (ConvertableCollectionTypes.Contains(type) || - IsGenericEnumCollection(type)) - { - return TryConvertToCollection(type, out result); - } - if (ConvertableDictionaryTypes.Contains(type) || - IsGenericEnumDictionary(type)) - { - return TryConvertToDictionary(type, out result); - } - - var underlyingType = Nullable.GetUnderlyingType(type); - if (underlyingType != null) - { - type = underlyingType; - } - return TryConvertToBasicType(type, IsNullableType(type), out result); - } - - private bool TryConvertToDictionary(Type type, out object result) - { - if (mappingNode == null) - { - return FailToGetValue(out result); - } - - Type[] genericTypeArgs = type.GetGenericArguments(); - Type keyType = genericTypeArgs[0], - valueType = genericTypeArgs[1]; - - Type dictType = typeof(Dictionary<,>).MakeGenericType(keyType, valueType); - var dict = Activator.CreateInstance(dictType) as IDictionary; - - if (dict != null) - { - foreach (KeyValuePair pair in mappingNode.Children) - { - object key; - if (!new DynamicYaml(pair.Key).TryConvertToType(keyType, out key)) - { - return FailToGetValue(out result); - } - - object value; - if (!new DynamicYaml(pair.Value).TryConvertToType(valueType, out value)) - { - return FailToGetValue(out result); - } - - dict.Add(key, value); - } - } - - return SuccessfullyGetValue(out result, dict); - } - - private bool TryConvertToCollection(Type type, out object result) - { - var elementType = type.GetGenericArguments().First(); - Type listType = typeof(List<>).MakeGenericType(elementType); - var list = Activator.CreateInstance(listType) as IList; - - if (list != null) - { - foreach (DynamicYaml child in Children) - { - object result2; - if (!child.TryConvertToType(elementType, out result2)) - { - return FailToGetValue(out result); - } - - list.Add(result2); - } - } - - return SuccessfullyGetValue(out result, list); - } - - private bool TryConvertToArray(Type type, out object result) - { - if (Children == null) - { - return FailToGetValue(out result); - } - var elementType = type.GetElementType(); - Array arrayResult = Array.CreateInstance(elementType, Children.Count); - int index = 0; - foreach (var child in Children) - { - object result2; - if (!child.TryConvertToType(elementType, out result2)) - { - return FailToGetValue(out result); - } - arrayResult.SetValue(result2, index); - index++; - } - - return SuccessfullyGetValue(out result, arrayResult); - } - - private IList GetChilren() - { - if (mappingNode != null) - { - return mappingNode.Children.Values.Select(node => new DynamicYaml(node)).ToList(); - } - - if (sequenceNode != null) - { - return sequenceNode.Select(node => new DynamicYaml(node)).ToList(); - } - - return new List(); - } - - private IList children; - public IList Children - { - get - { - if (children == null) - { - children = GetChilren(); - } - - return children; - } - } - - public int Count - { - get - { - return Children != null ? Children.Count : 0; - } - } - } -} diff --git a/YamlDotNet.Dynamic/Extensions.cs b/YamlDotNet.Dynamic/Extensions.cs deleted file mode 100644 index 78a59e1..0000000 --- a/YamlDotNet.Dynamic/Extensions.cs +++ /dev/null @@ -1,60 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -// Credits for this class: https://github.com/imgen - -using System.IO; - -namespace YamlDotNet.Dynamic -{ - public static class Extensions - { - public static TextReader ToTextReader(this string str) - { - return str.IsNullOrEmpty() ? null : new StringReader(str); - } - - public static bool IsNullOrEmpty(this string str) - { - return string.IsNullOrEmpty(str); - } - - public static string Capitalize(this string str) - { - if (str.IsNullOrEmpty()) - { - return str; - } - - return char.ToUpper(str[0]) + str.Substring(1); - } - - public static string Decapitalize(this string str) - { - if (str.IsNullOrEmpty()) - { - return str; - } - - return char.ToLower(str[0]) + str.Substring(1); - } - } -} diff --git a/YamlDotNet.Dynamic/Properties/AssemblyInfo.cs b/YamlDotNet.Dynamic/Properties/AssemblyInfo.cs deleted file mode 100644 index 9e127cc..0000000 --- a/YamlDotNet.Dynamic/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("YamlDotNet.Dynamic")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("YamlDotNet.Dynamic")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("e43baa83-f590-476a-9687-4a8dbbe52c89")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/YamlDotNet.Dynamic/YamlDoc.cs b/YamlDotNet.Dynamic/YamlDoc.cs deleted file mode 100644 index 87011e8..0000000 --- a/YamlDotNet.Dynamic/YamlDoc.cs +++ /dev/null @@ -1,63 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -// Credits for this class: https://github.com/imgen - -using System.IO; -using System.Linq; -using YamlDotNet.Serialization; - -namespace YamlDotNet.Dynamic -{ - public static class YamlDoc - { - public static YamlNode LoadFromFile(string fileName) - { - return LoadFromTextReader(File.OpenText(fileName)); - } - - public static YamlNode LoadFromString(string yamlText) - { - return LoadFromTextReader(new StringReader(yamlText)); - } - - public static YamlNode LoadFromTextReader(TextReader reader) - { - var yaml = new YamlStream(); - yaml.Load(reader); - - return yaml.Documents.First().RootNode; - } - - internal static bool TryMapValue(object value, out object result) - { - var node = value as YamlNode; - if (node != null) - { - result = new DynamicYaml(node); - return true; - } - - result = null; - return false; - } - } -} diff --git a/YamlDotNet.Dynamic/YamlDotNet.Dynamic.csproj b/YamlDotNet.Dynamic/YamlDotNet.Dynamic.csproj deleted file mode 100644 index 593d23b..0000000 --- a/YamlDotNet.Dynamic/YamlDotNet.Dynamic.csproj +++ /dev/null @@ -1,64 +0,0 @@ - - - - - Debug - AnyCPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6} - Library - Properties - YamlDotNet.Dynamic - YamlDotNet.Dynamic - v4.0 - 512 - 10.0.0 - 2.0 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - {bf32de1b-6276-4341-b212-f8862adbba7a} - YamlDotNet - - - - - \ No newline at end of file diff --git a/YamlDotNet.FxCop b/YamlDotNet.FxCop deleted file mode 100644 index dd84070..0000000 --- a/YamlDotNet.FxCop +++ /dev/null @@ -1,579 +0,0 @@ - - - - True - c:\program files\microsoft fxcop 1.36\Xml\FxCopReport.xsl - - - - - - True - True - True - 10 - 1 - - False - - False - 120 - False - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 'ConfigurationLoader.Instance' - 'ConfigurationLoader' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 'XmlConverter.FromXml(XmlDocument)' - 'XmlDocument' - - - - - - - - - - - - - - 'XmlConverter.ToXml(YamlDocument)' - 'XmlDocument' - - - - - - - - - - - - - - - - - - 'XmlConverterOptions.Default' - 'XmlConverterOptions' - - - - - - - - - - - - - - - - - - - - - - 'XmlConverterExtensions.ToXml(this YamlDocument)' - 'XmlDocument' - - - - - - - - - - - - - - 'XmlConverterExtensions.ToXml(this YamlDocument, XmlConverterOptions)' - 'XmlDocument' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 'EventReader.Accept<T>()' - 'T' - - - - - - - - - - - - - - 'EventReader.Expect<T>()' - 'T' - - - - - - - - - - - - - - - - 'InsertionQueue<T>' - Queue - - - - - - - - - - - - - - 'Mark' - - - 'Mark' - - - - - - - - - - - - - - - - - - 'IMappingEnd' - - - - - - - - - - - 'IParsingEvent.End' - End - - - - - - - - - - - 'ISequenceEnd' - - - - - - - - - 'IStreamEnd' - - - - - - - - - 'IStreamStart' - - - - - - - - - - - - - - - - - - - - - 'YamlStream' - Stream - - - - - - - - - - - - - - - - - - - - 'ObjectConverter.Convert<TFrom, TTo>(TFrom)' - 'TTo' - - - - - - - - - - - - - 'StreamFragment' - 'IYamlSerializable.ReadYaml(Parser)' - - - - - - - - - 'StreamFragment' - 'IYamlSerializable.WriteYaml(Emitter)' - - - - - - - - - - - - - 'serialized' - 'YamlSerializer.Create<TSerialized>(TSerialized)' - - - - - - - - - 'context' - - - - - - - - - - - - - - 'context' - - - - - - - - - - - - - - 'context' - - - - - - - - - - - - - - 'context' - - - - - - - - - - - - - - 'YamlSerializer.Serialize(TextWriter, object)' - 'o' - - - - - - - - - - - - - - - - - - 'context' - - - - - - - - - - - - - - 'context' - - - - - - - - - - - - - - 'context' - - - - - - - - - - - - - - 'context' - - - - - - - - - - - - - - - - - - - - - This pattern allows to avoid having to specify the type twice (typeof and cast). - This is necessary to allow advances scenarios that need the context, while keeping usual scenarios simple. - - - The default implementation is enhough. It is not expected that Marks are compared, anyways. - This is the same name as in the XmlSerializer.Serialize method. - This name matches the YAML specification. - InsertionQueue<T> is a Queue. - Altough ConfigurationLoader is mutable, it makes sense to make the reference readonly, because we want that reference to always point to the same instance. - That specific instance of XmlConverterOptions is immutable. - It seems that XmlDocument is more appropriate for this task. - - - - - Define a custom attribute to replace {0}. - - - Consider a design that does not require that {0} be an out parameter. - - - Remove the read-only designation from {0} or change the field to one that is an immutable reference type. If the reference type {1} is, in fact, immutable, exclude this message. - - - Consider a design where {0} doesn't require explicit type parameter {1} in any call to it. - - - In method {0}, consider providing a more meaningful name than parameter name {1}. - - - Rename type name {0} so that it does not end in '{1}'. - - - Rename virtual/interface member {0} so that it no longer conflicts with the reserved language keyword '{1}'. Using a reserved keyword as the name of a virtual/interface member makes it harder for consumers in other languages to override/implement the member. - - - Make {0} sealed (a breaking change if this class has previously shipped), implement the method non-explicitly, or implement a new method that exposes the functionality of {1} and is visible to derived classes. - - - Modify member {0} so that it no longer exposes the concrete type {1}. Use IXPathNavigable to represent XML data sources. - - - {0} should override Equals. - {0} should override the equality (==) and inequality (!=) operators. - - - Parameter {0} of {1} is never used. Remove the parameter or use it in the method body. - - - - diff --git a/YamlDotNet.RepresentationModel.Test/Properties/AssemblyInfo.cs b/YamlDotNet.RepresentationModel.Test/Properties/AssemblyInfo.cs deleted file mode 100644 index d71b61c..0000000 --- a/YamlDotNet.RepresentationModel.Test/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,57 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("YamlDotNet.Serialization.Test")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("YamlDotNet.Serialization.Test")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("13aef9d1-4d4f-4678-b82b-45a047c9f4c8")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/YamlDotNet.RepresentationModel.Test/Runner.cs b/YamlDotNet.RepresentationModel.Test/Runner.cs deleted file mode 100644 index b784bda..0000000 --- a/YamlDotNet.RepresentationModel.Test/Runner.cs +++ /dev/null @@ -1,35 +0,0 @@ -// This file is part of YamlDotNet - A .NET library for YAML. -// Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Antoine Aubry - -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -// of the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -using System; -using YamlDotNet; -using System.IO; - -namespace YamlDotNet.Serialization.Test -{ - public class Runner - { - public static void Main() - { - new YamlStreamTests().RoundtripSample(); - } - } -} \ No newline at end of file diff --git a/YamlDotNet.RepresentationModel.Test/YamlDotNet.RepresentationModel.Test.csproj b/YamlDotNet.RepresentationModel.Test/YamlDotNet.RepresentationModel.Test.csproj deleted file mode 100644 index 2a0d451..0000000 --- a/YamlDotNet.RepresentationModel.Test/YamlDotNet.RepresentationModel.Test.csproj +++ /dev/null @@ -1,83 +0,0 @@ - - - - - Debug - AnyCPU - {FF969DAA-C025-4636-89B2-46F16821FA02} - Library - Properties - YamlDotNet.RepresentationModel.Test - YamlDotNet.RepresentationModel.Test - v4.5 - 512 - ..\ - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE;TEST_DUMP - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\FluentAssertions.2.1.0.0\lib\net45\FluentAssertions.dll - - - - - - - - - - - ..\packages\xunit.1.9.1\lib\net20\xunit.dll - - - ..\packages\xunit.extensions.1.9.1\lib\net20\xunit.extensions.dll - - - - - - - - - - - - {16d8043d-c3db-4868-bff3-b2ebdf537aaa} - YamlDotNet.Test - - - {bf32de1b-6276-4341-b212-f8862adbba7a} - YamlDotNet - - - {21ca0077-e15c-446d-9c43-f6d3f9d09687} - YamlDotNet.Serialzation - - - - - - \ No newline at end of file diff --git a/YamlDotNet.RepresentationModel.Test/packages.config b/YamlDotNet.RepresentationModel.Test/packages.config deleted file mode 100644 index 52b4492..0000000 --- a/YamlDotNet.RepresentationModel.Test/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/YamlDotNet.RepresentationModel.nuspec b/YamlDotNet.RepresentationModel.nuspec deleted file mode 100644 index 6d16b66..0000000 --- a/YamlDotNet.RepresentationModel.nuspec +++ /dev/null @@ -1,22 +0,0 @@ - - - - YamlDotNet.RepresentationModel - - Antoine Aubry - A .NET library for YAML. yamldotnet provides low level parsing and emitting of YAML as well as a high level object model similar to XmlDocument. - This package contains the YAML document object model and serialization classes. - en-US - http://www.aaubry.net/yamldotnet/license.aspx - http://www.aaubry.net/yamldotnet.aspx - http://www.aaubry.net/IMAGES%2f2012%2f11%2fyamldotnet.png.jpgx - yaml serialization development library - - - - - - - - - \ No newline at end of file diff --git a/YamlDotNet.mono.sln b/YamlDotNet.mono.sln deleted file mode 100644 index 61ac6c2..0000000 --- a/YamlDotNet.mono.sln +++ /dev/null @@ -1,97 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.Core", "YamlDotNet.Core\YamlDotNet.Core.csproj", "{BF32DE1B-6276-4341-B212-F8862ADBBA7A}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.RepresentationModel", "YamlDotNet.RepresentationModel\YamlDotNet.RepresentationModel.csproj", "{21CA0077-E15C-446D-9C43-F6D3F9D09687}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.Converters", "YamlDotNet.Converters\YamlDotNet.Converters.csproj", "{6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.Configuration", "YamlDotNet.Configuration\YamlDotNet.Configuration.csproj", "{A0178805-DC16-46B6-BEDF-AA201207C17E}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.UnitTests", "YamlDotNet.UnitTests\YamlDotNet.UnitTests.csproj", "{114910D8-5B05-4FDC-BDA0-0DF7A29892DC}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.Dynamic", "YamlDotNet.Dynamic\YamlDotNet.Dynamic.csproj", "{57B52D79-04A0-4091-8EE2-B419C009C2A6}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.Dynamic.UnitTests", "YamlDotNet.Dynamic.UnitTests\YamlDotNet.Dynamic.UnitTests.csproj", "{6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {114910D8-5B05-4FDC-BDA0-0DF7A29892DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {114910D8-5B05-4FDC-BDA0-0DF7A29892DC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {114910D8-5B05-4FDC-BDA0-0DF7A29892DC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {114910D8-5B05-4FDC-BDA0-0DF7A29892DC}.Release|Any CPU.Build.0 = Release|Any CPU - {21CA0077-E15C-446D-9C43-F6D3F9D09687}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {21CA0077-E15C-446D-9C43-F6D3F9D09687}.Debug|Any CPU.Build.0 = Debug|Any CPU - {21CA0077-E15C-446D-9C43-F6D3F9D09687}.Release|Any CPU.ActiveCfg = Release|Any CPU - {21CA0077-E15C-446D-9C43-F6D3F9D09687}.Release|Any CPU.Build.0 = Release|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Release|Any CPU.Build.0 = Release|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Release|Any CPU.Build.0 = Release|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Release|Any CPU.Build.0 = Release|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Release|Any CPU.Build.0 = Release|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(MonoDevelopProperties) = preSolution - StartupItem = YamlDotNet.Core\YamlDotNet.Core.csproj - Policies = $0 - $0.StandardHeader = $1 - $1.Text = @This file is part of YamlDotNet - A .NET library for YAML.\nCopyright (c) ${Year} ${CopyrightHolder}\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE. - $1.IncludeInNewFiles = True - $0.DotNetNamingPolicy = $2 - $2.DirectoryNamespaceAssociation = PrefixedHierarchical - $2.ResourceNamePolicy = FileFormatDefault - $0.TextStylePolicy = $3 - $3.inheritsSet = null - $3.scope = text/x-csharp - $0.CSharpFormattingPolicy = $4 - $4.IndentSwitchBody = True - $4.AnonymousMethodBraceStyle = NextLine - $4.PropertyBraceStyle = NextLine - $4.PropertyGetBraceStyle = NextLine - $4.PropertySetBraceStyle = NextLine - $4.EventAddBraceStyle = NextLine - $4.EventRemoveBraceStyle = NextLine - $4.AllowEventAddBlockInline = False - $4.AllowEventRemoveBlockInline = False - $4.StatementBraceStyle = NextLine - $4.BeforeMethodDeclarationParentheses = False - $4.BeforeMethodCallParentheses = False - $4.BeforeConstructorDeclarationParentheses = False - $4.BeforeIndexerDeclarationBracket = False - $4.BeforeDelegateDeclarationParentheses = False - $4.NewParentheses = False - $4.IfParentheses = False - $4.WhileParentheses = False - $4.ForParentheses = False - $4.ForeachParentheses = False - $4.CatchParentheses = False - $4.SwitchParentheses = False - $4.LockParentheses = False - $4.UsingParentheses = False - $4.SpacesBeforeBrackets = False - $4.BlankLinesBeforeUsings = 1 - $4.BlankLinesBeforeFirstDeclaration = 1 - $4.inheritsSet = Mono - $4.inheritsScope = text/x-csharp - $4.scope = text/x-csharp - EndGlobalSection -EndGlobal diff --git a/YamlDotNet.shfbproj b/YamlDotNet.shfbproj deleted file mode 100644 index d709ad3..0000000 --- a/YamlDotNet.shfbproj +++ /dev/null @@ -1,70 +0,0 @@ - - - - Debug - AnyCPU - 2.0 - {d2ac7476-0ba7-49e2-907e-de5edc21a946} - 1.9.0.0 - - Documentation - Documentation - Documentation - - .\Help\ - YamlDotNet - en-US - - - Summary, Parameter, Returns, AutoDocumentCtors, Namespace, TypeParameter - InheritedMembers, InheritedFrameworkMembers, Protected, SealedProtected - - - - - - - - - - - 2.0.50727 - True - YamlDotNet - A .NET library for parsing and emitting YAML - Copyright &#169%3b Antoine Aubry 2008, 2009, 2010, 2011 - aaubry%40gmail.com - Contact the developpers - YamlDotNet - Prototype - MemberName - 0.1.0.0 - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/YamlDotNet.sln b/YamlDotNet.sln deleted file mode 100644 index db4920e..0000000 --- a/YamlDotNet.sln +++ /dev/null @@ -1,147 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{69EE9636-55BA-49C2-827E-D5684221C345}" - ProjectSection(SolutionItems) = preProject - .gitignore = .gitignore - CommonAssemblyInfo.cs = CommonAssemblyInfo.cs - LICENSE = LICENSE - YamlDotNet.build = YamlDotNet.build - YamlDotNet.Converters.nuspec = YamlDotNet.Converters.nuspec - YamlDotNet.Dynamic.nuspec = YamlDotNet.Dynamic.nuspec - YamlDotNet.FxCop = YamlDotNet.FxCop - YamlDotNet.nuspec = YamlDotNet.nuspec - YamlDotNet.RepresentationModel.nuspec = YamlDotNet.RepresentationModel.nuspec - YamlDotNet.snk = YamlDotNet.snk - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet", "YamlDotNet\YamlDotNet.csproj", "{BF32DE1B-6276-4341-B212-F8862ADBBA7A}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.Converters", "YamlDotNet.Converters\YamlDotNet.Converters.csproj", "{6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.Configuration", "YamlDotNet.Configuration\YamlDotNet.Configuration.csproj", "{A0178805-DC16-46B6-BEDF-AA201207C17E}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dumper", "Dumper\Dumper.csproj", "{BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.Samples", "YamlDotNet.Samples\YamlDotNet.Samples.csproj", "{1EC10966-19C0-4CE3-949E-D11F600B8CA3}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{8DC198EF-4A39-4072-A66A-CA0DF8396F22}" - ProjectSection(SolutionItems) = preProject - .nuget\NuGet.Config = .nuget\NuGet.Config - .nuget\NuGet.exe = .nuget\NuGet.exe - .nuget\NuGet.targets = .nuget\NuGet.targets - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.Converters.Test", "YamlDotNet.Converters.Test\YamlDotNet.Converters.Test.csproj", "{F0EAB124-9790-41C7-AE0F-F050CA0141D3}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.Test", "YamlDotNet.Core.Test\YamlDotNet.Test.csproj", "{16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.Dynamic", "YamlDotNet.Dynamic\YamlDotNet.Dynamic.csproj", "{57B52D79-04A0-4091-8EE2-B419C009C2A6}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YamlDotNet.Dynamic.UnitTests", "YamlDotNet.Dynamic.UnitTests\YamlDotNet.Dynamic.UnitTests.csproj", "{6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|Mixed Platforms = Debug|Mixed Platforms - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|Mixed Platforms = Release|Mixed Platforms - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Debug|x86.ActiveCfg = Debug|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Release|Any CPU.Build.0 = Release|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {BF32DE1B-6276-4341-B212-F8862ADBBA7A}.Release|x86.ActiveCfg = Release|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Debug|x86.ActiveCfg = Debug|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Release|Any CPU.Build.0 = Release|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {6A8DCAF7-6C13-4ADA-AED9-7ABA88FE7717}.Release|x86.ActiveCfg = Release|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Debug|x86.ActiveCfg = Debug|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Release|Any CPU.Build.0 = Release|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {A0178805-DC16-46B6-BEDF-AA201207C17E}.Release|x86.ActiveCfg = Release|Any CPU - {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Debug|x86.ActiveCfg = Debug|Any CPU - {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Release|Any CPU.Build.0 = Release|Any CPU - {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {BB38DE1D-A8E2-4035-AC3A-C6B5AF6B6252}.Release|x86.ActiveCfg = Release|Any CPU - {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Debug|Any CPU.ActiveCfg = Debug|x86 - {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 - {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Debug|Mixed Platforms.Build.0 = Debug|x86 - {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Debug|x86.ActiveCfg = Debug|x86 - {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Debug|x86.Build.0 = Debug|x86 - {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Release|Any CPU.ActiveCfg = Release|x86 - {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Release|Mixed Platforms.ActiveCfg = Release|x86 - {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Release|Mixed Platforms.Build.0 = Release|x86 - {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Release|x86.ActiveCfg = Release|x86 - {1EC10966-19C0-4CE3-949E-D11F600B8CA3}.Release|x86.Build.0 = Release|x86 - {F0EAB124-9790-41C7-AE0F-F050CA0141D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F0EAB124-9790-41C7-AE0F-F050CA0141D3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F0EAB124-9790-41C7-AE0F-F050CA0141D3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {F0EAB124-9790-41C7-AE0F-F050CA0141D3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {F0EAB124-9790-41C7-AE0F-F050CA0141D3}.Debug|x86.ActiveCfg = Debug|Any CPU - {F0EAB124-9790-41C7-AE0F-F050CA0141D3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F0EAB124-9790-41C7-AE0F-F050CA0141D3}.Release|Any CPU.Build.0 = Release|Any CPU - {F0EAB124-9790-41C7-AE0F-F050CA0141D3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {F0EAB124-9790-41C7-AE0F-F050CA0141D3}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {F0EAB124-9790-41C7-AE0F-F050CA0141D3}.Release|x86.ActiveCfg = Release|Any CPU - {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Debug|x86.ActiveCfg = Debug|Any CPU - {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Release|Any CPU.Build.0 = Release|Any CPU - {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {16D8043D-C3DB-4868-BFF3-B2EBDF537AAA}.Release|x86.ActiveCfg = Release|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Debug|x86.ActiveCfg = Debug|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Release|Any CPU.Build.0 = Release|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {57B52D79-04A0-4091-8EE2-B419C009C2A6}.Release|x86.ActiveCfg = Release|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Debug|x86.ActiveCfg = Debug|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Release|Any CPU.Build.0 = Release|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {6E3BEF5A-2DBA-4941-972D-BD6AF27B4A71}.Release|x86.ActiveCfg = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/YamlDotNet.snk b/YamlDotNet.snk deleted file mode 100644 index f4e24f49e37c1bb6f16bd270a3ec1ba1f1a43193..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50098Ox64?tUQ+g@tXx@30+8>4&QF@i+4ij0 zHSI875zo0>U(RXm9mCQUBJxuDu_*Ww>mfVknXFJN`1>U%u#7){>9cI00sf1TYYXa! zg8!0EHljeTyr&Y#dJyRQ|HY%%oW?AR$-cGS;0tcmnq7_50ah#Y^m53IZ|n< zYPk66c@6(HalrVE<~MtsBSvDgB6q{&vr|7f_@1qT@J16~642kyKH4s&2XJ^qFKqx` z8GyJ27UG2LwE6UsB$MI6(*z7XZ6m~$9$oq8!4SWeB~^cWLp`6?Iz8<20*gsD-45I~ z4!LybILYVY0;62NIW^&9Wp!En0X(#BqH>{)ZfUDjbC;7H6CE_y!1#13=Vf^QmVDmP zSi3_3`1^Ziwy)9;;V z4Y?lkcj?eU85or0C1taADMEK}mu^|0$W;R>Q6i00yx1902?am^b*4r!8%69PA1Xd} zq)jCi$9;@K%yG8>P&z%ayZ^UO5G97gz(J>b^juVkDsXUUu6_(^w_N`H$&eEs5D0^; iki~@%fiKsB`lreA|CvL6)#e{AA`drAA8U=B1E5wl#3oGu