blob: 62dbb80ae0131a568a36c09acb9a2f96602f9b9d [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:13:5: Error: Expected an identifier, but got '@'.
// Try inserting an identifier before '@'.
// var @annotation v1; // Error
// ^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:13:1: Error: Expected ';' after this.
// var @annotation v1; // Error
// ^^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:13:17: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// var @annotation v1; // Error
// ^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:14:9: Error: Expected an identifier, but got '@'.
// Try inserting an identifier before '@'.
// var v2, @annotation v3; // Error
// ^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:14:9: Error: Expected ';' after this.
// var v2, @annotation v3; // Error
// ^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:17:1: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// int @annotation v5 = -1; // Error --- I think this is where the bad recovery happens.
// ^^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:17:1: Error: Expected ';' after this.
// int @annotation v5 = -1; // Error --- I think this is where the bad recovery happens.
// ^^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:17:17: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// int @annotation v5 = -1; // Error --- I think this is where the bad recovery happens.
// ^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:18:14: Error: Expected an identifier, but got '@'.
// Try inserting an identifier before '@'.
// int v6 = -1, @annotation v7 = -1; // Error
// ^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:18:14: Error: Expected ';' after this.
// int v6 = -1, @annotation v7 = -1; // Error
// ^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:22:7: Error: Expected an identifier, but got '@'.
// Try inserting an identifier before '@'.
// var @annotation f1; // Error
// ^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:22:3: Error: Expected ';' after this.
// var @annotation f1; // Error
// ^^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:22:19: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// var @annotation f1; // Error
// ^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:23:11: Error: Expected an identifier, but got '@'.
// Try inserting an identifier before '@'.
// var f2, @annotation f3; // Error
// ^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:23:9: Error: Expected ';' after this.
// var f2, @annotation f3; // Error
// ^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:23:23: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// var f2, @annotation f3; // Error
// ^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:26:3: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// int @annotation f5 = -1; // Error
// ^^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:26:3: Error: Expected ';' after this.
// int @annotation f5 = -1; // Error
// ^^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:26:19: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// int @annotation f5 = -1; // Error
// ^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:27:16: Error: Expected an identifier, but got '@'.
// Try inserting an identifier before '@'.
// int f6 = -1, @annotation f7 = -1; // Error
// ^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:27:14: Error: Expected ';' after this.
// int f6 = -1, @annotation f7 = -1; // Error
// ^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:27:28: Error: Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
// Try adding the name of the type of the variable or the keyword 'var'.
// int f6 = -1, @annotation f7 = -1; // Error
// ^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:25:3: Error: 'int' isn't a type.
// int f4 = -1; // This should by itself be fine, but recovery is bad.
// ^^^
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:26:3: Context: This isn't a type.
// int @annotation f5 = -1; // Error
// ^^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:27:3: Error: 'int' isn't a type.
// int f6 = -1, @annotation f7 = -1; // Error
// ^^^
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:26:3: Context: This isn't a type.
// int @annotation f5 = -1; // Error
// ^^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:14:10: Error: 'annotation' isn't a type.
// var v2, @annotation v3; // Error
// ^^^^^^^^^^
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:10:7: Context: This isn't a type.
// const annotation = null;
// ^^^^^^^^^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:16:1: Error: 'int' isn't a type.
// int v4 = -1; // This should by itself be fine, but recovery is bad.
// ^^^
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:17:1: Context: This isn't a type.
// int @annotation v5 = -1; // Error --- I think this is where the bad recovery happens.
// ^^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:18:1: Error: 'int' isn't a type.
// int v6 = -1, @annotation v7 = -1; // Error
// ^^^
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:17:1: Context: This isn't a type.
// int @annotation v5 = -1; // Error --- I think this is where the bad recovery happens.
// ^^^
//
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:18:15: Error: 'annotation' isn't a type.
// int v6 = -1, @annotation v7 = -1; // Error
// ^^^^^^^^^^
// pkg/front_end/testcases/coverage/metadata_variable_declaration.dart:10:7: Context: This isn't a type.
// const annotation = null;
// ^^^^^^^^^^
//
import self as self;
import "dart:core" as core;
class C extends core::Object {
field dynamic f0;
@self::annotation
field dynamic f1;
@self::annotation
field dynamic f3;
field invalid-type f4;
field dynamic int;
@self::annotation
field core::int f5;
@self::annotation
field core::int f7;
synthetic constructor •() self::C
;
}
static const field dynamic annotation = null;
static field dynamic v0;
@self::annotation
static field dynamic v1;
static field invalid-type v3;
static field invalid-type v4;
static field dynamic int;
@self::annotation
static field core::int v5;
static field invalid-type v7;
static method foo() void
;
Extra constant evaluation status:
Evaluated: StaticGet @ org-dartlang-testcase:///metadata_variable_declaration.dart:22:8 -> NullConstant(null)
Evaluated: StaticGet @ org-dartlang-testcase:///metadata_variable_declaration.dart:23:12 -> NullConstant(null)
Evaluated: StaticGet @ org-dartlang-testcase:///metadata_variable_declaration.dart:26:8 -> NullConstant(null)
Evaluated: StaticGet @ org-dartlang-testcase:///metadata_variable_declaration.dart:27:17 -> NullConstant(null)
Evaluated: StaticGet @ org-dartlang-testcase:///metadata_variable_declaration.dart:13:6 -> NullConstant(null)
Evaluated: StaticGet @ org-dartlang-testcase:///metadata_variable_declaration.dart:17:6 -> NullConstant(null)
Extra constant evaluation: evaluated: 6, effectively constant: 6