Exemplo n.º 1
0
		protected Document (IBuffer buffer,ILineSplitter splitter)
		{
			this.buffer = buffer;
			this.splitter = splitter;
			splitter.LineChanged += SplitterLineSegmentTreeLineChanged;
			splitter.LineRemoved += HandleSplitterLineSegmentTreeLineRemoved;
			foldSegmentTree.InstallListener (this);
		}
Exemplo n.º 2
0
		protected Document (IBuffer buffer,ILineSplitter splitter)
		{
			this.buffer = buffer;
			this.splitter = splitter;
			splitter.LineChanged += SplitterLineSegmentTreeLineChanged;
			splitter.LineRemoved += HandleSplitterLineSegmentTreeLineRemoved;
			foldSegmentTree.tree.NodeRemoved += HandleFoldSegmentTreetreeNodeRemoved; 
		}
Exemplo n.º 3
0
 public LineSerializer(ILineSplitter splitter, IDictionary <int, FlatFilePropertySerializer> indexToPropertySerializerDictionary, IEnumerable <string> fileNamePropertyNames, IEnumerable <string> rowNumberPropertyNames, IEnumerable <string> rowGuidPropertyNames)
 {
     this.Splitter = splitter;
     this._indexToPropertySerializerDictionary = indexToPropertySerializerDictionary;
     this._fileNamePropertyNames  = fileNamePropertyNames;
     this._rowNumberPropertyNames = rowNumberPropertyNames;
     this._rowGuidPropertyNames   = rowGuidPropertyNames;
 }
Exemplo n.º 4
0
        public PropertiesParser(ILineSplitter lineSplitter)
        {
            if (lineSplitter == null)
            {
                throw new ArgumentNullException(nameof(lineSplitter));
            }

            this.lineSplitter = lineSplitter;
        }
Exemplo n.º 5
0
		protected Document (IBuffer buffer,ILineSplitter splitter)
		{
			this.buffer = buffer;
			this.splitter = splitter;
			splitter.LineChanged += SplitterLineSegmentTreeLineChanged;
			splitter.LineRemoved += HandleSplitterLineSegmentTreeLineRemoved;
			foldSegmentTree.InstallListener (this);
			foldSegmentTree.tree.NodeRemoved += delegate(object sender, RedBlackTree<FoldSegment>.RedBlackTreeNodeEventArgs e) {
				if (e.Node.IsFolded)
					foldedSegments.Remove (e.Node);
			};
		}
Exemplo n.º 6
0
 public ClangLineFilter(ILineSplitter splitter)
 {
     Node = new ClangCriteriaAndNode(
         new List <ClangCriteriaNode>()
     {
         new ClangCriteriaNotNode(new ClangCriteriaHexNode()),
         new ClangCriteriaNotNode(new ClangCriteriaAngleBracketNode()),
         new ClangCriteriaNotNode(new ClangCriteriaConstantsNode()),
         new ClangCriteriaNotNode(new ClangCriteriaColumnNode()),
     });
     Splitter = splitter;
 }
Exemplo n.º 7
0
 public FlatFileDefinition <T> HasFixedColumnWidth(params int[] columnSizes)
 {
     this._lineSplitter = new FixedColumnWidthLineSplitter(columnSizes);
     return(this);
 }
Exemplo n.º 8
0
 public FlatFileDefinition <T> IsColumnSeparated(char separator = ';', char textDelimiter = '"')
 {
     this._lineSplitter = new ColumnSeparatorLineSplitter(separator, textDelimiter);
     return(this);
 }
Exemplo n.º 9
0
 public TextDocument()
 {
     buffer                = new GapBuffer();
     splitter              = new LineSplitter();
     splitter.LineChanged += SplitterLineSegmentTreeLineChanged;
 }
Exemplo n.º 10
0
 public AbstractSyntaxTreeWordSearchVisitor(ILineSplitter splitter, string word)
 {
     Splitter = splitter;
     Word     = word;
 }
Exemplo n.º 11
0
 public ClangAbstractSyntaxTreeClassExtractor(ILineSplitter splitter)
 {
     Splitter = splitter;
 }
 public void Init()
 {
     Splitter = new MockLineSplitter();
 }
Exemplo n.º 13
0
 public HashCodeExtractorSearchVisitor(ILineSplitter splitter, string hashCode)
 {
     Splitter = splitter;
     HashCode = hashCode;
 }
Exemplo n.º 14
0
 public CallExpressionExtractorVisitor(MethodExtractorObj extractorObj, ILineSplitter splitter)
 {
     ExtractorObj = extractorObj;
     Splitter     = splitter;
 }
Exemplo n.º 15
0
 public MethodExtractorVisitor(MethodExtractorObj extractorObj, ILineSplitter splitter, string type)
 {
     ExtractorObj = extractorObj;
     Splitter     = splitter;
     Type         = type;
 }
Exemplo n.º 16
0
 public ClangLineFilter(ClangCriteriaNode node, ILineSplitter splitter)
 {
     Node     = node;
     Splitter = splitter;
 }
Exemplo n.º 17
0
		protected TextDocument (IBuffer buffer,ILineSplitter splitter)
		{
			this.buffer = buffer;
			this.splitter = splitter;
			splitter.LineChanged += SplitterLineSegmentTreeLineChanged;
			splitter.LineRemoved += HandleSplitterLineSegmentTreeLineRemoved;
			foldSegmentTree.tree.NodeRemoved += HandleFoldSegmentTreetreeNodeRemoved; 
			textSegmentMarkerTree.InstallListener (this);
			this.diffTracker.SetTrackDocument (this); 
		}
Exemplo n.º 18
0
 public LineAnalyzer(ILineSplitter lineSplitter)
 {
     _lineSplitter = lineSplitter;
 }
Exemplo n.º 19
0
 public ClassExtractorDeclVisitor(ClassExtractorObj extractorObj, ILineSplitter spiltter)
 {
     ExtractorObj = extractorObj;
     Spiltter     = spiltter;
 }
Exemplo n.º 20
0
 public BagOfWordsMetricVisitor(ILineSplitter splitter)
 {
     _splitter = splitter;
 }
Exemplo n.º 21
0
 public LineSerializer(ILineSplitter splitter, IDictionary <int, FlatFilePropertySerializer> indexToPropertySerializerDictionary)
 {
     this.Splitter = splitter;
     this._indexToPropertySerializerDictionary = indexToPropertySerializerDictionary;
 }
Exemplo n.º 22
0
 public BagOfWordsMetricCreator(ILineSplitter splitter)
 {
     Splitter = splitter;
 }