public Result<Declarator> WithName(Definable target, SourcePart position) { var result = new Declarator(Tags, target, Position + position); if (Target == null) return result; return result.Issues(IssueId.InvalidDeclarationTag.Create(Position)); }
internal DefinableToken(Definable tokenClass, SourcePart tokenData) { _data = tokenData; _tokenClass = tokenClass; }
internal IImplementation Find(Definable definable, bool publicOnly) { var position = Compound.Syntax.Find(definable?.Id, publicOnly); return position == null ? null : AccessFeature(position.Value); }
internal Declarator(IDeclarationTag[] tags, Definable target, SourcePart position) { Position = position; Tags = tags; Target = target; }