Flutter Impeller
source_options.cc
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
6 
7 namespace impeller {
8 namespace compiler {
9 
11 
12 SourceOptions::SourceOptions(const std::string& file_name,
13  SourceType source_type)
14  : type(source_type == SourceType::kUnknown
15  ? SourceTypeFromFileName(file_name)
16  : source_type),
17  file_name(file_name) {}
18 
20 
21 } // namespace compiler
22 } // namespace impeller
impeller::compiler::SourceType::kUnknown
@ kUnknown
impeller::compiler::SourceOptions::SourceOptions
SourceOptions()
impeller::compiler::SourceOptions::~SourceOptions
~SourceOptions()
source_options.h
impeller::compiler::SourceType
SourceType
Definition: types.h:22
impeller::compiler::SourceTypeFromFileName
SourceType SourceTypeFromFileName(const std::string &file_name)
Definition: types.cc:30
impeller
Definition: aiks_blur_unittests.cc:20