Searched refs:token (Results 51 - 75 of 1600) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/closure_linter/closure_linter/
H A Dcheckerbase.py48 def _HandleError(self, code, message, token, position=None,
52 self.__checker.HandleError(code, message, token, position, fix_data)
62 def CheckToken(self, token, parser_state):
63 """Checks a token, given the current parser_state, for warnings and errors.
66 token: The current token under consideration.
94 lint_rules: LintRules object defining lint errors given a token
96 state_tracker: Object that tracks the current state in the token stream.
105 def HandleError(self, code, message, token, position=None,
112 token
[all...]
H A Decmalintrules.py109 def HandleMissingParameterDoc(self, token, param_name):
117 last_token: The last token in the line.
120 # Start from the last token so that we have the flag object attached to
123 token = last_token
128 while token and token.line_number == line_number:
129 if state.IsTypeToken(token):
130 line.insert(0, 'x' * len(token.string))
131 elif token.type in (Type.IDENTIFIER, Type.NORMAL):
133 line.insert(0, token
[all...]
H A Derror_fixer.py76 first_token: The first token in the file.
88 tokens: The token or sequence of tokens changed to fix an error.
94 for token in tokens:
95 self._file_changed_lines.add(token.line_number)
104 token = error.token
107 iterator = token.attached_object.type_start_token
115 # Cover the no outer brace case where the end token is part of the type.
116 while iterator and iterator != token.attached_object.type_end_token.next:
122 token
[all...]
H A Djavascriptlintrules.py57 # a token as its value.
60 def HandleMissingParameterDoc(self, token, param_name):
63 'Missing docs for parameter: "%s"' % param_name, token)
65 def __ContainsRecordType(self, token):
66 """Check whether the given token contains a record type.
69 token: The token being checked
72 True if the token contains a record type, False otherwise.
74 # If we see more than one left-brace in the string of an annotation token,
77 token an
[all...]
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/
H A Dclosurizednamespacesinfo_test.py76 token = self._GetRequireTokens('package.Something')
81 self.assertFalse(namespaces_info.IsExtraRequire(token),
87 self.assertTrue(namespaces_info.IsExtraRequire(token),
96 token = self._tokenizer.TokenizeFile(input_lines)
97 namespaces_info = self._GetInitializedNamespacesInfo(token, ['package'], [])
99 self.assertFalse(namespaces_info.IsExtraProvide(token),
108 token = self._tokenizer.TokenizeFile(input_lines)
109 namespaces_info = self._GetInitializedNamespacesInfo(token, ['package'], [])
111 self.assertFalse(namespaces_info.IsExtraProvide(token),
117 token
[all...]
H A Decmalintrules.py101 def HandleMissingParameterDoc(self, token, param_name):
109 last_token: The last token in the line.
111 # Start from the last token so that we have the flag object attached to
114 token = last_token
119 while token and token.line_number == line_number:
120 if state.IsTypeToken(token):
121 line.insert(0, 'x' * len(token.string))
122 elif token.type in (Type.IDENTIFIER, Type.NORMAL):
124 line.insert(0, token
[all...]
H A Drequireprovidesorter_test.py52 token = self._tokenizer.TokenizeFile(input_lines)
54 self._metadata_pass.Process(token)
57 sorter.FixRequires(token)
59 self.assertEquals(expected_lines, self._GetLines(token))
61 def _GetLines(self, token):
62 """Returns an array of lines based on the specified token stream."""
65 while token:
66 line += token.string
67 if token.IsLastInLine():
70 token
[all...]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
H A DUnwantedTokenException.java30 /** An extra token while parsing a TokenStream */
40 return token;
48 if ( token==null ) {
51 return "UnwantedTokenException(found="+token.getText()+exp+")";
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebScopedUserGesture.cpp44 void WebScopedUserGesture::initializeWithToken(const WebUserGestureToken& token) argument
46 if (!token.isNull())
47 m_indicator.reset(new UserGestureIndicator(token));
/external/owasp/sanitizer/src/main/org/owasp/html/
H A DHtmlLexer.java78 * Makes sure that this.token contains a token if one is available.
84 HtmlToken token = readToken();
85 if (token == null) { return null; }
87 switch (token.type) {
94 if (state == State.SAW_EQ && HtmlTokenType.TAGEND == token.type) {
97 pushbackToken(token);
100 token.start, token.start, HtmlTokenType.ATTRVALUE);
115 if (HtmlTokenType.TEXT == token
169 collapseSubsequent(HtmlToken token) argument
179 collapseAttributeName(HtmlToken token) argument
240 pushbackToken(HtmlToken token) argument
704 reclassify(HtmlToken token, HtmlTokenType type) argument
[all...]
/external/chromium_org/third_party/skia/experimental/PdfViewer/src/
H A DSkPdfContext.cpp22 virtual SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE;
85 SkPdfResult PdfMainLooper::consumeToken(PdfToken& token) { argument
86 if (token.fType == kKeyword_TokenType && token.fKeywordLength < 256)
89 if (gPdfOps.find(token.fKeyword, token.fKeywordLength, &pdfOperatorRenderer) &&
95 gRenderStats[result].find(token.fKeyword, token.fKeywordLength, &cnt);
96 gRenderStats[result].set(token.fKeyword, token
122 PdfToken token; local
[all...]
/external/skia/experimental/PdfViewer/src/
H A DSkPdfContext.cpp22 virtual SkPdfResult consumeToken(PdfToken& token) SK_OVERRIDE;
85 SkPdfResult PdfMainLooper::consumeToken(PdfToken& token) { argument
86 if (token.fType == kKeyword_TokenType && token.fKeywordLength < 256)
89 if (gPdfOps.find(token.fKeyword, token.fKeywordLength, &pdfOperatorRenderer) &&
95 gRenderStats[result].find(token.fKeyword, token.fKeywordLength, &cnt);
96 gRenderStats[result].set(token.fKeyword, token
122 PdfToken token; local
[all...]
/external/nist-sip/java/gov/nist/javax/sip/header/ims/
H A DPMediaAuthorization.java72 private String token; field in class:PMediaAuthorization
85 * Get the media authorization token.
87 * @return token
91 return token;
96 * Set the media authorization token.
98 * @param token - media authorization token to set
99 * @throws InvalidArgumentException - if token is null or empty
101 public void setMediaAuthorizationToken(String token) throws InvalidArgumentException argument
103 if (token
[all...]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
H A DGrammarSpelunker.java49 protected String token; field in class:GrammarSpelunker
65 void consume() throws IOException { token = scanner.nextToken(); }
68 //System.out.println("match "+expecting+"; is "+token);
69 if ( token.equals(expecting) ) consume();
70 else throw new Error("Error parsing "+grammarFileName+": '"+token+
82 while ( token!=null && !token.equals("@") && !token.equals(":") &&
83 !token.equals("import") && !token
[all...]
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/common/
H A Derror.py26 def __init__(self, code, message, token, position, fix_data):
32 token: The tokens.Token where the error occurred.
33 position: The position of the error within the token.
40 self.token = token
42 if token:
43 self.start_index = token.start_index
60 line_diff = a.token.line_number - b.token.line_number
/external/chromium_org/third_party/closure_linter/closure_linter/common/
H A Derror.py26 def __init__(self, code, message, token=None, position=None, fix_data=None):
32 token: The tokens.Token where the error occurred.
33 position: The position of the error within the token.
40 self.token = token
42 if token:
43 self.start_index = token.start_index
60 line_diff = a.token.line_number - b.token.line_number
/external/chromium_org/third_party/cython/src/Cython/Compiler/
H A DTreePath.py48 def parse_func(next, token):
49 name = token[1]
50 token = next()
51 if token[0] != '(':
53 predicate = handle_predicate(next, token)
56 def handle_func_not(next, token):
60 name, predicate = parse_func(next, token)
68 def handle_name(next, token):
74 name = token[1]
76 return functions[name](next, token)
[all...]
/external/chromium_org/base/strings/
H A Dstring_tokenizer_unittest.cc20 EXPECT_EQ(string("this"), t.token());
23 EXPECT_EQ(string("is"), t.token());
26 EXPECT_EQ(string("a"), t.token());
29 EXPECT_EQ(string("test"), t.token());
40 EXPECT_EQ(string("this"), t.token());
43 EXPECT_EQ(string("is"), t.token());
46 EXPECT_EQ(string("a"), t.token());
49 EXPECT_EQ(string("test"), t.token());
62 EXPECT_EQ(string("this"), t.token());
65 EXPECT_EQ(string(" "), t.token());
[all...]
/external/chromium_org/third_party/angle/tests/preprocessor_tests/
H A Dlocation_test.cpp20 pp::Token token; local
21 mPreprocessor.lex(&token);
22 EXPECT_EQ(pp::Token::IDENTIFIER, token.type);
23 EXPECT_EQ("foo", token.text);
25 EXPECT_EQ(location.file, token.location.file);
26 EXPECT_EQ(location.line, token.location.line);
84 pp::Token token; local
85 mPreprocessor.lex(&token);
88 // The location of a token straddling two or more strings is that of the
89 // first character of the token
114 pp::Token token; local
132 pp::Token token; local
150 pp::Token token; local
266 pp::Token token; local
290 pp::Token token; local
[all...]
H A Dcomment_test.cpp21 pp::Token token; local
22 mPreprocessor.lex(&token);
23 EXPECT_EQ(pp::Token::LAST, token.type);
51 pp::Token token; local
52 mPreprocessor.lex(&token);
53 EXPECT_EQ(pp::Token::IDENTIFIER, token.type);
54 EXPECT_EQ("bar", token.text);
55 EXPECT_TRUE(token.hasLeadingSpace());
67 pp::Token token; local
68 mPreprocessor.lex(&token);
[all...]
/external/antlr/antlr-3.4/runtime/C/include/
H A Dantlr3commontoken.h2 * \brief Defines the interface for a common token.
4 * All token streams should provide their tokens using an instance
5 * of this common token. A custom pointer is provided, wher you may attach
6 * a further structure to enhance the common token if you feel the need
7 * to do so. The C runtime will assume that a token provides implementations
45 /** How many tokens to allocate at once in the token factory
49 /* Base token types, which all lexer/parser tokens come after in sequence.
52 /** Indicator of an invalid token
58 /** Imaginary token type to cause a traversal of child nodes in a tree parser
62 /** Imaginary token typ
[all...]
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
H A DHTMLSourceTracker.cpp39 void HTMLSourceTracker::start(SegmentedString& currentInput, HTMLTokenizer* tokenizer, HTMLToken& token) argument
41 if (token.type() == HTMLToken::Uninitialized && !m_isStarted) {
50 token.setBaseOffset(m_currentSource.numberOfCharactersConsumed() - m_previousSource.length());
53 void HTMLSourceTracker::end(SegmentedString& currentInput, HTMLTokenizer* tokenizer, HTMLToken& token) argument
60 token.end(currentInput.numberOfCharactersConsumed() - tokenizer->numberOfBufferedCharacters());
63 String HTMLSourceTracker::sourceForToken(const HTMLToken& token) argument
69 if (token.type() == HTMLToken::EndOfFile) {
73 ASSERT(!token.startIndex());
74 length = static_cast<size_t>(token.endIndex() - token
[all...]
H A DCompactHTMLToken.cpp43 CompactHTMLToken::CompactHTMLToken(const HTMLToken* token, const TextPosition& textPosition) argument
44 : m_type(token->type())
54 m_data = attemptStaticStringCreation(token->name(), Likely8Bit);
56 // There is only 1 DOCTYPE token per document, so to avoid increasing the
58 m_attributes.append(Attribute(attemptStaticStringCreation(token->publicIdentifier(), Likely8Bit), String(token->systemIdentifier())));
59 m_doctypeForcesQuirks = token->forceQuirks();
65 m_attributes.reserveInitialCapacity(token->attributes().size());
66 for (Vector<HTMLToken::Attribute>::const_iterator it = token->attributes().begin(); it != token
[all...]
/external/deqp/framework/randomshaders/
H A DrsgPrettyPrinter.cpp123 inline const char* PrettyPrinter::getSimpleTokenStr (Token::Type token) argument
125 DE_ASSERT(de::inBounds<int>(token, 0, (int)DE_LENGTH_OF_ARRAY(s_tokenStr)));
126 return s_tokenStr[token];
140 void PrettyPrinter::processToken (const Token& token) argument
144 switch (token.getType())
149 m_line += token.getIdentifier();
154 std::string f = de::toString(token.getFloat());
162 m_line += de::toString(token.getInt());
166 m_line += (token.getBool() ? "true" : "false");
189 const char* tokenStr = getSimpleTokenStr(token
[all...]
/external/chromium_org/third_party/mesa/src/src/mesa/program/
H A Dnvvertparse.c143 * Starting at 'str' find the next token. A token can be an integer,
148 GetToken(struct parse_state *parseState, GLubyte *token) argument
153 token[0] = 0;
178 token[j++] = str[i++];
181 token[j] = 0;
188 token[j++] = str[i++];
190 token[j] = 0;
196 token[0] = str[i++];
197 token[
211 Parse_Token(struct parse_state *parseState, GLubyte *token) argument
228 Peek_Token(struct parse_state *parseState, GLubyte *token) argument
304 GLubyte token[100]; local
354 GLubyte token[100]; local
386 GLubyte token[100]; local
466 GLubyte token[100]; local
514 GLubyte token[100]; local
555 GLubyte token[100]; local
636 GLubyte token[100]; local
730 GLubyte token[100]; local
1008 GLubyte token[100]; local
1039 GLubyte token[100]; local
[all...]

Completed in 5523 milliseconds

1234567891011>>