Пример #1
0
        internal DebugTokenTagger(ITextBuffer buffer)
        {
            this._buffer       = buffer;
            this._asmDudeTools = AsmDudeTools.Instance;

            this._mnemonic = new AsmTokenTag(AsmTokenType.Mnemonic);
            this._jump     = new AsmTokenTag(AsmTokenType.Jump);
        }
Пример #2
0
 public CodeCompletionSource(ITextBuffer buffer, ILabelGraph labelGraph)
 {
     this._buffer       = buffer;
     this._labelGraph   = labelGraph;
     this._icons        = new Dictionary <AsmTokenType, ImageSource>();
     this._asmDudeTools = AsmDudeTools.Instance;
     this.loadIcons();
 }
Пример #3
0
 public CodeCompletionSource(ITextBuffer buffer, LabelGraph labelGraph, AsmSimulator asmSimulator)
 {
     this.buffer_       = buffer ?? throw new ArgumentNullException(nameof(buffer));
     this.labelGraph_   = labelGraph ?? throw new ArgumentNullException(nameof(labelGraph));
     this.icons_        = new Dictionary <AsmTokenType, ImageSource>();
     this.asmDudeTools_ = AsmDudeTools.Instance;
     this.asmSimulator_ = asmSimulator ?? throw new ArgumentNullException(nameof(asmSimulator));
     this.Load_Icons();
 }
Пример #4
0
 public CodeCompletionSource(ITextBuffer buffer, LabelGraph labelGraph, AsmSimulator asmSimulator)
 {
     this._buffer       = buffer;
     this._labelGraph   = labelGraph;
     this._icons        = new Dictionary <AsmTokenType, ImageSource>();
     this._asmDudeTools = AsmDudeTools.Instance;
     this._asmSimulator = asmSimulator;
     this.Load_Icons();
 }
Пример #5
0
        internal NasmTokenTagger(ITextBuffer buffer)
        {
            this._buffer       = buffer;
            this._asmDudeTools = AsmDudeTools.Instance;

            this._mnemonic  = new AsmTokenTag(AsmTokenType.Mnemonic);
            this._register  = new AsmTokenTag(AsmTokenType.Register);
            this._remark    = new AsmTokenTag(AsmTokenType.Remark);
            this._directive = new AsmTokenTag(AsmTokenType.Directive);
            this._constant  = new AsmTokenTag(AsmTokenType.Constant);
            this._jump      = new AsmTokenTag(AsmTokenType.Jump);
            this._label     = new AsmTokenTag(AsmTokenType.Label);
            this._labelDef  = new AsmTokenTag(AsmTokenType.LabelDef);
            this._misc      = new AsmTokenTag(AsmTokenType.Misc);
            this._UNKNOWN   = new AsmTokenTag(AsmTokenType.UNKNOWN);
        }
        internal NasmAttDisassemblyTokenTagger(ITextBuffer buffer)
        {
            AsmDudeToolsStatic.Output_INFO("NasmAttDisassemblyTokenTagger:constructor");

            this.buffer_       = buffer ?? throw new ArgumentNullException(nameof(buffer));
            this.asmDudeTools_ = AsmDudeTools.Instance;

            this.mnemonic_  = new AsmTokenTag(AsmTokenType.Mnemonic);
            this.register_  = new AsmTokenTag(AsmTokenType.Register);
            this.remark_    = new AsmTokenTag(AsmTokenType.Remark);
            this.directive_ = new AsmTokenTag(AsmTokenType.Directive);
            this.constant_  = new AsmTokenTag(AsmTokenType.Constant);
            this.jump_      = new AsmTokenTag(AsmTokenType.Jump);
            this.label_     = new AsmTokenTag(AsmTokenType.Label);
            this.labelDef_  = new AsmTokenTag(AsmTokenType.LabelDef);
            this.misc_      = new AsmTokenTag(AsmTokenType.Misc);
        }
Пример #7
0
        internal NasmIntelTokenTagger(ITextBuffer buffer)
        {
            this._buffer       = buffer ?? throw new ArgumentNullException(nameof(buffer));
            this._asmDudeTools = AsmDudeTools.Instance;

            this._mnemonic     = new AsmTokenTag(AsmTokenType.Mnemonic);
            this._register     = new AsmTokenTag(AsmTokenType.Register);
            this._remark       = new AsmTokenTag(AsmTokenType.Remark);
            this._directive    = new AsmTokenTag(AsmTokenType.Directive);
            this._constant     = new AsmTokenTag(AsmTokenType.Constant);
            this._jump         = new AsmTokenTag(AsmTokenType.Jump);
            this._label        = new AsmTokenTag(AsmTokenType.Label);
            this._labelDef     = new AsmTokenTag(AsmTokenType.LabelDef);
            this._misc         = new AsmTokenTag(AsmTokenType.Misc);
            this._userDefined1 = new AsmTokenTag(AsmTokenType.UserDefined1);
            this._userDefined2 = new AsmTokenTag(AsmTokenType.UserDefined2);
            this._userDefined3 = new AsmTokenTag(AsmTokenType.UserDefined3);
            this._UNKNOWN      = new AsmTokenTag(AsmTokenType.UNKNOWN);
        }
