示例#1
0
 private bool Equals(ClassOrStructSymbol other)
 {
     return(base.Equals(other) &&
            Equals(BaseType, other.BaseType) &&
            BaseInterfaces.Length == other.BaseInterfaces.Length &&
            BaseInterfaces.Zip(other.BaseInterfaces, (x, y) => x.Equals(y)).All(x => x));
 }
示例#2
0
 internal StructSymbol(StructTypeSyntax syntax, Symbol parent, ClassOrStructSymbol baseType, ImmutableArray <InterfaceSymbol> baseInterfaces)
     : base(SymbolKind.Struct, (syntax.Name != null) ? syntax.Name.Text : "<anonymous struct>", parent, baseType, baseInterfaces)
 {
     Syntax = syntax;
 }
示例#3
0
 internal ClassSymbol(ClassTypeSyntax syntax, Symbol parent, ClassOrStructSymbol baseType, ImmutableArray <InterfaceSymbol> baseInterfaces, Binder binder)
     : base(SymbolKind.Class, syntax.Name.Text, parent, baseType, baseInterfaces)
 {
     Syntax = syntax;
     Binder = binder;
 }
示例#4
0
 internal ClassOrStructSymbol(SymbolKind kind, string name, Symbol parent, ClassOrStructSymbol baseType, ImmutableArray <InterfaceSymbol> baseInterfaces)
     : base(kind, name, string.Empty, parent)
 {
     BaseType       = baseType;
     BaseInterfaces = baseInterfaces;
 }