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