public JavaMethodBlock(SimpleTextSpan location) { Location = location; }
public JspToken(string value, JspTokenType type, SimpleTextSpan location) { Value = value; Type = type; Location = location; }
private void Resolve() { if (DefinitionFile != null) { var doc = DefinitionFile.Document.Original; SimpleTextSpan line = new SimpleTextSpan(doc.GetIndexOfLine(DefinitionLine), doc.GetIndexOfLine(DefinitionLine + 1)); var block = DefinitionFile.Document.Block.MethodBlocks.FirstOrDefault(mb => mb.Location.Intersects(line)); if (block != null) { block.ResolvedMethod = this; DefinitionBlock = block; } } }