Home
last modified time | relevance | path

Searched refs:ast (Results 1 – 25 of 1537) sorted by relevance

12345678910>>...62

/third_party/typescript/tests/cases/conformance/parser/ecmascript5/
DparserRealSource13.ts8 EmptyCallback? (pre, ast: AST): boolean;
9 EmptyExprCallback? (pre, ast: AST): boolean;
10 TrueCallback? (pre, ast: AST): boolean;
11 FalseCallback? (pre, ast: AST): boolean;
12 ThisCallback? (pre, ast: AST): boolean;
13 SuperCallback? (pre, ast: AST): boolean;
14 QStringCallback? (pre, ast: AST): boolean;
15 RegexCallback? (pre, ast: AST): boolean;
16 NullCallback? (pre, ast: AST): boolean;
17 ArrayLitCallback? (pre, ast: AST): boolean;
[all …]
/third_party/typescript/tests/baselines/reference/
DparserRealSource13.types12 EmptyCallback? (pre, ast: AST): boolean;
13 >EmptyCallback : (pre: any, ast: any) => boolean
15 >ast : any
17 EmptyExprCallback? (pre, ast: AST): boolean;
18 >EmptyExprCallback : (pre: any, ast: any) => boolean
20 >ast : any
22 TrueCallback? (pre, ast: AST): boolean;
23 >TrueCallback : (pre: any, ast: any) => boolean
25 >ast : any
27 FalseCallback? (pre, ast: AST): boolean;
[all …]
DparserRealSource13.js9 EmptyCallback? (pre, ast: AST): boolean;
10 EmptyExprCallback? (pre, ast: AST): boolean;
11 TrueCallback? (pre, ast: AST): boolean;
12 FalseCallback? (pre, ast: AST): boolean;
13 ThisCallback? (pre, ast: AST): boolean;
14 SuperCallback? (pre, ast: AST): boolean;
15 QStringCallback? (pre, ast: AST): boolean;
16 RegexCallback? (pre, ast: AST): boolean;
17 NullCallback? (pre, ast: AST): boolean;
18 ArrayLitCallback? (pre, ast: AST): boolean;
[all …]
DparserRealSource13.symbols14 EmptyCallback? (pre, ast: AST): boolean;
17 >ast : Symbol(ast, Decl(parserRealSource13.ts, 7, 28))
19 EmptyExprCallback? (pre, ast: AST): boolean;
22 >ast : Symbol(ast, Decl(parserRealSource13.ts, 8, 32))
24 TrueCallback? (pre, ast: AST): boolean;
27 >ast : Symbol(ast, Decl(parserRealSource13.ts, 9, 27))
29 FalseCallback? (pre, ast: AST): boolean;
32 >ast : Symbol(ast, Decl(parserRealSource13.ts, 10, 28))
34 ThisCallback? (pre, ast: AST): boolean;
37 >ast : Symbol(ast, Decl(parserRealSource13.ts, 11, 27))
[all …]
/third_party/python/Lib/test/
Dtest_ast.py1 import ast
260 if not isinstance(ast_node, ast.AST) or ast_node._fields is None:
262 if isinstance(ast_node, (ast.expr, ast.stmt, ast.excepthandler)):
278 x = ast.AST()
289 ast.AST(2)
294 a = ast.AST()
308 ast_tree = compile(i, "?", kind, ast.PyCF_ONLY_AST)
318 tree = ast.parse(snippet)
322 slc = ast.parse("x[::]").body[0].value.slice
328 im = ast.parse("from . import y").body[0]
[all …]
/third_party/skia/third_party/externals/tint/src/
Dprogram_builder.h102 namespace ast {
131 ast::StorageClass storage = ast::StorageClass::kNone;
132 ast::Access access = ast::Access::kUndefined;
133 const ast::Expression* constructor = nullptr;
134 ast::DecorationList decorations = {};
137 void Set(ast::StorageClass sc) { storage = sc; } in Set()
138 void Set(ast::Access ac) { access = ac; } in Set()
139 void Set(const ast::Expression* c) { constructor = c; } in Set()
140 void Set(const ast::DecorationList& l) { decorations = l; } in Set()
152 using ASTNodeAllocator = BlockAllocator<ast::Node>;
[all …]
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/parser/
Dparser_test.go27 expect ast.AST
31 {"enum E {}", ast.AST{
32 Enums: []ast.EnumDecl{{Name: "E"}},
34 {"enum E { A [[deco]] B C }", ast.AST{
35 Enums: []ast.EnumDecl{{
37 Entries: []ast.EnumEntry{
40 Decorations: ast.Decorations{{Name: "deco"}},
47 {"type T", ast.AST{
48 Types: []ast.TypeDecl{{Name: "T"}},
50 {"type T<A, B, C>", ast.AST{
[all …]
/third_party/skia/third_party/externals/tint/src/reader/spirv/
Denum_converter.cc25 ast::PipelineStage EnumConverter::ToPipelineStage(SpvExecutionModel model) { in ToPipelineStage()
28 return ast::PipelineStage::kVertex; in ToPipelineStage()
30 return ast::PipelineStage::kFragment; in ToPipelineStage()
32 return ast::PipelineStage::kCompute; in ToPipelineStage()
38 return ast::PipelineStage::kNone; in ToPipelineStage()
41 ast::StorageClass EnumConverter::ToStorageClass(const SpvStorageClass sc) { in ToStorageClass()
44 return ast::StorageClass::kInput; in ToStorageClass()
46 return ast::StorageClass::kOutput; in ToStorageClass()
48 return ast::StorageClass::kUniform; in ToStorageClass()
50 return ast::StorageClass::kWorkgroup; in ToStorageClass()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/msl/
Dgenerator_impl_sanitizer_test.cc33 {create<ast::StructBlockDecoration>()}); in TEST_F()
34 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F()
35 ast::DecorationList{ in TEST_F()
36 create<ast::BindingDecoration>(1), in TEST_F()
37 create<ast::GroupDecoration>(2), in TEST_F()
40 Func("a_func", ast::VariableList{}, ty.void_(), in TEST_F()
41 ast::StatementList{ in TEST_F()
42 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F()
45 ast::DecorationList{ in TEST_F()
46 Stage(ast::PipelineStage::kFragment), in TEST_F()
[all …]
/third_party/skia/third_party/externals/tint/src/sem/
Dstorage_texture_type.cc24 StorageTexture::StorageTexture(ast::TextureDimension dim, in StorageTexture()
25 ast::ImageFormat format, in StorageTexture()
26 ast::Access access, in StorageTexture()
48 sem::Type* StorageTexture::SubtypeFor(ast::ImageFormat format, in SubtypeFor()
51 case ast::ImageFormat::kR8Uint: in SubtypeFor()
52 case ast::ImageFormat::kR16Uint: in SubtypeFor()
53 case ast::ImageFormat::kRg8Uint: in SubtypeFor()
54 case ast::ImageFormat::kR32Uint: in SubtypeFor()
55 case ast::ImageFormat::kRg16Uint: in SubtypeFor()
56 case ast::ImageFormat::kRgba8Uint: in SubtypeFor()
[all …]
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl.h32 namespace ast {
55 ForHeader(const ast::Statement* init,
56 const ast::Expression* cond,
57 const ast::Statement* cont);
62 const ast::Statement* initializer = nullptr;
64 const ast::Expression* condition = nullptr;
66 const ast::Statement* continuing = nullptr;
215 TypedIdentifier(const ast::Type* type_in,
222 const ast::Type* type = nullptr;
244 ast::VariableList p,
[all …]
/third_party/skia/third_party/externals/tint/src/resolver/
Dstorage_class_validation_test.cc30 Global(Source{{12, 34}}, "g", ty.f32(), ast::StorageClass::kNone); in TEST_F()
39 Global(Source{{56, 78}}, "g", ty.i32(), ast::StorageClass::kStorage, in TEST_F()
40 ast::DecorationList{ in TEST_F()
41 create<ast::BindingDecoration>(0), in TEST_F()
42 create<ast::GroupDecoration>(0), in TEST_F()
54 Global(Source{{56, 78}}, "g", ty.vec4<f32>(), ast::StorageClass::kStorage, in TEST_F()
55 ast::DecorationList{ in TEST_F()
56 create<ast::BindingDecoration>(0), in TEST_F()
57 create<ast::GroupDecoration>(0), in TEST_F()
71 Global(Source{{56, 78}}, "g", a, ast::StorageClass::kStorage, in TEST_F()
[all …]
/third_party/skia/third_party/externals/tint/src/ast/
Dintrinsic_texture_helper_test.cc22 namespace ast { namespace
34 ast::SamplerKind sk, in TextureOverloadCase()
35 ast::TextureDimension dims, in TextureOverloadCase()
51 ast::TextureDimension dims, in TextureOverloadCase()
66 ast::ImageFormat i, in TextureOverloadCase()
67 ast::TextureDimension dims, in TextureOverloadCase()
137 const ast::Type* TextureOverloadCase::BuildResultVectorComponentType( in BuildResultVectorComponentType()
140 case ast::intrinsic::test::TextureDataType::kF32: in BuildResultVectorComponentType()
142 case ast::intrinsic::test::TextureDataType::kU32: in BuildResultVectorComponentType()
144 case ast::intrinsic::test::TextureDataType::kI32: in BuildResultVectorComponentType()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/hlsl/
Dgenerator_impl_binary_test.cc28 ast::BinaryOp op;
40 if (params.op == ast::BinaryOp::kAnd || params.op == ast::BinaryOp::kOr || in TEST_P()
41 params.op == ast::BinaryOp::kXor || in TEST_P()
42 params.op == ast::BinaryOp::kShiftLeft || in TEST_P()
43 params.op == ast::BinaryOp::kShiftRight) { in TEST_P()
47 Global("left", ty.f32(), ast::StorageClass::kPrivate); in TEST_P()
48 Global("right", ty.f32(), ast::StorageClass::kPrivate); in TEST_P()
53 auto* expr = create<ast::BinaryExpression>(params.op, left, right); in TEST_P()
66 Global("left", ty.u32(), ast::StorageClass::kPrivate); in TEST_P()
67 Global("right", ty.u32(), ast::StorageClass::kPrivate); in TEST_P()
[all …]
Dgenerator_impl_type_test.cc37 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F()
42 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F()
43 ast::Access::kReadWrite, "ary")) in TEST_F()
50 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F()
55 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F()
56 ast::Access::kReadWrite, "ary")) in TEST_F()
65 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F()
70 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F()
71 ast::Access::kReadWrite, "ary")) in TEST_F()
78 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F()
[all …]
Dgenerator_impl_sanitizer_test.cc30 {create<ast::StructBlockDecoration>()}); in TEST_F()
31 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F()
32 ast::DecorationList{ in TEST_F()
33 create<ast::BindingDecoration>(1), in TEST_F()
34 create<ast::GroupDecoration>(2), in TEST_F()
37 Func("a_func", ast::VariableList{}, ty.void_(), in TEST_F()
38 ast::StatementList{ in TEST_F()
39 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F()
42 ast::DecorationList{ in TEST_F()
43 Stage(ast::PipelineStage::kFragment), in TEST_F()
[all …]
/third_party/skia/third_party/externals/tint/src/inspector/
Dtest_inspector_builder.cc32 ast::DecorationList decorations) { in MakeEmptyBodyFunction()
33 Func(name, ast::VariableList(), ty.void_(), ast::StatementList{Return()}, in MakeEmptyBodyFunction()
39 ast::DecorationList decorations) { in MakeCallerBodyFunction()
40 ast::StatementList body; in MakeCallerBodyFunction()
47 Func(caller, ast::VariableList(), ty.void_(), body, decorations); in MakeCallerBodyFunction()
50 const ast::Struct* InspectorBuilder::MakeInOutStruct( in MakeInOutStruct()
53 ast::StructMemberList members; in MakeInOutStruct()
63 const ast::Function* InspectorBuilder::MakePlainGlobalReferenceBodyFunction( in MakePlainGlobalReferenceBodyFunction()
66 const ast::Type* type, in MakePlainGlobalReferenceBodyFunction()
67 ast::DecorationList decorations) { in MakePlainGlobalReferenceBodyFunction()
[all …]
Dtest_inspector_builder.h49 void MakeEmptyBodyFunction(std::string name, ast::DecorationList decorations);
57 ast::DecorationList decorations);
63 const ast::Struct* MakeInOutStruct(
83 ast::DecorationList decorations);
94 const ast::Function* MakeInOutVariableCallerBodyFunction(
98 ast::DecorationList decorations);
107 const ast::Variable* AddOverridableConstantWithID( in AddOverridableConstantWithID()
110 const ast::Type* type, in AddOverridableConstantWithID()
111 const ast::Expression* constructor) { in AddOverridableConstantWithID()
113 ast::DecorationList{ in AddOverridableConstantWithID()
[all …]
Dresource_binding.cc30 const ast::TextureDimension& type_dim) { in TypeTextureDimensionToResourceBindingTextureDimension()
32 case ast::TextureDimension::k1d: in TypeTextureDimensionToResourceBindingTextureDimension()
34 case ast::TextureDimension::k2d: in TypeTextureDimensionToResourceBindingTextureDimension()
36 case ast::TextureDimension::k2dArray: in TypeTextureDimensionToResourceBindingTextureDimension()
38 case ast::TextureDimension::k3d: in TypeTextureDimensionToResourceBindingTextureDimension()
40 case ast::TextureDimension::kCube: in TypeTextureDimensionToResourceBindingTextureDimension()
42 case ast::TextureDimension::kCubeArray: in TypeTextureDimensionToResourceBindingTextureDimension()
44 case ast::TextureDimension::kNone: in TypeTextureDimensionToResourceBindingTextureDimension()
75 const ast::ImageFormat& image_format) { in TypeImageFormatToResourceBindingImageFormat()
77 case ast::ImageFormat::kR8Unorm: in TypeImageFormatToResourceBindingImageFormat()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/glsl/
Dgenerator_impl_binary_test.cc28 ast::BinaryOp op;
40 if (params.op == ast::BinaryOp::kAnd || params.op == ast::BinaryOp::kOr || in TEST_P()
41 params.op == ast::BinaryOp::kXor || in TEST_P()
42 params.op == ast::BinaryOp::kShiftLeft || in TEST_P()
43 params.op == ast::BinaryOp::kShiftRight) { in TEST_P()
47 Global("left", ty.f32(), ast::StorageClass::kPrivate); in TEST_P()
48 Global("right", ty.f32(), ast::StorageClass::kPrivate); in TEST_P()
53 auto* expr = create<ast::BinaryExpression>(params.op, left, right); in TEST_P()
66 Global("left", ty.u32(), ast::StorageClass::kPrivate); in TEST_P()
67 Global("right", ty.u32(), ast::StorageClass::kPrivate); in TEST_P()
[all …]
Dgenerator_impl_function_test.cc32 Func("my_func", ast::VariableList{}, ty.void_(), in TEST_F()
52 Func("centroid", ast::VariableList{}, ty.void_(), in TEST_F()
68 Func("my_func", ast::VariableList{Param("a", ty.f32()), Param("b", ty.i32())}, in TEST_F()
90 Func("func", ast::VariableList{}, ty.void_(), {/* no explicit return */}, in TEST_F()
92 Stage(ast::PipelineStage::kFragment), in TEST_F()
116 Func("f", {Param("foo", ty.pointer<f32>(ast::StorageClass::kFunction))}, in TEST_F()
134 Func("frag_main", ast::VariableList{foo_in}, ty.f32(), {Return("foo")}, in TEST_F()
135 {Stage(ast::PipelineStage::kFragment)}, {Location(1)}); in TEST_F()
180 Param("coord", ty.vec4<f32>(), {Builtin(ast::Builtin::kPosition)}); in TEST_F()
181 Func("frag_main", ast::VariableList{coord_in}, ty.f32(), in TEST_F()
[all …]
Dgenerator_impl_type_test.cc37 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F()
42 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F()
43 ast::Access::kReadWrite, "ary")) in TEST_F()
50 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F()
55 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F()
56 ast::Access::kReadWrite, "ary")) in TEST_F()
65 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F()
70 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F()
71 ast::Access::kReadWrite, "ary")) in TEST_F()
78 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F()
[all …]
/third_party/typescript_eslint/packages/scope-manager/tests/eslint-scope/
Dget-declared-variables.test.ts8 ast: TSESTree.Node,
12 const scopeManager = analyze(ast, {
17 simpleTraverse(ast, {
37 const ast = parse(` constant
43 verify(ast, AST_NODE_TYPES.VariableDeclaration, [
52 const ast = parse(` constant
61 verify(ast, AST_NODE_TYPES.VariableDeclaration, [
70 const ast = parse(` constant
76 verify(ast, AST_NODE_TYPES.VariableDeclarator, [
86 const ast = parse(` constant
[all …]
/third_party/skia/third_party/externals/tint/src/writer/spirv/
Dbuilder_global_variable_test.cc29 auto* v = Global("var", ty.f32(), ast::StorageClass::kPrivate); in TEST_F()
46 auto* v = Global("var", ty.vec3<f32>(), ast::StorageClass::kPrivate, init); in TEST_F()
86 auto* init = vec3<f32>(ast::ExpressionList{Expr(1.f), Expr(2.f), Expr(3.f)}); in TEST_F()
131 auto* v = Global("var", ty.sampler(ast::SamplerKind::kSampler), in TEST_F()
132 ast::StorageClass::kNone, nullptr, in TEST_F()
133 ast::DecorationList{ in TEST_F()
134 create<ast::BindingDecoration>(2), in TEST_F()
135 create<ast::GroupDecoration>(3), in TEST_F()
154 ast::DecorationList{ in TEST_F()
155 create<ast::OverrideDecoration>(1200), in TEST_F()
[all …]
Dbuilder_format_conversion_test.cc24 ast::ImageFormat ast_format;
54 TestData{ast::ImageFormat::kR8Unorm, SpvImageFormatR8, true},
55 TestData{ast::ImageFormat::kR8Snorm, SpvImageFormatR8Snorm, true},
56 TestData{ast::ImageFormat::kR8Uint, SpvImageFormatR8ui, true},
57 TestData{ast::ImageFormat::kR8Sint, SpvImageFormatR8i, true},
58 TestData{ast::ImageFormat::kR16Uint, SpvImageFormatR16ui, true},
59 TestData{ast::ImageFormat::kR16Sint, SpvImageFormatR16i, true},
60 TestData{ast::ImageFormat::kR16Float, SpvImageFormatR16f, true},
61 TestData{ast::ImageFormat::kRg8Unorm, SpvImageFormatRg8, true},
62 TestData{ast::ImageFormat::kRg8Snorm, SpvImageFormatRg8Snorm, true},
[all …]

12345678910>>...62