Skip to content

Commit 5b38853

Browse files
committed
[AutoDiff] Remove DifferentiableAttributeFuncSpecifier.
Remove unused `DifferentiableAttributeFuncSpecifier` syntax node.
1 parent 1addfe0 commit 5b38853

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

utils/gyb_syntax_support/AttributeNodes.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -274,23 +274,6 @@
274274
Child('TrailingComma', kind='CommaToken', is_optional=True),
275275
]),
276276

277-
# differentiable-attr-func-specifier ->
278-
# ('jvp' | 'vjp') ':' func-decl-name ','?
279-
Node('DifferentiableAttributeFuncSpecifier', kind='Syntax',
280-
description='''
281-
A function specifier, consisting of an identifier, colon, and a
282-
function declaration name (e.g. `vjp: foo(_:_:)`).
283-
''',
284-
traits=['WithTrailingComma'],
285-
children=[
286-
Child('Label', kind='IdentifierToken',
287-
text_choices=['jvp', 'vjp']),
288-
Child('Colon', kind='ColonToken'),
289-
Child('FunctionDeclName', kind='FunctionDeclName',
290-
description='The referenced function name.'),
291-
Child('TrailingComma', kind='CommaToken', is_optional=True),
292-
]),
293-
294277
# The argument of the derivative registration attribute
295278
# '@derivative(of: ...)' and the transpose registration attribute
296279
# '@transpose(of: ...)'.

utils/gyb_syntax_support/NodeSerializationCodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
'DifferentiationParams': 235,
240240
'DifferentiationParamList': 236,
241241
'DifferentiationParam': 237,
242-
'DifferentiableAttributeFuncSpecifier': 238,
242+
# removed: 'DifferentiableAttributeFuncSpecifier': 238,
243243
'FunctionDeclName': 239,
244244
'PoundFilePathExpr': 240,
245245
'DerivativeRegistrationAttributeArguments': 241,

0 commit comments

Comments
 (0)