예제 #1
0
        private FAMIX.Class CreateNewClass(INamedTypeSymbol type)
        {
            FAMIX.Class entity;

            if (type.DeclaringSyntaxReferences.Length == 0)
            {
                return((FAMIX.Class)EnsureBinaryType(type));
            }

            string typeKind = helper.ResolveFAMIXTypeName(type).FullName;

            entity               = this.CreateNewEntity <FAMIX.Class>(typeKind);
            entity.name          = helper.FullTypeName(type);
            entity.isAbstract    = type.IsAbstract;
            entity.isFinal       = type.IsSealed;
            entity.accessibility = helper.AccessibilityName(type.DeclaredAccessibility);
            return(entity);
        }
예제 #2
0
 public void AddChildScope(FAMIX.ScopingEntity one)
 {
     childScopes.Add(one);
 }
예제 #3
0
 public ScopingEntity CreateScopingEntity(CompilationUnitSyntax node)
 {
     entity = this.CreateNewEntity <FAMIX.ScopingEntity>(typeof(FAMIX.ScopingEntity).FullName);
     return(entity);
 }