9404899248
This splits handleEndingBinaryExpression into two new listeners handleDotAccess for `.` and `?.` access and handleCascadeAccess for `..` and `?..`, both with an explicit `isNullAware` flag. This is a step towards handling `a.b` different from `a + b` in the parser such that listeners don't have to create a value for `b` the works in both use cases; in the first is just a named operation performed on the receiver, whereas in the second case it is a full expression in its own right. Change-Id: I04ec80401f8f2dbb8dffa86543c434e530b18cf7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/442821 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Jens Johansen <jensj@google.com>
116 lines
4.2 KiB
Plaintext
116 lines
4.2 KiB
Plaintext
beginCompilationUnit(var)
|
|
beginMetadataStar(var)
|
|
endMetadataStar(0)
|
|
beginTopLevelMember(var)
|
|
beginFields(DeclarationKind.TopLevel, null, null, null, null, null, null, var, )
|
|
handleNoType(var)
|
|
handleIdentifier(simpleIdentifier, topLevelVariableDeclaration)
|
|
beginFieldInitializer(=)
|
|
handleIdentifier(f, expression)
|
|
handleNoTypeArguments(<)
|
|
handleNoArguments(<)
|
|
handleSend(f, f)
|
|
beginTypeArguments(<)
|
|
handleIdentifier(a, typeReference)
|
|
handleNoTypeArguments(,)
|
|
handleType(a, null)
|
|
handleIdentifier(b, typeReference)
|
|
handleNoTypeArguments(>)
|
|
handleType(b, null)
|
|
endTypeArguments(2, <, >)
|
|
handleTypeArgumentApplication(<)
|
|
endFieldInitializer(=, >)
|
|
endTopLevelFields(null, null, null, null, null, var, 1, var, ;)
|
|
endTopLevelDeclaration(;)
|
|
beginMetadataStar(var)
|
|
endMetadataStar(0)
|
|
beginTopLevelMember(var)
|
|
beginFields(DeclarationKind.TopLevel, null, null, null, null, null, null, var, ;)
|
|
handleNoType(var)
|
|
handleIdentifier(method, topLevelVariableDeclaration)
|
|
beginFieldInitializer(=)
|
|
handleIdentifier(f, expression)
|
|
handleNoTypeArguments(()
|
|
beginArguments(()
|
|
endArguments(0, (, ))
|
|
handleSend(f, ))
|
|
handleIdentifier(m, expressionContinuation)
|
|
handleNoTypeArguments(<)
|
|
handleNoArguments(<)
|
|
handleSend(m, m)
|
|
handleDotAccess(., m, false)
|
|
beginTypeArguments(<)
|
|
handleIdentifier(a, typeReference)
|
|
handleNoTypeArguments(,)
|
|
handleType(a, null)
|
|
handleIdentifier(b, typeReference)
|
|
handleNoTypeArguments(>)
|
|
handleType(b, null)
|
|
endTypeArguments(2, <, >)
|
|
handleTypeArgumentApplication(<)
|
|
endFieldInitializer(=, >)
|
|
endTopLevelFields(null, null, null, null, null, var, 1, var, ;)
|
|
endTopLevelDeclaration(;)
|
|
beginMetadataStar(var)
|
|
endMetadataStar(0)
|
|
beginTopLevelMember(var)
|
|
beginFields(DeclarationKind.TopLevel, null, null, null, null, null, null, var, ;)
|
|
handleNoType(var)
|
|
handleIdentifier(prefixedIdentifier, topLevelVariableDeclaration)
|
|
beginFieldInitializer(=)
|
|
handleIdentifier(prefix, expression)
|
|
handleNoTypeArguments(.)
|
|
handleNoArguments(.)
|
|
handleSend(prefix, prefix)
|
|
handleIdentifier(f, expressionContinuation)
|
|
handleNoTypeArguments(<)
|
|
handleNoArguments(<)
|
|
handleSend(f, f)
|
|
handleDotAccess(., f, false)
|
|
beginTypeArguments(<)
|
|
handleIdentifier(a, typeReference)
|
|
handleNoTypeArguments(,)
|
|
handleType(a, null)
|
|
handleIdentifier(b, typeReference)
|
|
handleNoTypeArguments(>)
|
|
handleType(b, null)
|
|
endTypeArguments(2, <, >)
|
|
handleTypeArgumentApplication(<)
|
|
endFieldInitializer(=, >)
|
|
endTopLevelFields(null, null, null, null, null, var, 1, var, ;)
|
|
endTopLevelDeclaration(;)
|
|
beginMetadataStar(var)
|
|
endMetadataStar(0)
|
|
beginTopLevelMember(var)
|
|
beginFields(DeclarationKind.TopLevel, null, null, null, null, null, null, var, ;)
|
|
handleNoType(var)
|
|
handleIdentifier(three_identifiers, topLevelVariableDeclaration)
|
|
beginFieldInitializer(=)
|
|
handleIdentifier(prefix, expression)
|
|
handleNoTypeArguments(.)
|
|
handleNoArguments(.)
|
|
handleSend(prefix, prefix)
|
|
handleIdentifier(ClassName, expressionContinuation)
|
|
handleNoTypeArguments(.)
|
|
handleNoArguments(.)
|
|
handleSend(ClassName, ClassName)
|
|
handleDotAccess(., ClassName, false)
|
|
handleIdentifier(m, expressionContinuation)
|
|
handleNoTypeArguments(<)
|
|
handleNoArguments(<)
|
|
handleSend(m, m)
|
|
handleDotAccess(., m, false)
|
|
beginTypeArguments(<)
|
|
handleIdentifier(a, typeReference)
|
|
handleNoTypeArguments(,)
|
|
handleType(a, null)
|
|
handleIdentifier(b, typeReference)
|
|
handleNoTypeArguments(>)
|
|
handleType(b, null)
|
|
endTypeArguments(2, <, >)
|
|
handleTypeArgumentApplication(<)
|
|
endFieldInitializer(=, >)
|
|
endTopLevelFields(null, null, null, null, null, var, 1, var, ;)
|
|
endTopLevelDeclaration(;)
|
|
endCompilationUnit(4, )
|