Ejemplo n.º 1
0
 private void VisitTopLevelDeclarationWithMembers(TopLevelDeclWithMembers declaration, System.Action visit)
 {
     cancellationToken.ThrowIfCancellationRequested();
     foreach (var parentTrait in declaration.ParentTraits)
     {
         RegisterTypeDesignator(currentScope, parentTrait);
     }
     ProcessNestedScope(declaration, declaration.tok, visit);
 }
Ejemplo n.º 2
0
 private void ProcessAndAddAllMembers(TypeWithMembersSymbolBase containingType, TopLevelDeclWithMembers declaration)
 {
     foreach (var member in declaration.Members)
     {
         cancellationToken.ThrowIfCancellationRequested();
         var memberSymbol = ProcessTypeMember(containingType, member);
         if (memberSymbol != null)
         {
             // TODO When respecting all possible class members, this should never be null.
             containingType.Members.Add(memberSymbol);
         }
     }
 }