コード例 #1
0
        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);
        }
コード例 #2
0
 public Annotation(String name, DocEntryList arguments)
 {
     this.name      = name;
     this.arguments = arguments;
 }