Exemple #1
0
        public AssemblyModule(AssemblyModule parentModule, bool caseSensitive)
        {
            ParentModule = parentModule;
            var comparer = caseSensitive
                ? StringComparer.InvariantCulture
                : StringComparer.InvariantCultureIgnoreCase;

            NestedModules = new Dictionary <string, AssemblyModule>(comparer);
            Symbols       = new Dictionary <string, AssemblySymbolInfo>(comparer);
            Structs       = new Dictionary <string, StructDefinition>(comparer);
            Macros        = new Dictionary <string, MacroDefinition>(comparer);
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object" /> class.
 /// </summary>
 public FixupEntry(IEvaluationContext parentContext, AssemblyModule module,
                   SourceLineBase sourceLine, FixupType type,
                   int segmentIndex, int offset, ExpressionNode expression, string label = null,
                   Dictionary <ushort, byte> structBytes = null)
 {
     ParentContext = parentContext;
     Module        = module;
     SourceLine    = sourceLine;
     Type          = type;
     SegmentIndex  = segmentIndex;
     Offset        = offset;
     Expression    = expression;
     Resolved      = false;
     Label         = label;
     StructBytes   = structBytes;
 }
Exemple #3
0
 public AssemblyModule(AssemblyModule parentModule = null)
 {
     ParentModule = parentModule;
 }