Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: build/android/pylib/utils/proguard.py

Issue 1869083002: 🎽 Fix instrumentation test proguard parser when gmscore has annotations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 import re 6 import re
7 import tempfile 7 import tempfile
8 8
9 from devil.utils import cmd_helper 9 from devil.utils import cmd_helper
10 from pylib import constants 10 from pylib import constants
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 if m: 277 if m:
278 state.InitAnnotationField( 278 state.InitAnnotationField(
279 m.group(2), element_type, _GetDepth(m.group(1))) 279 m.group(2), element_type, _GetDepth(m.group(1)))
280 break 280 break
281 if m: 281 if m:
282 continue 282 continue
283 m = _PROGUARD_ANNOTATION_VALUE_RE.match(line) 283 m = _PROGUARD_ANNOTATION_VALUE_RE.match(line)
284 if m: 284 if m:
285 state.UpdateCurrentAnnotationFieldValue( 285 state.UpdateCurrentAnnotationFieldValue(
286 m.group(2), _GetDepth(m.group(1))) 286 m.group(2), _GetDepth(m.group(1)))
287 else:
288 state.InitMethod(None)
jbudorick 2016/04/08 00:59:09 What does this line that gets here contain? It's n
dgn 2016/04/08 16:54:52 So that clears the annotation stack when we hit so
agrieve 2016/04/08 17:35:36 That's what we want, but it's not what the code wa
289
287 290
288 return results 291 return results
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698