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); }
public object Clone() { var clone = new CommentBlockModel(Location); clone.Comments.AddRange(Comments); return(clone); }
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(); }
public ValueModel([CanBeNull] object value, TypesOfValue type, Location location) { Value = value; Type = type; Comments = new CommentBlockModel(location); }
public ReferenceModel([NotNull] TRefereedModel referred) { _modelId = referred.Id; Model = referred; Comments = new CommentBlockModel(); }
// deferred initialization // ReSharper disable once NotNullMemberIsNotInitialized public ReferenceModel(int id, Location referenceLocation) { _modelId = id; Comments = new CommentBlockModel(referenceLocation); }
// deferred initialization // ReSharper disable once NotNullMemberIsNotInitialized public ReferenceModel(int id) { _modelId = id; Comments = new CommentBlockModel(); }