Beispiel #1
0
 public DIWrapperSource(int indGlyphOwner, GConsts.TypeGlyph typeGlyph,
     GScope.TypeGScope scope)
 {
     this.indGlyphOwner=indGlyphOwner;
     this.typeGlyph=typeGlyph;
     this.scope=scope;
 }
Beispiel #2
0
 public static bool GScInterfer(GScope.TypeGScope scope, string str)
 {
     switch (scope)
     {
         case TypeGScope._SEARCH_ANY_:
             return true;
         case TypeGScope._UNDEF_:
             return GScUndef(str);
         default:
             return GElemInterfer(StrGScope(scope),str);
     }
 }
Beispiel #3
0
        /*
         *        CONSTRUCTOR
         */
        public GErrSource(ValInfoBasic info,
            int indGlyphOwner, GConsts.TypeGlyph typeGlyph,
            GScope.TypeGScope scope)
        {
            // ValInfoBasic
            base.TypeBasic = info.TypeBasic;
            base.Name = info.Name;
            base.ValueUser = info.ValueUser;
            base.NameFileErrs = info.NameFileErrs;
            base.NameAsmFileErrs = info.NameAsmFileErrs;
            base.TagPrincipal = info.TagPrincipal;


            // GErr
            base.indexGlyphOwner=indGlyphOwner;
            base.typeGlyph=typeGlyph;
            if (info.TypeBasic==ValInfoBasic.ValInfoType.Error)
            {
                base.severity=GErr.TypeGErrSeverity.Fatal;
            }
            else if (info.TypeBasic==ValInfoBasic.ValInfoType.Warning)
            {
                base.severity=GErr.TypeGErrSeverity.Low;
            }
            else
            {
                base.severity=GErr.TypeGErrSeverity.Undef;
            }
            base.SetScope(scope);
        }        
Beispiel #4
0
 public bool HasSeverity(int indexGlyph,   
     GScope.TypeGScope scope,   
     GErr.TypeGErrSeverity severity)
 {    
     if ((indexGlyph!=GConsts.IND_ANY)&&(indexGlyph!=this.IndexGlyphOwner))
         return false;
     if (!GScope.GScInterfer(scope, this.GetScope))
         return false;
     return (severity==this.Severity);
 }
Beispiel #5
0
 public virtual bool HasErrorType(int indexGlyph,   
     GScope.TypeGScope scope,   
     System.Type typeGErr)
 {    
     if ((indexGlyph!=GConsts.IND_ANY)&&(indexGlyph!=this.IndexGlyphOwner))
         return false;
     if (!GScope.GScInterfer(scope, this.GetScope))
         return false;
     // traverse GErr hierarchy (if any)
     Type type=this.GetType();
     do
     {
         if (type==typeGErr)
             return true;
         type=type.BaseType;
     } while (type!=typeof(GErr));
     return false;
 }
Beispiel #6
0
 public DICWrap_HasErrorType(int indexGlyph, GScope.TypeGScope scope, System.Type typeGErr)
 {
     this.indexGlyph=indexGlyph;
     this.scope=scope;
     this.typeGErr=typeGErr;
 }