Пример #8
0
        internal NasmAttTokenTagger(ITextBuffer buffer)
        {
            this.buffer_       = buffer ?? throw new ArgumentNullException(nameof(buffer));
            this.asmDudeTools_ = AsmDudeTools.Instance;

            this.mnemonic_     = new AsmTokenTag(AsmTokenType.Mnemonic);
            this.register_     = new AsmTokenTag(AsmTokenType.Register);
            this.remark_       = new AsmTokenTag(AsmTokenType.Remark);
            this.directive_    = new AsmTokenTag(AsmTokenType.Directive);
            this.constant_     = new AsmTokenTag(AsmTokenType.Constant);
            this.jump_         = new AsmTokenTag(AsmTokenType.Jump);
            this.label_        = new AsmTokenTag(AsmTokenType.Label);
            this.labelDef_     = new AsmTokenTag(AsmTokenType.LabelDef);
            this.misc_         = new AsmTokenTag(AsmTokenType.Misc);
            this.userDefined1_ = new AsmTokenTag(AsmTokenType.UserDefined1);
            this.userDefined2_ = new AsmTokenTag(AsmTokenType.UserDefined2);
            this.userDefined3_ = new AsmTokenTag(AsmTokenType.UserDefined3);
            this.UNKNOWN_      = new AsmTokenTag(AsmTokenType.UNKNOWN);
        }
Пример #9
0
        internal MasmTokenTagger(ITextBuffer buffer)
        {
            this._buffer       = buffer;
            this._asmDudeTools = AsmDudeTools.Instance;

            this._mnemonic       = new AsmTokenTag(AsmTokenType.Mnemonic);
            this._register       = new AsmTokenTag(AsmTokenType.Register);
            this._remark         = new AsmTokenTag(AsmTokenType.Remark);
            this._directive      = new AsmTokenTag(AsmTokenType.Directive);
            this._constant       = new AsmTokenTag(AsmTokenType.Constant);
            this._jump           = new AsmTokenTag(AsmTokenType.Jump);
            this._label          = new AsmTokenTag(AsmTokenType.Label);
            this._labelDef       = new AsmTokenTag(AsmTokenType.LabelDef);
            this._labelDef_PROTO = new AsmTokenTag(AsmTokenType.LabelDef, AsmTokenTag.MISC_KEYWORD_PROTO);
            this._misc           = new AsmTokenTag(AsmTokenType.Misc);
            this._userDefined1   = new AsmTokenTag(AsmTokenType.UserDefined1);
            this._userDefined2   = new AsmTokenTag(AsmTokenType.UserDefined2);
            this._userDefined3   = new AsmTokenTag(AsmTokenType.UserDefined3);
            this._UNKNOWN        = new AsmTokenTag(AsmTokenType.UNKNOWN);
        }
        //private readonly AsmTokenTag _userDefined1;
        //private readonly AsmTokenTag _userDefined2;
        //private readonly AsmTokenTag _userDefined3;
        //private readonly AsmTokenTag _UNKNOWN;

        internal MasmDisassemblyTokenTagger(ITextBuffer buffer)
        {
            AsmDudeToolsStatic.Output_INFO("MasmDisassemblyTokenTagger:constructor");

            this._buffer       = buffer;
            this._asmDudeTools = AsmDudeTools.Instance;

            this._mnemonic  = new AsmTokenTag(AsmTokenType.Mnemonic);
            this._register  = new AsmTokenTag(AsmTokenType.Register);
            this._remark    = new AsmTokenTag(AsmTokenType.Remark);
            this._directive = new AsmTokenTag(AsmTokenType.Directive);
            this._constant  = new AsmTokenTag(AsmTokenType.Constant);
            this._jump      = new AsmTokenTag(AsmTokenType.Jump);
            this._label     = new AsmTokenTag(AsmTokenType.Label);
            this._labelDef  = new AsmTokenTag(AsmTokenType.LabelDef);
            this._misc      = new AsmTokenTag(AsmTokenType.Misc);
            //this._userDefined1 = new AsmTokenTag(AsmTokenType.UserDefined1);
            //this._userDefined2 = new AsmTokenTag(AsmTokenType.UserDefined2);
            //this._userDefined3 = new AsmTokenTag(AsmTokenType.UserDefined3);
            //this._UNKNOWN = new AsmTokenTag(AsmTokenType.UNKNOWN);
        }