コード例 #1
0
ファイル: L4NSectionImpl.cs プロジェクト: willrawls/arp
 public void AddGlobalDeclarations(IWritableSymbolTable table, int level)
 {
     IProject project = this.GetProject();
     if (project != null)
     {
         table.DependencySet.AddNamespaceQualifierDependency("", project);
         IDeclaredElement[] elementsFromCache = this.GetManager().GetDeclarationsCache(DeclarationsCacheScope.ProjectScope(project, true),true).GetElementsAtQualifiedName(string.Empty);
         foreach (IDeclaredElement declaredElement in elementsFromCache)
         {
             table.AddSymbol(declaredElement, declaredElement.IdSubstitution, this, level);
         }
     }
 }
コード例 #2
0
ファイル: AppenderRefImpl.cs プロジェクト: willrawls/arp
        public void AddDeclarationsBeforeElement(IWritableSymbolTable table, IElement element, int level)
        {
            IReference[] references = this.GetReferences();

            if (references == null || references.Length == 0)
                return;

            foreach (IReference reference in references)
            {
                IElement elementFromReference = reference.GetElement();
                IDeclaredElement declaredElement = elementFromReference as IDeclaredElement;

                if (declaredElement == null)
                    continue;

                table.AddSymbol(declaredElement, EmptySubstitution.INSTANCE, this, LevelDelta);
            }
        }
コード例 #3
0
 public void AddDeclarationsBeforeElement(IWritableSymbolTable table, IElement element, int level)
 {
     // do nothing
 }
コード例 #4
0
 public void AddGlobalDeclarations(IWritableSymbolTable table, int level)
 {
     throw new System.NotImplementedException();
 }
コード例 #5
0
 public void AddDeclarationsBeforeElement(IWritableSymbolTable table, IElement element, int level)
 {
     throw new System.NotImplementedException();
 }
コード例 #6
0
ファイル: AppenderRefImpl.cs プロジェクト: willrawls/arp
 public void AddGlobalDeclarations(IWritableSymbolTable table, int level)
 {
     // do nothing
 }