mirror of https://github.com/Wilfred/difftastic/
65 lines
1.4 KiB
Plaintext
65 lines
1.4 KiB
Plaintext
==================
|
|
This Assignment
|
|
==================
|
|
|
|
class Foo(){
|
|
var foo = null
|
|
constructor(bar:Int) {
|
|
this.foo = bar
|
|
}
|
|
}
|
|
|
|
---
|
|
(source_file
|
|
(class_declaration
|
|
(type_identifier)
|
|
(primary_constructor)
|
|
(class_body
|
|
(property_declaration
|
|
(variable_declaration
|
|
(simple_identifier)))
|
|
(secondary_constructor
|
|
(parameter
|
|
(simple_identifier)
|
|
(user_type
|
|
(type_identifier)))
|
|
(statements
|
|
(assignment
|
|
(directly_assignable_expression
|
|
(this_expression)
|
|
(navigation_suffix
|
|
(simple_identifier)))
|
|
(simple_identifier)))))))
|
|
|
|
==================
|
|
Index Assignment
|
|
==================
|
|
|
|
fun main(){
|
|
var listOfPets:Array<String>
|
|
listOfPets[0] = "foo"
|
|
}
|
|
|
|
---
|
|
|
|
(source_file
|
|
(function_declaration
|
|
(simple_identifier)
|
|
(function_body
|
|
(statements
|
|
(property_declaration
|
|
(variable_declaration
|
|
(simple_identifier)
|
|
(user_type
|
|
(type_identifier)
|
|
(type_arguments
|
|
(type_projection
|
|
(user_type
|
|
(type_identifier)))))))
|
|
(assignment
|
|
(directly_assignable_expression
|
|
(simple_identifier)
|
|
(indexing_suffix
|
|
(integer_literal)))
|
|
(line_string_literal))))))
|