public LocatorImpl(ILocator locator) { publicId = locator.PublicId; systemId = locator.SystemId; lineNumber = locator.LineNumber; columnNumber = locator.ColumnNumber; xmlVersion = locator.XmlVersion; encoding = locator.Encoding; entityType = locator.EntityType; }
public void TestValidAgentType(string v, ParsedEntityType expected) { var ap = new EntityTypeAttributeParser(); const string attIdentifier = "type"; var e = ap.ParsedAttribute(attIdentifier, null, new NParsedAttributeAtomic(new IdentifierExpression(v))); Assert.IsInstanceOf(typeof(ParsedEntityTypeAttribute), e); var at = (ParsedEntityTypeAttribute)e; Assert.AreEqual(expected, at.Value); }
public ParsedEntity(string identifier) : base(identifier) { EntityType = ParsedEntityType.None; }