public XmlDeclaration(RubyContext context) : base(context, new AttributeData()) { _encoding = context.CreateAsciiSymbol("encoding"); _standalone = context.CreateAsciiSymbol("standalone"); _version = context.CreateAsciiSymbol("version"); }
private static IDictionary<String, RubySymbol> InitializeGeneratorStateKey(RubyContext context) { // TODO: I do not really like how I implemented this... if (_generatorStateKeyMappings == null) { _generatorStateKeyMappings = new Dictionary<String, RubySymbol>(); _generatorStateKeyMappings.Add("indent", context.CreateAsciiSymbol("indent")); _generatorStateKeyMappings.Add("space", context.CreateAsciiSymbol("space")); _generatorStateKeyMappings.Add("space_before", context.CreateAsciiSymbol("space_before")); _generatorStateKeyMappings.Add("array_nl", context.CreateAsciiSymbol("array_nl")); _generatorStateKeyMappings.Add("object_nl", context.CreateAsciiSymbol("object_nl")); _generatorStateKeyMappings.Add("check_circular", context.CreateAsciiSymbol("check_circular")); _generatorStateKeyMappings.Add("max_nesting", context.CreateAsciiSymbol("max_nesting")); _generatorStateKeyMappings.Add("allow_nan", context.CreateAsciiSymbol("allow_nan")); } return _generatorStateKeyMappings; }
private static IDictionary <String, RubySymbol> InitializeGeneratorStateKey(RubyContext context) { // TODO: I do not really like how I implemented this... if (_generatorStateKeyMappings == null) { _generatorStateKeyMappings = new Dictionary <String, RubySymbol>(); _generatorStateKeyMappings.Add("indent", context.CreateAsciiSymbol("indent")); _generatorStateKeyMappings.Add("space", context.CreateAsciiSymbol("space")); _generatorStateKeyMappings.Add("space_before", context.CreateAsciiSymbol("space_before")); _generatorStateKeyMappings.Add("array_nl", context.CreateAsciiSymbol("array_nl")); _generatorStateKeyMappings.Add("object_nl", context.CreateAsciiSymbol("object_nl")); _generatorStateKeyMappings.Add("check_circular", context.CreateAsciiSymbol("check_circular")); _generatorStateKeyMappings.Add("max_nesting", context.CreateAsciiSymbol("max_nesting")); _generatorStateKeyMappings.Add("allow_nan", context.CreateAsciiSymbol("allow_nan")); } return(_generatorStateKeyMappings); }
public DocumentType(RubyContext context) : base(context, new AttributeData()) { _systemId = context.CreateAsciiSymbol("system_id"); _publicId = context.CreateAsciiSymbol("public_id"); }
private void InitializeHpricotSymbols(RubyContext context) { sym_xmldecl = context.CreateAsciiSymbol("xmldecl"); sym_doctype = context.CreateAsciiSymbol("doctype"); sym_procins = context.CreateAsciiSymbol("procins"); sym_stag = context.CreateAsciiSymbol("stag"); sym_etag = context.CreateAsciiSymbol("etag"); sym_emptytag = context.CreateAsciiSymbol("emptytag"); sym_comment = context.CreateAsciiSymbol("comment"); sym_cdata = context.CreateAsciiSymbol("cdata"); sym_text = context.CreateAsciiSymbol("text"); sym_EMPTY = context.CreateAsciiSymbol("EMPTY"); sym_CDATA = context.CreateAsciiSymbol("CDATA"); symAllow = context.CreateAsciiSymbol("allow"); symDeny = context.CreateAsciiSymbol("deny"); _optXml = context.CreateAsciiSymbol("xml"); _optFixupTags = context.CreateAsciiSymbol("fixup_tags"); _optXhtmlStrict = context.CreateAsciiSymbol("xhtml_strict"); }