public PropertyMap LoadProperties(Annotation annotation, Context context, DocEntryList entries) { PropertyMap props = new PropertyMap(); foreach (DocEntry entry in entries) { Property prop = LoadProperty(annotation, context, entry); if (prop == null) { continue; } if (props.ContainsKey(prop.GetName())) { throw new SyntaxError("Duplicate property: " + prop.GetName()); } else { props[prop.GetName()] = prop; } } return(props); }
public Annotation(String name, DocEntryList arguments) { this.name = name; this.arguments = arguments; }