Ejemplo n.º 1
0
 public SimpleSuggestedActions(SimpleSuggestedActionsProvider provider, ITextView textView, ITextBuffer textBuffer)
 {
     m_provider   = provider;
     m_textView   = textView;
     m_textBuffer = textBuffer;
     m_classifier = GeneralAsmClassifier.GetClassifier(textBuffer);
 }
Ejemplo n.º 2
0
        public TestCompletionSource(TokenCompletionSourceProvider sourceProvider, ITextBuffer textBuffer)
        {
            m_sourceProvider = sourceProvider;
            m_textBuffer     = textBuffer;

            m_classifier = (GeneralAsmClassifier)GeneralAsmClassifier.GetClassifier(textBuffer);
            var ty = m_classifier.GetType();

            if (ty == typeof(MasmClassifier))
            {
                m_classifierColl = SimpleAsmLineParser.s_ClassifierDictionary[(int)AsmClassifierFamilyType.Masm];
            }
            else if (ty == typeof(NasmClassifier))
            {
                m_classifierColl = SimpleAsmLineParser.s_ClassifierDictionary[(int)AsmClassifierFamilyType.Nasm];
            }
            else
            {
                m_classifierColl = SimpleAsmLineParser.s_ClassifierDictionary[(int)AsmClassifierFamilyType.General];
            }
        }
Ejemplo n.º 3
0
 internal AsmTagger(ITextBuffer textBuffer) : base(textBuffer)
 {
     m_classifier = GeneralAsmClassifier.GetClassifier(textBuffer);
 }
Ejemplo n.º 4
0
 public UndnameQuickInfoSource(UndnameQuickInfoSourceProvider provider, ITextBuffer textBuffer)
 {
     m_provider   = provider;
     m_textBuffer = textBuffer;
     m_classifier = GeneralAsmClassifier.GetClassifier(textBuffer);
 }