OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
654 * @param {number} lineNumber | 654 * @param {number} lineNumber |
655 * @param {number} columnNumber | 655 * @param {number} columnNumber |
656 */ | 656 */ |
657 constructor(uiSourceCode, lineNumber, columnNumber) { | 657 constructor(uiSourceCode, lineNumber, columnNumber) { |
658 this.uiSourceCode = uiSourceCode; | 658 this.uiSourceCode = uiSourceCode; |
659 this.lineNumber = lineNumber; | 659 this.lineNumber = lineNumber; |
660 this.columnNumber = columnNumber; | 660 this.columnNumber = columnNumber; |
661 } | 661 } |
662 | 662 |
663 /** | 663 /** |
664 * @param {boolean=} skipTrim | |
664 * @return {string} | 665 * @return {string} |
665 */ | 666 */ |
666 linkText() { | 667 linkText(skipTrim) { |
667 var linkText = this.uiSourceCode.displayName(); | 668 var linkText = this.uiSourceCode.displayName(skipTrim); |
allada
2017/03/28 01:13:08
I'm worried about data urls. Can we do a test to s
luoe
2017/03/31 21:35:21
Testing methodology: make 10k logs of the sample t
allada
2017/03/31 23:17:33
Acknowledged.
| |
668 if (typeof this.lineNumber === 'number') | 669 if (typeof this.lineNumber === 'number') |
669 linkText += ':' + (this.lineNumber + 1); | 670 linkText += ':' + (this.lineNumber + 1); |
670 return linkText; | 671 return linkText; |
671 } | 672 } |
672 | 673 |
673 /** | 674 /** |
674 * @return {string} | 675 * @return {string} |
675 */ | 676 */ |
676 id() { | 677 id() { |
677 return this.uiSourceCode.project().id() + ':' + this.uiSourceCode.url() + ': ' + this.lineNumber + ':' + | 678 return this.uiSourceCode.project().id() + ':' + this.uiSourceCode.url() + ': ' + this.lineNumber + ':' + |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
920 Workspace.UISourceCodeMetadata = class { | 921 Workspace.UISourceCodeMetadata = class { |
921 /** | 922 /** |
922 * @param {?Date} modificationTime | 923 * @param {?Date} modificationTime |
923 * @param {?number} contentSize | 924 * @param {?number} contentSize |
924 */ | 925 */ |
925 constructor(modificationTime, contentSize) { | 926 constructor(modificationTime, contentSize) { |
926 this.modificationTime = modificationTime; | 927 this.modificationTime = modificationTime; |
927 this.contentSize = contentSize; | 928 this.contentSize = contentSize; |
928 } | 929 } |
929 }; | 930 }; |
OLD | NEW |