Beispiel #1
0
        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));
        }
Beispiel #2
0
 internal DefinableToken(Definable tokenClass, SourcePart tokenData)
 {
     _data = tokenData;
     _tokenClass = tokenClass;
 }
Beispiel #3
0
 internal IImplementation Find(Definable definable, bool publicOnly)
 {
     var position = Compound.Syntax.Find(definable?.Id, publicOnly);
     return position == null ? null : AccessFeature(position.Value);
 }
Beispiel #4
0
 internal Declarator(IDeclarationTag[] tags, Definable target, SourcePart position)
 {
     Position = position;
     Tags = tags;
     Target = target;
 }