コード例 #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);
 }