Ejemplo n.º 1
0
        public ValueModel(SourceSnapshot source, ParsedValue <string> value)
        {
            var location = new Location(source, value.Span);

            Value    = value.ValueOrDefault;
            Type     = TypesOfValue.Path; // FIXME: Дичь какая-то. Зачем это?
            Comments = new CommentBlockModel(location);
        }
Ejemplo n.º 2
0
        public object Clone()
        {
            var clone = new CommentBlockModel(Location);

            clone.Comments.AddRange(Comments);

            return(clone);
        }
Ejemplo n.º 3
0
        protected Model(
            ModelType modelType,
            int id,
            Nitra.Location?location,
            [NotNull] string name,
            [NotNull] string path)
        {
            ModelType = modelType;
            Id        = id;
            Comments  = new CommentBlockModel(location);
            Name      = name;
            FilePath  = path;

            CreateBackReferenceObjects();
        }
Ejemplo n.º 4
0
 public ValueModel([CanBeNull] object value, TypesOfValue type, Location location)
 {
     Value    = value;
     Type     = type;
     Comments = new CommentBlockModel(location);
 }
Ejemplo n.º 5
0
 public ReferenceModel([NotNull] TRefereedModel referred)
 {
     _modelId = referred.Id;
     Model    = referred;
     Comments = new CommentBlockModel();
 }
Ejemplo n.º 6
0
 // deferred initialization
 // ReSharper disable once NotNullMemberIsNotInitialized
 public ReferenceModel(int id, Location referenceLocation)
 {
     _modelId = id;
     Comments = new CommentBlockModel(referenceLocation);
 }
Ejemplo n.º 7
0
 // deferred initialization
 // ReSharper disable once NotNullMemberIsNotInitialized
 public ReferenceModel(int id)
 {
     _modelId = id;
     Comments = new CommentBlockModel();
 }