/external/chromium-trace/trace-viewer/third_party/web_dev_style/web_dev_style/ |
css_checker.py | 61 def braces_have_space_before_and_nothing_after(line): 62 return re.search(r'(?:^|\S){|{\s*\S+\s*$', line) 64 def classes_use_dashes(line): 67 m = re.search(r'\.(-?[_a-zA-Z0-9-]+).*[,{]\s*$', line) 73 def close_brace_on_new_line(line): 74 return (line.find('}') >= 0 and re.search(r'[^ }]', line) and 75 not re.match(frame_reg, line)) 77 def colons_have_space_after(line): 78 return re.search(r'(?<!data):(?!//)\S[^;]+;\s*', line) [all...] |
/external/chromium_org/third_party/WebKit/Source/build/scripts/ |
in_file.py | 52 def _is_comment(line): 53 return line.startswith("//") or line.startswith("#") 79 for line in lines: 80 if _is_comment(line): 82 if not line: 86 self._parse_parameter(line) 88 entry = self._parse_line(line) 123 def _parse_parameter(self, line): 124 if '=' in line [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_normalization.py | 47 for line in testdata: 48 if '#' in line: 49 line = line.split('#')[0] 50 line = line.strip() 51 if not line: 53 if line.startswith("@Part"): 54 part = line.split()[0] 57 c1,c2,c3,c4,c5 = [unistr(x) for x in line.split(';')[:-1] [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_normalization.py | 47 for line in testdata: 48 if '#' in line: 49 line = line.split('#')[0] 50 line = line.strip() 51 if not line: 53 if line.startswith("@Part"): 54 part = line.split()[0] 57 c1,c2,c3,c4,c5 = [unistr(x) for x in line.split(';')[:-1] [all...] |
/external/chromium_org/ppapi/generators/ |
idl_diff.py | 46 for line in self.was: 47 print 'src: >>%s<<' % line 48 for line in self.now: 49 print 'gen: >>%s<<' % line 55 # Return True if this change is only a one line change in the copyright notice 67 # Return True if this change only removes a blank line from a comment 81 for line in change.now: 82 if line: return False 83 for line in change.was: 84 if line: return Fals [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
cmd.py | 1 """A generic class to build line-oriented command interpreters. 6 2. A command is parsed out of each line by collecting the prefix composed 9 is passed a single argument consisting of the remainder of the line. 10 4. Typing an empty line repeats the last command. (Actually, it calls the 20 arguments text, line, begidx, endidx. text is string we are matching 21 against, all returned matches must begin with it. line is the current 22 input line (lstripped), begidx and endidx are the beginning and end 33 in the help messages. If empty, no ruler line is drawn. It defaults to "=". 56 """A simple framework for writing line-oriented command interpreters. 61 A Cmd instance or subclass instance is a line-oriented interprete [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
cmd.py | 1 """A generic class to build line-oriented command interpreters. 6 2. A command is parsed out of each line by collecting the prefix composed 9 is passed a single argument consisting of the remainder of the line. 10 4. Typing an empty line repeats the last command. (Actually, it calls the 20 arguments text, line, begidx, endidx. text is string we are matching 21 against, all returned matches must begin with it. line is the current 22 input line (lstripped), begidx and endidx are the beginning and end 33 in the help messages. If empty, no ruler line is drawn. It defaults to "=". 56 """A simple framework for writing line-oriented command interpreters. 61 A Cmd instance or subclass instance is a line-oriented interprete [all...] |
/art/tools/ |
cpplint.py | 49 # - Check for spaces between brackets in one-line inline method 75 same line, but it is far from perfect (in either direction). 103 'NOLINT(category)' comment to the line. NOLINT or NOLINT(*) 104 suppresses errors of all categories on that line. 320 # False positives include C-style multi-line comments (http://go/nsiut ) 321 # and multi-line strings (http://go/beujw ), but those have always been 338 _END_ASM = 2 # Last line of inline assembly block 363 Parses any NOLINT comments on the current line, updating the global 369 raw_line: str, the line of input text, with comments. 370 linenum: int, the number of the current line [all...] |
/external/libvpx/libvpx/tools/ |
cpplint.py | 49 # - Check for spaces between brackets in one-line inline method 75 same line, but it is far from perfect (in either direction). 103 'NOLINT(category)' comment to the line. NOLINT or NOLINT(*) 104 suppresses errors of all categories on that line. 319 # False positives include C-style multi-line comments (http://go/nsiut ) 320 # and multi-line strings (http://go/beujw ), but those have always been 337 _END_ASM = 2 # Last line of inline assembly block 362 Parses any NOLINT comments on the current line, updating the global 368 raw_line: str, the line of input text, with comments. 369 linenum: int, the number of the current line [all...] |
/external/chromium_org/chrome/tools/convert_dict/ |
aff_reader.cc | 20 // Returns true if the given line begins with the given case-sensitive 87 std::string line = ReadLine(file_); local 90 if (!got_command && !line.empty() && line[0] == '#') { 91 intro_comment_.append(line); 96 StripComment(&line); 97 if (line.empty()) 101 if (StringBeginsWith(line, "SET ")) { 103 encoding_ = line.substr(4); 105 } else if (StringBeginsWith(line, "AF ")) [all...] |
/external/chromium_org/third_party/angle/src/compiler/ |
ParseContext.h | 73 bool parseVectorFields(const TString&, int vecSize, TVectorFields&, const TSourceLoc& line); 74 bool parseMatrixFields(const TString&, int matSize, TMatrixFields&, const TSourceLoc& line); 76 bool reservedErrorCheck(const TSourceLoc& line, const TString& identifier); 77 void assignError(const TSourceLoc& line, const char* op, TString left, TString right); 78 void unaryOpError(const TSourceLoc& line, const char* op, TString operand); 79 void binaryOpError(const TSourceLoc& line, const char* op, TString left, TString right); 80 bool precisionErrorCheck(const TSourceLoc& line, TPrecision precision, TBasicType type); 81 bool lValueErrorCheck(const TSourceLoc& line, const char* op, TIntermTyped*); 84 bool globalErrorCheck(const TSourceLoc& line, bool global, const char* token); 85 bool constructorErrorCheck(const TSourceLoc& line, TIntermNode*, TFunction&, TOperator, TType*) [all...] |
ParseContext.cpp | 25 bool TParseContext::parseVectorFields(const TString& compString, int vecSize, TVectorFields& fields, const TSourceLoc& line) 29 error(line, "illegal vector field selection", compString.c_str()); 91 error(line, "illegal vector field selection", compString.c_str()); 98 error(line, "vector field selection out of range", compString.c_str()); 104 error(line, "illegal - vector component fields not from the same set", compString.c_str()); 118 bool TParseContext::parseMatrixFields(const TString& compString, int matSize, TMatrixFields& fields, const TSourceLoc& line) 126 error(line, "illegal length of matrix field selection", compString.c_str()); 132 error(line, "illegal matrix field selection", compString.c_str()); 139 error(line, "illegal matrix field selection", compString.c_str()); 147 error(line, "illegal matrix field selection", compString.c_str()) [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/cm/ |
comment.js | 29 var firstLine = self.getLine(from.line); 31 var end = Math.min(to.ch != 0 || to.line == from.line ? to.line + 1 : to.line, self.lastLine() + 1); 33 var blankLines = options.commentBlankLines || from.line == to.line; 38 for (var i = from.line; i < end; ++i) { 39 var line = self.getLine(i), cut = baseString.length; 40 if (!blankLines && !nonWS.test(line)) continue [all...] |
/external/chromium_org/tools/mac/ |
symbolicate_crash.py | 106 line = '' 107 while not thread_re.match(line): 110 line = line.strip() 111 if line: 112 parts = line.split(':', 1) 119 line = fd.readline() 123 # position by the length of the line so that it is re-read when 125 fd.seek(-len(line), os.SEEK_CUR) 136 # line [all...] |
dump-static-initializers.py | 40 for line in child.stdout: 41 file_match = dsymutil_file_re.search(line) 45 o_file_match = dsymutil_o_file_re.search(line) 49 match = dsymutil_re.search(line)
|
/external/chromium_org/third_party/mesa/src/chromium_gensrc/mesa/ |
lex.yy.c | 0 #line 2 "src/chromium_gensrc/mesa/lex.yy.c" 3 #line 4 "src/chromium_gensrc/mesa/lex.yy.c" 241 /* Whether we're considered to be at the beginning of a line. 247 int yy_bs_lineno; /**< The line count. */ [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
CharStream.java | 47 /** ANTLR tracks the line information automatically */ 50 /** Because this stream can rewind, we need to be able to reset the line */ 51 void setLine(int line); 55 /** The index of the character relative to the beginning of the line 0..n-1 */
|
/external/chromium/chrome/browser/autocomplete/ |
autocomplete_popup_view.h | 28 // Invalidates one line of the autocomplete popup. 29 virtual void InvalidateLine(size_t line) = 0;
|
/external/chromium_org/chrome/browser/resources/web_dev_style/ |
js_checker.py | 16 def RegexCheck(self, line_number, line, regex, message): 17 """Searches for |regex| in |line| to check for a particular style 20 part of |line| can be highlighted. If more groups are needed, use 23 line 6: Use var instead of const. 27 match = self.input_api.re.search(regex, line) 32 return ' line %d: %s\n%s\n%s' % ( 35 line, 39 def ChromeSendCheck(self, i, line): 41 return self.RegexCheck(i, line, r"chrome\.send\('[^']+'\s*(, \[\])\)", 44 def ConstCheck(self, i, line) [all...] |
/external/chromium_org/chrome/browser/translate/ |
translate_event_details.cc | 11 line(in_line),
|
/external/chromium_org/chrome/browser/ui/omnibox/ |
omnibox_popup_view.h | 27 // Invalidates one line of the autocomplete popup. 28 virtual void InvalidateLine(size_t line) = 0;
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/ |
xcodeproj.py | 39 def _check_development_region(self, line_index, line): 41 matched = self._development_region_regex.search(line) 52 for line_index, line in enumerate(lines): 53 if self._check_development_region(line_index, line):
|
/external/chromium_org/third_party/icu/source/common/unicode/ |
parseerr.h | 34 * <p>The line, offset, and context fields are optional; parsing 59 * The line on which the error occured. If the parser uses this 60 * field, it sets it to the line number of the source text line on 62 * parse does not support line numbers, the value will be <= 0. 65 int32_t line; member in struct:UParseError 68 * The character offset to the error. If the line field is >= 1, 69 * then this is the offset from the start of the line. Otherwise,
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/os/ |
os_memory_debug.h | 48 debug_malloc(const char *file, unsigned line, const char *function, 52 debug_calloc(const char *file, unsigned line, const char *function, 56 debug_free(const char *file, unsigned line, const char *function, 60 debug_realloc(const char *file, unsigned line, const char *function,
|
/external/chromium_org/third_party/sqlite/src/tool/ |
mkopts.tcl | 10 set line [gets stdin] 11 if {$line==""} continue 12 regsub -all "\[ \t\n,\]+" [string trim $line] { } line 13 foreach token [split $line { }] {
|